]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
can: kvaser_pciefd: Store device channel index
authorJimmy Assarsson <extja@kvaser.com>
Fri, 25 Jul 2025 12:32:25 +0000 (14:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:04:59 +0000 (12:04 +0200)
[ Upstream commit d54b16b40ddadb7d0a77fff48af7b319a0cd6aae ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/kvaser_pciefd.c

index 74a47244f1291cae1cf41d5f8c0aed4ecda95613..c6406fc1b0d5e6eb2dec0d6e02f4e9c6403df8d6 100644 (file)
@@ -966,6 +966,7 @@ static int kvaser_pciefd_setup_can_ctrls(struct kvaser_pciefd *pcie)
                can->err_rep_cnt = 0;
                can->bec.txerr = 0;
                can->bec.rxerr = 0;
+               can->can.dev->dev_port = i;
 
                init_completion(&can->start_comp);
                init_completion(&can->flush_comp);