]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: maps: l440gx: Add reference counter to set_vpp()
authorPaul Parsons <lost.distance@yahoo.com>
Wed, 7 Mar 2012 14:12:50 +0000 (14:12 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:52:49 +0000 (00:52 +0100)
commit7306ac80f90dd64f00ddbdc8a9ff5a7bfc34ef70
tree486eea6db78490042d4f6d0f6eb7bd8e834e2598
parentec528cb8b64a150cc43be27e6b23da0c36c99685
mtd: maps: l440gx: 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 l440gx_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/l440gx.c