mtd: fix timeout in M25P80 driver
authorPeter Horton <zero@colonel-panic.org>
Fri, 8 May 2009 12:51:53 +0000 (13:51 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 8 May 2009 12:51:53 +0000 (13:51 +0100)
commitcd1a6de7d4a492bf3405a6c070075a4cb8c90262
treed505355d42b3af8b93b6fd191e23a88c8e892d93
parent3f33b0aaac4e208579fe5aa2964857d4e9ba10c5
mtd: fix timeout in M25P80 driver

Extend erase timeout in M25P80 SPI Flash driver.

The M25P80 drivers fails erasing sectors on a M25P128 because the ready
wait timeout is too short. Change the timeout from a simple loop count to a
suitable number of seconds.

Signed-off-by: Peter Horton <zero@colonel-panic.org>
Tested-by: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c