diff options
author | Ivan Djelic <ivan.djelic@parrot.com> | 2012-04-17 13:11:53 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-05-14 05:54:00 +0200 |
commit | a9c465f07c2dcd515d20b96f93470762f9ae08b6 (patch) | |
tree | 032b37acddd9c54b34adfdc3acf03a48a30e0453 /drivers/parisc | |
parent | mtd: fsmc_nand: Add clk_{un}prepare() support (diff) | |
download | linux-a9c465f07c2dcd515d20b96f93470762f9ae08b6.tar.xz linux-a9c465f07c2dcd515d20b96f93470762f9ae08b6.zip |
mtd: nand: omap: fix race condition in omap_wait()
If a context switch occurs in function omap_wait() just before the
while loop is entered, then upon return from context switch the
timeout may already have elapsed: in that case, status is never
read from NAND device, and omap_wait() returns an error.
This failure has been experimentally observed during stress tests.
This patch ensures a NAND status read is always performed before
returning, as in the generic nand_wait() function.
Signed-off-by: Ivan Djelic <ivan.djelic@parrot.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions