提交 346e1259 编写于 作者: H Haojian Zhuang 提交者: Eric Miao

pxa3xx_nand: disable nand irq in initialization

In some bootloader, IRQ is enabled. Writing nand triggers unexpected
interrupts. So disable nand irq in initialization. After nand
initialized and in working state, irq is controlled by nand driver.
Signed-off-by: NHaojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
上级 dbf5986a
...@@ -1244,6 +1244,9 @@ static int pxa3xx_nand_probe(struct platform_device *pdev) ...@@ -1244,6 +1244,9 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
if (ret) if (ret)
goto fail_free_io; goto fail_free_io;
/* initialize all interrupts to be disabled */
disable_int(info, NDSR_MASK);
ret = request_irq(irq, pxa3xx_nand_irq, IRQF_DISABLED, ret = request_irq(irq, pxa3xx_nand_irq, IRQF_DISABLED,
pdev->name, info); pdev->name, info);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册