summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-09-01 10:03:33 -0700
committerStefan Agner <stefan@agner.ch>2015-09-01 10:03:33 -0700
commitc303ef128309236cf5d62567a9f120451b3cce9a (patch)
treececc771a64f060ce49d96dcd90fc62abbc0b1c86 /drivers/mtd/ubi
parentf0a5b778a1676bed3d9760823bfeb2b18aee74f4 (diff)
mtd: nand: vf610_nfc: unconditionally wait for interrupt
Always wait for idle interrupt. This avoids a race condition: The interrupt may fire between setting and checking the idle bit. So the IRQ handler will increment the completion struct (cmd_done), but won't be doing the corresponding decrement via wait_for_completion(). The subsequent wait_for_completion() will immediately succeed, the upper layers then read out the old page buffer (again). This explains the pattern observed in various tests which showed data of the same page twice instead of two consecutive pages...
Diffstat (limited to 'drivers/mtd/ubi')
0 files changed, 0 insertions, 0 deletions