Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: kvaser_pciefd: Store device channel index

Store device channel index in netdev.dev_port.

Fixes: 26ad340e582d ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices")
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Link: https://patch.msgid.link/20250725123230.8-6-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Jimmy Assarsson and committed by
Marc Kleine-Budde
d54b16b4 5131f18f

+1
+1
drivers/net/can/kvaser_pciefd.c
··· 1028 1028 can->completed_tx_bytes = 0; 1029 1029 can->bec.txerr = 0; 1030 1030 can->bec.rxerr = 0; 1031 + can->can.dev->dev_port = i; 1031 1032 1032 1033 init_completion(&can->start_comp); 1033 1034 init_completion(&can->flush_comp);