]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: chips: cfi_cmdset_0001: Match ENABLE_VPP()/DISABLE_VPP() calls
authorPaul Parsons <lost.distance@yahoo.com>
Wed, 7 Mar 2012 14:10:33 +0000 (14:10 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:50:36 +0000 (00:50 +0100)
commit85e5b2f2986310f2f75069c360669f6ce8e2ceb9
tree88a6319d5f5ac32b3d4fedea623626c0da127a5f
parent0c78e93b44f39d4e5dfd4ebfc529cd74ac2a9bbb
mtd: chips: cfi_cmdset_0001: 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>
drivers/mtd/chips/cfi_cmdset_0001.c