提交 df0a2fda 编写于 作者: W Wei Jinhua 提交者: Wolfram Sang

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: NWei Jinhua <wei.jinhua1@zte.com.cn>
Reviewed-by: NJiang Biao <jiang.biao2@zte.com.cn>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 c6ebcedb
...@@ -1100,7 +1100,7 @@ static int i2c_imx_probe(struct platform_device *pdev) ...@@ -1100,7 +1100,7 @@ static int i2c_imx_probe(struct platform_device *pdev)
} }
/* Request IRQ */ /* Request IRQ */
ret = devm_request_irq(&pdev->dev, irq, i2c_imx_isr, 0, ret = devm_request_irq(&pdev->dev, irq, i2c_imx_isr, IRQF_SHARED,
pdev->name, i2c_imx); pdev->name, i2c_imx);
if (ret) { if (ret) {
dev_err(&pdev->dev, "can't claim irq %d\n", irq); dev_err(&pdev->dev, "can't claim irq %d\n", irq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册