kernel: bump 5.4 to 5.4.66
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 808-i2c-0002-MLK-10893-i2c-imx-add-irqf_no_suspend.patch
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 @@ -1113,7 +1113,8 @@ static int i2c_imx_probe(struct platform
21 }
22
23 /* Request IRQ */
24 - ret = devm_request_irq(&pdev->dev, irq, i2c_imx_isr, IRQF_SHARED,
25 + ret = devm_request_irq(&pdev->dev, irq, i2c_imx_isr,
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);