linux_dsm_epyc7002/drivers/net/can/usb/peak_usb
Christopher R. Baker 3e66d0138c can: populate netdev::dev_id for udev discrimination
My objective is to be able to totally discriminate CAN ports on multi-port
cards via udev so as to rename them to semantically interesting/unique names
for my system (e.g., "ecuCAN" and "auxCAN" instead of "can0" and "can1").

The following patch assigns the dev_id field to match the channel number on all
multi-channel devices. I can only test my two-port Peak PCI card, but it works
as expected: ATTRS{dev_id} now expresses the port number and my udev rules now
unambiguously pick out and rename my individual CAN ports.

Signed-off-by: Christopher R. Baker <cbaker@rec.ri.cmu.edu>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net> [PEAK PCAN-USB pro and EMS PCMCIA]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2014-03-17 09:20:16 +01:00
..
Makefile can: usb: PEAK-System Technik PCAN-USB Pro specific part 2012-03-03 17:40:58 +01:00
pcan_usb_core.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
pcan_usb_core.h can: pcan_usb_core: remove obsolete variable open_time 2012-11-29 14:34:06 +01:00
pcan_usb_pro.c can: peak_usb: fix mem leak in pcan_usb_pro_init() 2013-12-17 11:19:33 +01:00
pcan_usb_pro.h net: can: peak_usb: Do not do dma on the stack 2013-06-03 14:05:32 +02:00
pcan_usb.c can: pcan_usb: fix wrong memcpy() bytes length 2013-08-11 21:51:49 -07:00