mtd: bcm47xxnflash: increase NFLASH_READY_RETRIES
authorRafał Miłecki <zajec5@gmail.com>
Mon, 24 Dec 2012 16:34:29 +0000 (17:34 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 24 Dec 2012 16:55:51 +0000 (16:55 +0000)
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@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c

index 86c9a79..595de40 100644 (file)
@@ -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