]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: docg4: fix status polling loop
authorMike Dunn <mikedunn@newsguy.com>
Thu, 10 Oct 2013 17:25:27 +0000 (10:25 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:52 +0000 (23:32 -0800)
commitd8538d2fa2d591f0b656f9326f7246e7e1a1ad3e
tree9d37d26744995ad6418258e995e6575f29e9ae75
parent84f8b4f4d8341d68cbdd0b13f945dee1e178ec08
mtd: docg4: fix status polling loop

The loop that polls the status register waiting for an operation to complete
foolishly bases the timeout simply on the number of loop iterations that have
ocurred.  When I increased the processor clock speed, timeouts started to appear
for long block erasure operations.  This patch measures the timeout using
jiffies.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/docg4.c