]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/mtd/maps/sa1100-flash.c
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)
commitee478af8b675908b217198a75cf759d422a81ccb
tree3f9b3bdb6967607cf7e13579469f0ceaeb0e3bfe
parent7c8d206f219fe52966d970f791246a542718e5ba
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