[rft/rfc/patch 13/22] i2c: omap: if controller is suspended, bail out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



same check we had on the threaded IRQ handler,
copy it to the bottom half.

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 drivers/i2c/busses/i2c-omap.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 9dadfb1..e555681 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -871,6 +871,9 @@ omap_i2c_isr(int irq, void *_dev)
 	u16			stat;
 	u16			bits;
 
+	if (pm_runtime_suspended(dev->dev))
+		return IRQ_NONE;
+
 	stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG);
 	bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG);
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux