projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3859d1
)
mtd: nand: pxa3xx_nand: fix early spurious interrupt
author
Ofer Heifetz
<
[email protected]
>
Wed, 29 Aug 2018 08:56:03 +0000
(11:56 +0300)
committer
Stefan Roese
<
[email protected]
>
Wed, 19 Sep 2018 07:00:39 +0000
(09:00 +0200)
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 <
[email protected]
>
Signed-off-by: Ofer Heifetz <
[email protected]
>
Reviewed-by: Igal Liberman <
[email protected]
>
Cc: Stefan Roese <
[email protected]
>
Cc: Simon Glass <
[email protected]
>
Signed-off-by: Stefan Roese <
[email protected]
>
drivers/mtd/nand/pxa3xx_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/pxa3xx_nand.c
b/drivers/mtd/nand/pxa3xx_nand.c
index 8e450fb91ad0acf1a1e4325649faa4df55860925..7b1dcb24eee63be03df3d068019fa08fc5fb54bc 100644
(file)
--- 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);
}