From: Xiaofan Tian <[email protected]>

During suspending there may still be some i2c accessing, if don't keep
i2c irq on there may be i2c access timeout if i2c is in irq mode.

Change-Id: I43689ab9ee054d235678de83ea4424c03074ea62
Signed-off-by: Raul Xiong <[email protected]>
Signed-off-by: Xiaofan Tian <[email protected]>

diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index ad6e69b..f4bbbcc 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -1226,8 +1226,9 @@ static int i2c_pxa_probe(struct platform_device *dev)
                i2c->adap.algo = &i2c_pxa_pio_algorithm;
        } else {
                i2c->adap.algo = &i2c_pxa_algorithm;
-               ret = request_irq(irq, i2c_pxa_handler, IRQF_SHARED,
-                                 i2c->adap.name, i2c);
+               ret = request_irq(irq, i2c_pxa_handler,
+                               IRQF_SHARED | IRQF_NO_SUSPEND,
+                               i2c->adap.name, i2c);
                if (ret)
                        goto ereqirq;
        }
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to