diff options
| author | Steven A. Falco <[email protected]> | 2009-04-27 21:10:10 +0000 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2009-04-29 05:49:28 +0000 |
| commit | 3f33b0aaac4e208579fe5aa2964857d4e9ba10c5 (patch) | |
| tree | d63af4077e9f102a39c0f2d035f72dfa5fb7c1fc /fs/proc/array.c | |
| parent | mtd: expose subpage size via sysfs (diff) | |
| download | kernel-3f33b0aaac4e208579fe5aa2964857d4e9ba10c5.tar.gz kernel-3f33b0aaac4e208579fe5aa2964857d4e9ba10c5.zip | |
mtd: Bug in m25p80.c during whole-chip erase
There is a logic error in "whole chip erase" for the m25p80 family. If
the whole device is successfully erased, erase_chip() will return 0, and
the code will fall through to the "else" clause, and do sector-by-sector
erase in addition to the whole-chip erase. This patch corrects that.
Also, the MAX_READY_WAIT_COUNT is insufficient for an m25p16 connected
to a 400 MHz powerpc. Increasing it allows me to successfully program
the device on my board.
Signed-off-by: Steven A. Falco <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
