Skip to content

Commit

Permalink
mtd: bcm47xxnflash: increase NFLASH_READY_RETRIES
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafał Miłecki authored and David Woodhouse committed Dec 24, 2012
1 parent ca2a88f commit 5a40b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5a40b5f

Please sign in to comment.