]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] [OneNAND] Avoid deadlock in erase callback; release chip lock first.
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Fri, 12 Oct 2007 07:34:01 +0000 (10:34 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 14 Oct 2007 12:37:53 +0000 (13:37 +0100)
commit1cd270853ee377b0dad2bd3e7a2a546ec4dd0694
tree287cdca45092f67a98af79853134e71545cfdf12
parent2976a687883e8060666cd25a90150890f3100382
[MTD] [OneNAND] Avoid deadlock in erase callback; release chip lock first.

When the erase callback performs some other action on the flash, it's
highly likely to deadlock unless we actually release the chip lock
before calling it.

This patch mirrors that same change already done for NAND.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/onenand/onenand_base.c