linux-stable/drivers/net/can/sja1000
Oliver Hartkopp a9edcdedbd can: sja1000_isa: add locking for indirect register access mode
When accessing the SJA1000 controller registers in the indirect access mode,
writing the register number and reading/writing the data has to be an atomic
attempt.

As the sja1000_isa driver is an old style driver with a fixed number of
instances the locking variable depends on the same index like all the other
configuration elements given on the module command line.

As a positive side effect dev->dev_id is populated by the instance index,
which was missing in 3e66d0138c ("can: populate netdev::dev_id for udev
discrimination").

Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2014-04-24 22:22:53 +02:00
..
ems_pci.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
ems_pcmcia.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
Kconfig Kconfig: rename HAS_IOPORT to HAS_IOPORT_MAP 2014-04-07 16:36:11 -07:00
kvaser_pci.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
Makefile can: sja1000: fuse of_platform into platform 2014-02-04 10:10:51 +01:00
peak_pci.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
peak_pcmcia.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
plx_pci.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
sja1000.c can: Unify MTU settings for CAN interfaces 2014-03-17 09:20:16 +01:00
sja1000.h can: sja1000: use common prefix for all sja1000 defines 2013-04-16 12:39:14 +02:00
sja1000_isa.c can: sja1000_isa: add locking for indirect register access mode 2014-04-24 22:22:53 +02:00
sja1000_platform.c can: sja1000: of: add reg-io-width property for 8, 16 and 32-bit register access 2014-02-06 11:50:57 +01:00
tscan1.c can: remove __dev* attributes 2012-12-03 11:16:11 -08:00