From linux-mtd at lists.infradead.org  Mon Dec 24 11:59:02 2012
From: linux-mtd at lists.infradead.org (Linux-MTD Mailing List)
Date: Mon, 24 Dec 2012 16:59:02 +0000
Subject: mtd: bcm47xxnflash: increase NFLASH_READY_RETRIES
Message-ID: <E1TnBMk-0005uS-3M@bombadil.infradead.org>

Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5a40b5fb2bb3a4d1c20149fe47ab25409026ee2e
Commit:     5a40b5fb2bb3a4d1c20149fe47ab25409026ee2e
Parent:     ca2a88f56aa385890c7fd4ce9d2722b0848ca990
Author:     Rafa? Mi?ecki <zajec5 at gmail.com>
AuthorDate: Mon Dec 24 17:34:29 2012 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Dec 24 16:55:51 2012 +0000

    mtd: bcm47xxnflash: increase NFLASH_READY_RETRIES
    
    Recently imlemented writing support has shown that current num of
    retries is too low. Writing requires longer waiting than simple reading.
    
    Signed-off-by: Rafa? Mi?ecki <zajec5 at gmail.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c b/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
index 86c9a79..595de40 100644
--- a/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
+++ b/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
@@ -17,8 +17,8 @@
 #include "bcm47xxnflash.h"
 
 /* Broadcom uses 1'000'000 but it seems to be too many. Tests on WNDR4500 has
- * shown 164 retries as maxiumum. */
-#define NFLASH_READY_RETRIES		1000
+ * shown ~1000 retries as maxiumum. */
+#define NFLASH_READY_RETRIES		10000
 
 #define NFLASH_SECTOR_SIZE		512
 


