linux/drivers/misc/eeprom
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
..
at24.c at24: make input buffers of at24_*write() const 2009-04-13 15:04:32 -07:00
at25.c eeprom/at25: bugfix "not ready" timeout after write 2009-07-29 19:10:35 -07:00
eeprom_93cx6.c eeprom: Move 93cx6 eeprom driver to /drivers/misc/eeprom 2009-01-26 21:19:54 +01:00
eeprom.c
Kconfig i2c/chips: Move max6875 to drivers/misc/eeprom 2009-06-15 18:01:49 +02:00
Makefile i2c/chips: Move max6875 to drivers/misc/eeprom 2009-06-15 18:01:49 +02:00
max6875.c i2c/chips: Move max6875 to drivers/misc/eeprom 2009-06-15 18:01:49 +02:00