]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00258733 WEIM-NOR: mtd: cfi_cmdset_0002: Do not release the mutex lock
authorHuang Shijie <b32955@freescale.com>
Fri, 12 Apr 2013 07:33:11 +0000 (15:33 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:53 +0000 (09:54 +0800)
The NOR(M29W256GL7AN6E) may suffers a write-buffer timeout during
the bonnie++/ubifs stress test. Micron has confirmed that it is
a silicon bug in the Nor.

This patch is just a workaround to fix this issue for this NOR.

With this patch, the read/write/erase will do in the synchronous way.

Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/chips/cfi_cmdset_0002.c

index fff665d59a0dba759f63854bb95e25bbb998b64f..b4e8832eb4fa25939d55e7f60f51e68a584879d5 100644 (file)
@@ -1058,17 +1058,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