mtd: fix 'Flash device refused suspend due to active operation' message
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Mar 26 20:59:10 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=342d3a93e2b191b0ada07ba7c48380181c9214e8
Commit: 342d3a93e2b191b0ada07ba7c48380181c9214e8
Parent: 492b8bde2c2badd3e5845f2e8de6fa9065438743
Author: Russell King <rmk+kernel at arm.linux.org.uk>
AuthorDate: Wed Feb 15 11:48:34 2012 +0000
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 00:36:40 2012 +0100
mtd: fix 'Flash device refused suspend due to active operation' message
While debugging on SA11x0, the following message was observed:
"Flash device refused suspend due to active operation (state 20)"
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/chips/cfi_cmdset_0001.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index 2d96690..920b474 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -2479,7 +2479,7 @@ static int cfi_intelext_suspend(struct mtd_info *mtd)
allowed to. Or should we return -EAGAIN, because the upper layers
ought to have already shut down anything which was using the device
anyway? The latter for now. */
- printk(KERN_NOTICE "Flash device refused suspend due to active operation (state %d)\n", chip->oldstate);
+ printk(KERN_NOTICE "Flash device refused suspend due to active operation (state %d)\n", chip->state);
ret = -EAGAIN;
case FL_PM_SUSPENDED:
break;
More information about the linux-mtd-cvs
mailing list