diff options
author | Ofer Heifetz <oferh@marvell.com> | 2018-08-29 11:56:03 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2018-09-19 09:00:39 +0200 |
commit | 658999244a0446a32301bc34c8fa53f1a3f05594 (patch) | |
tree | 0ac10736771c5bb104e085b9b8a2b6e85fd79524 /drivers/mtd | |
parent | d3859d1b5349e8105b23043e6e7158e3dc1582d4 (diff) | |
download | u-boot-658999244a0446a32301bc34c8fa53f1a3f05594.tar.gz |
mtd: nand: pxa3xx_nand: fix early spurious interrupt
When the nand is first probe, and upon the first command start, the
status bits should be cleared before the interrupts are unmasked.
This commit is taken from Linux:
'commit 0b14392db2e'
("mtd: nand: pxa3xx_nand: fix early spurious interrupt")
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Ofer Heifetz <oferh@marvell.com>
Reviewed-by: Igal Liberman <igall@marvell.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index 8e450fb91a..7b1dcb24ee 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -481,8 +481,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); } |