[MTD] [NOR] fix cfi_cmdset_0001 FL_SYNCING race (take 2)
commit3afe7eb37f4d47f31d30a81c1b42ca02eab01e44
authorAlexander Belyakov <abelyako@mail.ru>
Thu, 25 Sep 2008 13:53:24 +0000 (25 17:53 +0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 27 Sep 2008 00:56:18 +0000 (26 18:56 -0600)
tree7e860adfbe462b3570dfcb1f4b18dabffabf1908
parentef89a8801321e0d0665c327c9d77d602ef764c87
[MTD] [NOR] fix cfi_cmdset_0001 FL_SYNCING race (take 2)

The patch fixes CFI issue with multipartitional devices leading to the
set of errors or even deadlock. The problem is CFI FL_SYNCING state race
with flash operations (e.g. erase suspend). It is reproduced by running
intensive writes on one JFFS2 partition and simultaneously performing
mount/unmount cycle on another partition of the same chip.

Signed-off-by: Alexander Belyakov <abelyako@googlemail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0001.c