android_kernel_google_msm/drivers/net/can
Mirza Krak cf030cb154 can: sja1000: clear interrupts on start
commit 7cecd9ab80f43972c056dc068338f7bcc407b71c upstream.

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 <mirza.krak@hostmobility.com>
Reported-by: Christian Magnusson <Christian.Magnusson@semcon.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
[lizf: Backported to 3.4: s/SJA1000_IR/REG_IR/]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-10-26 23:15:32 +08:00
..
c_can can: c_can: Set reserved bit in IFx_MASK2 to 1 on write 2014-06-07 16:02:07 -07:00
cc770 can: cc770: linux/can/dev.h included twice 2012-03-03 17:40:32 +01:00
mscan can: mscan-mpc5xxx: fix return value check in mpc512x_can_get_clock() 2012-10-07 08:32:28 -07:00
sja1000 can: sja1000: clear interrupts on start 2016-10-26 23:15:32 +08:00
softing
usb can: peak_usb: fix cleanup sequence order in case of error during init 2015-04-14 17:33:45 +08:00
at91_can.c can: at91_can: add missing prepare and unprepare of the clock 2014-12-01 18:02:36 +08:00
bfin_can.c
dev.c can: add missing initialisations in CAN related skbuffs 2015-06-19 11:40:23 +08:00
flexcan.c can: flexcan: put TX mailbox into TX_INACTIVE mode after tx-complete 2014-12-01 18:02:36 +08:00
janz-ican3.c can: janz-ican3: fix support for older hardware revisions 2012-10-02 10:30:09 -07:00
Kconfig
Makefile
mcp251x.c can: mcp251x: fix resume when device is down 2016-03-21 09:17:45 +08:00
pch_can.c can: pch_can: fix invalid error codes 2013-02-03 18:24:40 -06:00
slcan.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
ti_hecc.c can: ti_hecc: fix invalid error codes 2013-02-03 18:24:40 -06:00
vcan.c