]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 15 Oct 2013 20:56:59 +0000 (13:56 -0700)
commita01c738410dc4d5d5a37e2d855e9087de88ffb30
treed9fb1107e019f430653194fd35988d3dd7bb1a0d
parent581cfdb7df2a68de178f53401c99ce5721238f78
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