linux_dsm_epyc7002/drivers/net/can/sja1000
Mirza Krak 7cecd9ab80 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 <mirza.krak@hostmobility.com>
Reported-by: Christian Magnusson <Christian.Magnusson@semcon.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-11-23 09:35:21 +01:00
..
ems_pci.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06: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: remove unused variable 2014-11-18 16:52:18 +01:00
Makefile net: can: use kbuild magic to inherit debug settings 2014-08-18 01:03:38 +02:00
peak_pci.c can: peak_pci: add unused device id. in devices table 2015-09-30 12:57:58 +02:00
peak_pcmcia.c can: populate netdev::dev_id for udev discrimination 2014-03-17 09:20:16 +01:00
plx_pci.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
sja1000_isa.c net: can: sja1000: drop owner assignment from platform_drivers 2014-10-20 16:21:01 +02:00
sja1000_platform.c can: constify of_device_id array 2015-03-17 15:00:23 -04:00
sja1000.c can: sja1000: clear interrupts on start 2015-11-23 09:35:21 +01:00
sja1000.h can: sja1000: use common prefix for all sja1000 defines 2013-04-16 12:39:14 +02:00
tscan1.c can: remove __dev* attributes 2012-12-03 11:16:11 -08:00