From: oferh at marvell.com Date: Wed, 6 Dec 2017 08:55:42 +0200 Subject: [U-Boot] [RFC PATCH v3 04/10] mtd: nand: pxa3xx_nand: fix early spurious interrupt In-Reply-To: <1512543348-1673-1-git-send-email-oferh@marvell.com> References: <1512543348-1673-1-git-send-email-oferh@marvell.com> Message-ID: <1512543348-1673-5-git-send-email-oferh@marvell.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Ofer Heifetz When the nand is first probe, and upon the first command start, the status bits should be cleared before the interrupts are unmasked. [ Linux commit 0b14392db2e998157d924085d7913e537ec26121 ] Cc: Robert Jarzmik Signed-off-by: Chris Packham Reviewed-by: Ofer Heifetz Tested-by: Ofer Heifetz --- drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 3feaf0c..5d37f22 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -482,8 +482,8 @@ static void pxa3xx_nand_start(struct pxa3xx_nand_info *info) ndcr |= NDCR_ND_RUN; /* clear status bits and run */ - nand_writel(info, NDCR, 0); nand_writel(info, NDSR, NDSR_MASK); + nand_writel(info, NDCR, 0); nand_writel(info, NDCR, ndcr); } -- 1.9.1