linux/drivers/net/can/usb
Jimmy Assarsson 48002f79fe can: kvaser_usb: Assign netdev.dev_port based on device channel index
[ Upstream commit c151b06a08 ]

Assign netdev.dev_port based on the device channel index, to indicate the
port number of the network device.
While this driver already uses netdev.dev_id for that purpose, dev_port is
more appropriate. However, retain dev_id to avoid potential regressions.

Fixes: 3e66d0138c ("can: populate netdev::dev_id for udev discrimination")
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Link: https://patch.msgid.link/20250725123452.41-4-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:05:00 +02:00
..
etas_es58x can: etas_es58x: es58x_init_netdev(): free netdev when register_candev() 2022-11-24 16:10:04 +01:00
kvaser_usb can: kvaser_usb: Assign netdev.dev_port based on device channel index 2025-08-15 12:05:00 +02:00
peak_usb can: peak_usb: fix USB FD devices potential malfunction 2025-08-15 12:04:59 +02:00
ems_usb.c can: ems_usb: ems_usb_rx_err(): fix {rx,tx}_errors statistics 2024-12-14 19:54:20 +01:00
esd_usb.c can: esd_usb: Make use of can_change_state() and relocate checking skb for NULL 2023-03-10 09:33:06 +01:00
gs_usb.c can: gs_usb: add usb endpoint address detection at driver probe step 2024-12-14 19:54:19 +01:00
Kconfig can/esd_usb2: Rename esd_usb2.c to esd_usb.c 2022-06-25 13:05:26 +02:00
Makefile can/esd_usb2: Rename esd_usb2.c to esd_usb.c 2022-06-25 13:05:26 +02:00
mcba_usb.c can: mcba_usb: Fix termination command argument 2022-11-24 16:26:48 +01:00
ucan.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
usb_8dev.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00