Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: m25p80 timeout too short for worst-case m25p16 devices

The m25p16 data sheet from numonyx lists the worst-case bulk erase time
(tBE) as 40 seconds.

Signed-off-by: Steven A. Falco <sfalco@harris.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Steven A. Falco and committed by
David Woodhouse
89bb871e ae27a7ab

+1 -1
+1 -1
drivers/mtd/devices/m25p80.c
··· 54 54 #define SR_SRWD 0x80 /* SR write protect */ 55 55 56 56 /* Define max times to check status register before we give up. */ 57 - #define MAX_READY_WAIT_JIFFIES (10 * HZ) /* eg. M25P128 specs 6s max sector erase */ 57 + #define MAX_READY_WAIT_JIFFIES (40 * HZ) /* M25P16 specs 40s max chip erase */ 58 58 #define CMD_SIZE 4 59 59 60 60 #ifdef CONFIG_M25PXX_USE_FAST_READ