]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:52:23 +0000 (00:52 +0100)
commit1d0ad671c656d30ae9f81fa30cc7a6c091bf6330
tree4c498a6a946d1f45f143ff62de26414d4437df5f
parent556093e70327a41563a0c51e65bc172b414d447f
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>
drivers/mtd/chips/cfi_cmdset_0002.c