projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1419cb
)
can: gs_usb: gs_make_candev(): set netdev->dev_id
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Fri, 30 Sep 2022 13:59:41 +0000
(15:59 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Thu, 20 Oct 2022 09:56:57 +0000
(11:56 +0200)
The gs_usb driver supports USB devices with more than 1 CAN channel.
Set the "netdev->dev_id" to distinguish between channels in user
space.
Link:
https://lore.kernel.org/all/20221007075418.213403-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/usb/gs_usb.c
b/drivers/net/can/usb/gs_usb.c
index f0065d40eb2410933a47492fd5c0defe91672947..384847b4a4c95b513cd886d6c1fb612d183e6c29 100644
(file)
--- a/
drivers/net/can/usb/gs_usb.c
+++ b/
drivers/net/can/usb/gs_usb.c
@@
-1153,6
+1153,7
@@
static struct gs_can *gs_make_candev(unsigned int channel,
netdev->ethtool_ops = &gs_usb_ethtool_ops;
netdev->flags |= IFF_ECHO; /* we support full roundtrip echo */
+ netdev->dev_id = channel;
/* dev setup */
strcpy(dev->bt_const.name, KBUILD_MODNAME);