]> 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)
commitefcbb26941962a44581106b99c9b1a2d9135b5ee
tree3f9b3bdb6967607cf7e13579469f0ceaeb0e3bfe
parente160398411733bcfafd451cfe2b3af25840b1720
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