linux/drivers/misc
Sebastian Heutling f0d83679a8 eeprom/at25: bugfix "not ready" timeout after write
Under certain circumstances msleep(1) within the loop, which waits for the
EEPROM to be finished, might take longer than the timeout.  On the next
loop the status register might now return to be ready and therefore the
loop finishes.  The following check now tests if a timeout occurred and if
so returns an error although the device reported it was ready.

This fix replaces testing the occurrence of the timeout by testing the
"not ready" bit in the status register.

Signed-off-by: Sebastian Heutling <heutling@who-ing.de>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-07-29 19:10:35 -07:00
..
c2port
cb710
eeprom eeprom/at25: bugfix "not ready" timeout after write 2009-07-29 19:10:35 -07:00
hdpuftrs
ibmasm
sgi-gru headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
sgi-xp Remove multiple KERN_ prefixes from printk formats 2009-07-08 10:30:03 -07:00
atmel_pwm.c
atmel_tclib.c
atmel-ssc.c
enclosure.c
hpilo.c
hpilo.h
ics932s401.c
ioc4.c
isl29003.c
Kconfig
kgdbts.c
lkdtm.c
Makefile
phantom.c
tifm_7xx1.c
tifm_core.c