]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: maps: sa1100-flash: Add reference counter to set_vpp()
authorPaul Parsons <lost.distance@yahoo.com>
Wed, 7 Mar 2012 14:14:31 +0000 (14:14 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:53:02 +0000 (00:53 +0100)
commit8638e804bb0fbdd5b92f7bad3cff35af50416194
tree3f9b3bdb6967607cf7e13579469f0ceaeb0e3bfe
parent304a11b40b97b77a6dcaf354a83d3c486248f863
mtd: maps: sa1100-flash: Add reference counter to set_vpp()

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 allows sa1100_set_vpp() calls to be nested by adding a reference
counter.

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/maps/sa1100-flash.c