]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: Fix re-probing with PM_POST_RESTORE notification
authorTakashi Iwai <tiwai@suse.de>
Fri, 10 Dec 2010 07:40:31 +0000 (08:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:41 +0000 (13:58 -0800)
commit3c1d55408817cce6fb21d95b1cad3ba0af041c9f
tree82f3f3932e43e3050a2f200804401ab43700afcb
parent3582ab36ca47895d5fa41d341969bf0d3d12a879
mmc: Fix re-probing with PM_POST_RESTORE notification

commit 274476f8fe0b6ac9bac542cc39de12c3dd0f43f6 upstream.

In the error-path where PM notifies PM_POST_RESTORE, the rescan-blockage
should be cleared as well.  Otherwise it'll be never re-probed.

Also, as a bonus, this fixes a bug in S4 with user-mode suspend in the
current code, as it sends PM_POST_RESTORE instead of
PM_POST_HIBERNATION wrongly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mmc/core/core.c