diff options
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0001.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index 7ea49a0d5ec3..e24973636e61 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c | |||
@@ -2224,6 +2224,8 @@ static int cfi_intelext_suspend(struct mtd_info *mtd) | |||
2224 | case FL_CFI_QUERY: | 2224 | case FL_CFI_QUERY: |
2225 | case FL_JEDEC_QUERY: | 2225 | case FL_JEDEC_QUERY: |
2226 | if (chip->oldstate == FL_READY) { | 2226 | if (chip->oldstate == FL_READY) { |
2227 | /* place the chip in a known state before suspend */ | ||
2228 | map_write(map, CMD(0xFF), cfi->chips[i].start); | ||
2227 | chip->oldstate = chip->state; | 2229 | chip->oldstate = chip->state; |
2228 | chip->state = FL_PM_SUSPENDED; | 2230 | chip->state = FL_PM_SUSPENDED; |
2229 | /* No need to wake_up() on this state change - | 2231 | /* No need to wake_up() on this state change - |