]> git.baikalelectronics.ru Git - kernel.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)
committerChris Ball <cjb@laptop.org>
Tue, 21 Dec 2010 19:46:49 +0000 (11:46 -0800)
commitc6d6b651725eeb3c86343157ae2d03a9e49ee44e
tree9f5a38fec3e40135523d37eb1b49a1bf19728a5a
parentbc5e1518126978379645e439810c989ade0eaccf
mmc: Fix re-probing with PM_POST_RESTORE notification

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.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c