linux-stable/drivers/mtd/spi-nor
Brian Norris a95ce92e4b mtd: spi-nor: improve wait-till-ready timeout loop
There are a few small issues with the timeout loop in
spi_nor_wait_till_ready():

 * The first operation should not be a reschedule; we should check the
   status register at least once to see if we're complete!

 * We should check the status register one last time after declaring the
   deadline has passed, to prevent a premature timeout error (this is
   theoretically possible if we sleep for a long time after the previous
   status register check).

 * Add an error message, so it's obvious if we ever hit a timeout.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Huang Shijie <shijie.huang@intel.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
2014-11-25 22:51:23 -08:00
..
fsl-quadspi.c mtd: fsl-quadspi: drop wait-till-ready checks 2014-11-05 02:08:21 -08:00
Kconfig mtd: spi-nor: add Kconfig option to disable 4K sectors 2014-09-28 14:14:52 -07:00
Makefile mtd: spi-nor: shorten Kconfig naming 2014-04-14 11:23:01 -07:00
spi-nor.c mtd: spi-nor: improve wait-till-ready timeout loop 2014-11-25 22:51:23 -08:00