summaryrefslogtreecommitdiff
path: root/Documentation/edac.txt
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-11-05 13:32:03 +0300
committerBrian Norris <computersforpeace@gmail.com>2014-11-26 09:51:23 +0300
commita95ce92e4b289228c51114dd19f714388093d52b (patch)
tree0664ac89d17322f75a025c2d4d7da67893b73880 /Documentation/edac.txt
parent05a221bb1f49e6eebc9a3858cb45506f403b3ab6 (diff)
downloadlinux-a95ce92e4b289228c51114dd19f714388093d52b.tar.xz
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>
Diffstat (limited to 'Documentation/edac.txt')
0 files changed, 0 insertions, 0 deletions