From 54a30eeae9b663df8c551a275041d4f3d2b35db3 Mon Sep 17 00:00:00 2001 From: Huang Shijie Date: Fri, 12 Apr 2013 15:33:11 +0800 Subject: [PATCH] ENGR00258733 WEIM-NOR: mtd: cfi_cmdset_0002: Do not release the mutex lock 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 --- drivers/mtd/chips/cfi_cmdset_0002.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index fff665d59a0d..b4e8832eb4fa 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -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 -- 2.39.5