diff options
author | Wei Jinhua <wei.jinhua1@zte.com.cn> | 2017-10-11 03:57:20 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-10-13 15:05:51 -0400 |
commit | df0a2fdab0068f7452bf0a97ea9ba0ad69d49a1f (patch) | |
tree | 5a68efd5dc65fd2f236467b639ab60e20cb74169 | |
parent | c6ebcedbab7ca78984959386012a17b21183e1a3 (diff) |
i2c: imx: use IRQF_SHARED mode to request IRQ
Some SoC share one irq number between I2C controllers.
For example, on the LS2088 board, I2C 1 and I2C 2 share
one irq number. In this case, only one I2C controller
can register successfully, and others will fail.
Signed-off-by: Wei Jinhua <wei.jinhua1@zte.com.cn>
Reviewed-by: Jiang Biao <jiang.biao2@zte.com.cn>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 54a47b40546f..e5c8b3d5df77 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c | |||
@@ -1100,7 +1100,7 @@ static int i2c_imx_probe(struct platform_device *pdev) | |||
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | /* Request IRQ */ | 1102 | /* Request IRQ */ |
1103 | ret = devm_request_irq(&pdev->dev, irq, i2c_imx_isr, 0, | 1103 | ret = devm_request_irq(&pdev->dev, irq, i2c_imx_isr, IRQF_SHARED, |
1104 | pdev->name, i2c_imx); | 1104 | pdev->name, i2c_imx); |
1105 | if (ret) { | 1105 | if (ret) { |
1106 | dev_err(&pdev->dev, "can't claim irq %d\n", irq); | 1106 | dev_err(&pdev->dev, "can't claim irq %d\n", irq); |