소스 검색

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: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Haojian Zhuang 16 년 전
부모
커밋
346e125967
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      drivers/mtd/nand/pxa3xx_nand.c

+ 3 - 0
drivers/mtd/nand/pxa3xx_nand.c

@@ -1244,6 +1244,9 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
 	if (ret)
 		goto fail_free_io;
 
+	/* initialize all interrupts to be disabled */
+	disable_int(info, NDSR_MASK);
+
 	ret = request_irq(irq, pxa3xx_nand_irq, IRQF_DISABLED,
 			  pdev->name, info);
 	if (ret < 0) {