summaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorCeleste Liu <uwu@coelacanthus.name>2025-09-30 09:53:39 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2025-10-08 11:15:46 +0300
commita12f0bc764da3781da2019c60826f47a6d7ed64f (patch)
tree03b7840db160742792c8d5220113095d47fd32be /drivers/cdx/controller/cdx_controller.c
parent2a27f6a8fb5722223d526843040f747e9b0e8060 (diff)
downloadlinux-a12f0bc764da3781da2019c60826f47a6d7ed64f.tar.xz
can: gs_usb: gs_make_candev(): populate net_device->dev_port
The gs_usb driver supports USB devices with more than 1 CAN channel. In old kernel before 3.15, it uses net_device->dev_id to distinguish different channel in userspace, which was done in commit acff76fa45b4 ("can: gs_usb: gs_make_candev(): set netdev->dev_id"). But since 3.15, the correct way is populating net_device->dev_port. And according to documentation, if network device support multiple interface, lack of net_device->dev_port SHALL be treated as a bug. Fixes: acff76fa45b4 ("can: gs_usb: gs_make_candev(): set netdev->dev_id") Cc: stable@vger.kernel.org Signed-off-by: Celeste Liu <uwu@coelacanthus.name> Link: https://patch.msgid.link/20250930-gs-usb-populate-net_device-dev_port-v1-1-68a065de6937@coelacanthus.name Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions