]> 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:13:47 +0000 (12:13 +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 3fa83f05bfcc8ed43e398a4f639965815a422d83..2bef6da4befa2957631d82407935d650ed720e3e 100644 (file)
@@ -981,6 +981,7 @@ static int kvaser_pciefd_setup_can_ctrls(struct kvaser_pciefd *pcie)
                can->completed_tx_bytes = 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);