diff options
author | Huang Shijie <b32955@freescale.com> | 2013-04-12 15:33:11 +0800 |
---|---|---|
committer | Huang Shijie <b32955@freescale.com> | 2013-04-15 18:05:53 +0800 |
commit | 25af3594148e6ab16ad0d86b36cded7200c880d2 (patch) | |
tree | d202502089634b5beb8cc1dbfa73382a8cc0682b /drivers/mtd/chips/cfi_cmdset_0002.c | |
parent | f8f1b8124d552ec0320c4360b460ed2d74fab81d (diff) |
ENGR00258733 WEIM-NOR: mtd: cfi_cmdset_0002: Do not release the mutex lock
The NOR may suffers a write-buffer timeout during the bonnie++/ubifs stress
test. This patch is just a workaround to fix this issue.
With this patch, the read/write/erase will do in the synchronous way.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'drivers/mtd/chips/cfi_cmdset_0002.c')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index a35416cbdbb4..f3626b0d7b11 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -1040,17 +1040,13 @@ static void __xipram xip_udelay(struct map_info *map, struct flchip *chip, #define UDELAY(map, chip, adr, usec) \ do { \ - mutex_unlock(&chip->mutex); \ cfi_udelay(usec); \ - mutex_lock(&chip->mutex); \ } while (0) #define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec) \ do { \ - mutex_unlock(&chip->mutex); \ INVALIDATE_CACHED_RANGE(map, adr, len); \ cfi_udelay(usec); \ - mutex_lock(&chip->mutex); \ } while (0) #endif |