Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dcc41bc81c872862652d68af8993b9fa32ce56a4
Commit:     dcc41bc81c872862652d68af8993b9fa32ce56a4
Parent:     2c8cfdcbeb1ab0ec7bbd5af1be311b55281154c4
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 27 09:55:34 2006 +0300
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Fri Oct 27 09:55:34 2006 +0300

    [MTD] NAND: Reset Café controller before initialising.
    
    Fixes http://dev.laptop.org/ticket/237
    
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/nand/cafe.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/nand/cafe.c b/drivers/mtd/nand/cafe.c
index 6bcb430..dd274c8 100644
--- 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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to