Mika Westerberg 269e4a4122 spi/pxa2xx: check status register as well to determine if the device is off
The current interrupt handler calls pm_runtime_suspended() to check if the
device is suspended or not. However, runtime PM status of the device is
only set to suspended once all PM runtime suspend hooks have executed.

In case of Intel Lynxpoint we have the device bound to the ACPI power
domain and its runtime suspend hook will put the device to D3hot (or D3cold
if possible). This means that the device is powered off before its state is
set to runtime suspended. While in this state the device might get an
interrupt that is meant for another device (as the interrupt line is
shared), and because the device is powered off accessing its registers will
return 0xffffffff that the driver misinterprets as an invalid state.

When this happens user will see messages like below on the console:

  pxa2xx-spi INT33C0:00: bad message state in interrupt handler

Fix this by checking the status register for ~0 and returning IRQ_NONE in
that case.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-09-04 20:14:29 +01:00
..
2013-08-20 08:38:23 -04:00
2013-06-27 13:42:16 -04:00
2013-07-02 14:23:01 -07:00
2013-08-08 09:28:08 -07:00
2013-07-23 16:01:28 -07:00
2013-07-10 14:46:40 -07:00
2013-07-26 11:36:12 -07:00
2013-07-02 11:44:19 -07:00
2013-08-07 21:57:17 +02:00
2013-06-28 13:01:40 +02:00
2013-07-22 09:34:46 +08:00
2013-08-23 10:41:46 -07:00
2013-07-24 16:36:41 -06:00
2013-07-23 14:38:20 -07:00
2013-08-09 11:52:34 -07:00
2013-07-10 14:50:58 -07:00
2013-08-21 16:38:33 -07:00