diff options
author | Mirza Krak <[email protected]> | 2015-11-10 14:59:34 +0100 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2015-11-23 09:35:21 +0100 |
commit | 7cecd9ab80f43972c056dc068338f7bcc407b71c (patch) | |
tree | fc0323193a1434c3478c1a557382af223f2a34b0 /tools/perf/scripts/python | |
parent | 4c6980462f32b4f282c5d8e5f7ea8070e2937725 (diff) |
can: sja1000: clear interrupts on start
According to SJA1000 data sheet error-warning (EI) interrupt is not
cleared by setting the controller in to reset-mode.
Then if we have the following case:
- system is suspended (echo mem > /sys/power/state) and SJA1000 is left
in operating state
- A bus error condition occurs which activates EI interrupt, system is
still suspended which means EI interrupt will be not be handled nor
cleared.
If the above two events occur, on resume there is no way to return the
SJA1000 to operating state, except to cycle power to it.
By simply reading the IR register on start we will clear any previous
conditions that could be present.
Signed-off-by: Mirza Krak <[email protected]>
Reported-by: Christian Magnusson <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions