android_kernel_motorola_sm6225/drivers/net/can/softing
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
..
Kconfig can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
Makefile can: add driver for Softing card 2011-01-21 20:15:34 -08:00
softing.h can: Remove extern from function prototypes 2013-09-24 10:09:18 -04:00
softing_cs.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
softing_fw.c can: Fix FSF address in file headers 2013-12-17 11:47:21 +01:00
softing_main.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
softing_platform.h