Skip to contentSkip to conversation

Fix 'Flash device refused suspend due to active operation' message

PATCH Applied Russell King - ARM Linux 2 participants 2 messages Feb 15, 2012 – Feb 29, 2012 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix 'Flash device refused suspend due to active operation' message

From: Russell King <[email protected]>

While debugging on SA11x0, the following message was observed:

"Flash device refused suspend due to active operation (state 20)"

---
I'm afraid that it's been too long since I looked at this, and I no longer remember the details behind this to write a proper commit log, so maybe someone who understands the code can do that. I seem to remember dwmw2 said the current code was in error, so here's the patch.

 drivers/mtd/chips/cfi_cmdset_0001.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/chips/cfi_cmdset_0001.c +1 -1
index e1e122f..709a11f 100644
@@ -2483,7 +2483,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;
#1 lore raw
Quoted 7 lines · Russell King - ARM Linux

From: Russell King <[email protected]>

While debugging on SA11x0, the following message was observed:

"Flash device refused suspend due to active operation (state 20)"

Pushed to l2-mtd.git, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy