From: David Sniatkiwicz Date: Wed, 29 Aug 2018 08:56:18 +0000 (+0300) Subject: fix: nand: pxa3xx: Add WA for eliminating flash ready timeout X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=e76afd84095a10e7cd9d8ee6b74ed94941e5f4f8;p=u-boot.git fix: nand: pxa3xx: Add WA for eliminating flash ready timeout add delay before processing the status flags in pxa3xx_nand_irq(). Signed-off-by: David Sniatkiwicz Reviewed-by: Igal Liberman Reviewed-by: Kostya Porotchkin c: Stefan Roese Cc: Simon Glass Signed-off-by: Stefan Roese --- diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 3323557999..2a02a9d58e 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -668,6 +668,9 @@ static irqreturn_t pxa3xx_nand_irq(struct pxa3xx_nand_info *info) cmd_done = NDSR_CS1_CMDD; } + /* TODO - find out why we need the delay during write operation. */ + ndelay(1); + status = nand_readl(info, NDSR); if (status & NDSR_UNCORERR)