]> git.baikalelectronics.ru Git - kernel.git/commit
at24: Use timeout also for read
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 26 Nov 2009 08:22:33 +0000 (09:22 +0100)
committerJean Delvare <khali@linux-fr.org>
Thu, 26 Nov 2009 08:22:33 +0000 (09:22 +0100)
commit9c13489436c4473839aa9a33077af40230d31f1b
tree960fbfa00bb0372a6be425b8131dd4d937e5d0d8
parentfe5b5004074e9d7e49b7c0e46e71b46576d52077
at24: Use timeout also for read

Writes may take some time on EEPROMs, so for consecutive writes, we already
have a loop waiting for the EEPROM to become ready. Use such a loop for reads,
too, in case somebody wants to immediately read after a write. Detailed bug
report and test case can be found here:

http://article.gmane.org/gmane.linux.drivers.i2c/4660

Reported-by: Aleksandar Ivanov <ivanov.aleks@gmail.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Aleksandar Ivanov <ivanov.aleks@gmail.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/misc/eeprom/at24.c