diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2014-04-15 19:30:00 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-04-24 22:22:53 +0200 |
commit | a9edcdedbd3d8f3ffcd7bdcab5812707a25e554e (patch) | |
tree | 5eff58f9133f3e21f8b2134867cefc1c2ec4b817 /tools/perf/scripts/python/sched-migration.py | |
parent | 78c181bc8a75d3f0624eaf24aa8265d441990c8c (diff) |
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 3e66d0138c05d9 ("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>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions