diff options
author | Mike Dunn <mikedunn@newsguy.com> | 2013-10-10 19:25:27 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2013-11-07 08:32:52 +0100 |
commit | 9fee840c03d944ed1564c127375a702e242d9555 (patch) | |
tree | 9d37d26744995ad6418258e995e6575f29e9ae75 /drivers/mtd/devices/docg3.c | |
parent | mtd: socrates_nand: Use dev_err instead of printk (diff) | |
download | linux-9fee840c03d944ed1564c127375a702e242d9555.tar.xz linux-9fee840c03d944ed1564c127375a702e242d9555.zip |
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>
Diffstat (limited to 'drivers/mtd/devices/docg3.c')
0 files changed, 0 insertions, 0 deletions