[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220307143630.28697-1-alifer.m@variscite.com>
Date: Mon, 7 Mar 2022 11:36:30 -0300
From: Alifer Moraes <alifer.m@...iscite.com>
To: linux-kernel@...r.kernel.org
Cc: eran.m@...iscite.com, festevam@...il.com, kernel@...gutronix.de,
linux-arm-kernel@...ts.infradead.org, linux-imx@....com,
linux-i2c@...r.kernel.org, linux@...pel-privat.de,
pierluigi.p@...iscite.com, s.hauer@...gutronix.de,
shawnguo@...nel.org, gaopan <b54642@...escale.com>,
Fugang Duan <B38611@...escale.com>,
Vipul Kumar <vipul_kumar@...tor.com>
Subject: [PATCH] i2c: imx: add irqf_no_suspend
From: gaopan <b54642@...escale.com>
The i2c irq is masked when pcie starts a i2c transfer process
during noirq suspend stage. As a result, i2c transfer fails.
To solve the problem, IRQF_NO_SUSPEND is added to i2c bus.
Signed-off-by: Gao Pan <b54642@...escale.com>
Signed-off-by: Fugang Duan <B38611@...escale.com>
Signed-off-by: Vipul Kumar <vipul_kumar@...tor.com>
---
drivers/i2c/busses/i2c-imx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 27f969b3dc07..fcc09a1e7f44 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -1478,7 +1478,8 @@ static int i2c_imx_probe(struct platform_device *pdev)
goto rpm_disable;
/* Request IRQ */
- ret = request_threaded_irq(irq, i2c_imx_isr, NULL, IRQF_SHARED,
+ ret = request_threaded_irq(irq, i2c_imx_isr, NULL,
+ IRQF_SHARED | IRQF_NO_SUSPEND,
pdev->name, i2c_imx);
if (ret) {
dev_err(&pdev->dev, "can't claim irq %d\n", irq);
--
2.25.1
Powered by blists - more mailing lists