projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb8e456
)
mmc: core: Do not leave the block driver in a suspended state
author
Adrian Hunter
<adrian.hunter@intel.com>
Tue, 21 Nov 2017 13:42:29 +0000
(15:42 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 23 Nov 2017 13:09:21 +0000
(14:09 +0100)
The block driver must be resumed if the mmc bus fails to suspend the card.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: stable@vger.kernel.org # v3.19+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/bus.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/bus.c
b/drivers/mmc/core/bus.c
index
a4b49e2
..
7586ff2
100644
(file)
--- a/
drivers/mmc/core/bus.c
+++ b/
drivers/mmc/core/bus.c
@@
-157,6
+157,9
@@
static int mmc_bus_suspend(struct device *dev)
return ret;
ret = host->bus_ops->suspend(host);
+ if (ret)
+ pm_generic_resume(dev);
+
return ret;
}