projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c8cfdc
)
[MTD] NAND: Reset Café controller before initialising.
author
David Woodhouse
<dwmw2@infradead.org>
Fri, 27 Oct 2006 06:55:34 +0000
(09:55 +0300)
committer
David Woodhouse
<dwmw2@infradead.org>
Fri, 27 Oct 2006 06:55:34 +0000
(09:55 +0300)
Fixes http://dev.laptop.org/ticket/237
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/cafe.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/cafe.c
b/drivers/mtd/nand/cafe.c
index 6bcb430b951c111518410cc6bab41f7eb8b72ef1..dd274c877b5eeeb726d9c07be78621d2ba988b32 100644
(file)
--- a/
drivers/mtd/nand/cafe.c
+++ b/
drivers/mtd/nand/cafe.c
@@
-598,6
+598,10
@@
static int __devinit cafe_nand_probe(struct pci_dev *pdev,
cafe->nand.block_bad = cafe_nand_block_bad;
}
+ /* Start off by resetting the NAND controller completely */
+ writel(1, cafe->mmio + 0x3034);
+ writel(0, cafe->mmio + 0x3034);
+
/* Timings from Marvell's test code (not verified or calculated by us) */
writel(0xffffffff, cafe->mmio + CAFE_NAND_IRQ_MASK);
#if 1