]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: chips: cfi_cmdset_0002: Match ENABLE_VPP()/DISABLE_VPP() calls
authorPaul Parsons <lost.distance@yahoo.com>
Wed, 7 Mar 2012 14:11:16 +0000 (14:11 +0000)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:36:02 +0000 (08:36 +0200)
commit091329e918631cb76109e153688d98a4326b0ae8
tree8c3667fc1843f2e69652b692ab287f4fb56a348f
parentf592aedace2226036c4c1aea191ec4f1cb60f61f
mtd: chips: cfi_cmdset_0002: Match ENABLE_VPP()/DISABLE_VPP() calls

This patch is part of a set which fixes unnecessary flash erase and write errors
resulting from the MTD CFI driver turning off vpp while an erase is in progress.
This patch ensures that only those flash operations which call ENABLE_VPP() can
then call DISABLE_VPP(). Other operations should never call DISABLE_VPP().

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/chips/cfi_cmdset_0002.c