public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: Fix re-probing after hibernation
@ 2010-12-08 15:23 Takashi Iwai
  2010-12-08 22:04 ` Maxim Levitsky
  2010-12-09  1:53 ` Chris Ball
  0 siblings, 2 replies; 6+ messages in thread
From: Takashi Iwai @ 2010-12-08 15:23 UTC (permalink / raw)
  To: Chris Ball
  Cc: Maxim Levitsky, Oliver Neukum, Andrew Morton, linux-mmc,
	linux-kernel

The commit 4c2ef25fe0b847d2ae818f74758ddb0be1c27d8e
  mmc: fix all hangs related to mmc/sd card insert/removal during
  suspend/resume
introduced a bug where the device probing no longer works after
hibernation.  This was because the pm notifier expects
PM_POST_HIBERNATION call while the system sends PM_POST_RESTORE
instead, thus disable_rescan is kept as 1.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 drivers/mmc/core/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 31ae07a..30094f6 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1772,7 +1772,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,
 		break;
 
 	case PM_POST_SUSPEND:
-	case PM_POST_HIBERNATION:
+	case PM_POST_RESTORE:
 
 		spin_lock_irqsave(&host->lock, flags);
 		host->rescan_disable = 0;
-- 
1.7.3.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-11 21:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 15:23 [PATCH] mmc: Fix re-probing after hibernation Takashi Iwai
2010-12-08 22:04 ` Maxim Levitsky
2010-12-09  1:53 ` Chris Ball
     [not found]   ` <s5hlj3z1ksb.wl%tiwai@suse.de>
2010-12-09 20:37     ` Rafael J. Wysocki
2010-12-10  7:40       ` Takashi Iwai
2010-12-11 21:55         ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox