mtd: pxa3xx_nand: enhance suspend and resume routine
authorLei Wen <leiwen@marvell.com>
Fri, 15 Jul 2011 03:44:30 +0000 (20:44 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:15 +0000 (15:02 +0300)
commit051fc41c2e578e10950bf34dc84878e489e0679f
tree8fb03f5ea60ca132ffe9b1e12e2a82098ad2f24d
parent52a474de0a830bdf4305ef19c3321064ce5da438
mtd: pxa3xx_nand: enhance suspend and resume routine

This patch add protection on the suspend&resume path to prevent
some unexpected behavior, like interrupt occur at the very second
of resume back and it don't follow normal command path, which lead
to bug.

Signed-off-by: Lei Wen <leiwen@marvell.com>
drivers/mtd/nand/pxa3xx_nand.c