| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From 0d7b6f59e736f6f7389e5346a518f2dc009bbf89 Mon Sep 17 00:00:00 2001 |
| 2 | From: gaopan <b54642@freescale.com> |
| 3 | Date: Tue, 12 May 2015 18:25:29 +0800 |
| 4 | Subject: [PATCH] MLK-10893: i2c: imx: add irqf_no_suspend |
| 5 | |
| 6 | The i2c irq is masked when pcie starts a i2c transfer process |
| 7 | during noirq suspend stage. As a result, i2c transfer fails. |
| 8 | To solve the problem, IRQF_NO_SUSPEND is added to i2c bus. |
| 9 | |
| 10 | Signed-off-by: Gao Pan <b54642@freescale.com> |
| 11 | Signed-off-by: Fugang Duan <B38611@freescale.com> |
| 12 | Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com> |
| 13 | (cherry picked from commit d21259d913effcad322e30d389323e72a0f9709d) |
| 14 | --- |
| 15 | drivers/i2c/busses/i2c-imx.c | 3 ++- |
| 16 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 17 | |
| 18 | --- a/drivers/i2c/busses/i2c-imx.c |
| 19 | +++ b/drivers/i2c/busses/i2c-imx.c |
| 20 | @@ -1159,7 +1159,8 @@ static int i2c_imx_probe(struct platform |
| 21 | goto rpm_disable; |
| 22 | |
| 23 | /* Request IRQ */ |
| 24 | - ret = request_threaded_irq(irq, i2c_imx_isr, NULL, IRQF_SHARED, |
| 25 | + ret = request_threaded_irq(irq, i2c_imx_isr, NULL, |
| 26 | + IRQF_SHARED | IRQF_NO_SUSPEND, |
| 27 | pdev->name, i2c_imx); |
| 28 | if (ret) { |
| 29 | dev_err(&pdev->dev, "can't claim irq %d\n", irq); |