Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abf8a1fb authored by Leilei Shang's avatar Leilei Shang Committed by Wolfram Sang
Browse files

i2c: pxa: keep i2c irq ON in suspend



During suspend there may still be some i2c access happening, as the
interrupt is shared between multiple drivers.
And if we don't keep i2c irq ON, there may be i2c access timeout if
i2c is in irq mode of operation.

Signed-off-by: default avatarRaul Xiong <xjian@marvell.com>
Signed-off-by: default avatarXiaofan Tian <tianxf@marvell.com>
[vaibhav.hiremath@linaro.org: updated Changelog]
Signed-off-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Cc: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 5faf6e1f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1232,7 +1232,8 @@ 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,
		ret = request_irq(irq, i2c_pxa_handler,
				IRQF_SHARED | IRQF_NO_SUSPEND,
				dev_name(&dev->dev), i2c);
		if (ret)
			goto ereqirq;