diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-11-21 08:42:29 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-11-23 08:09:21 -0500 |
commit | ebe7dd45cf49e3b49cacbaace17f9f878f21fbea (patch) | |
tree | 89ec5e88bae52817df4196da94237d65acebc7cc | |
parent | fb8e456e547ed2c699f64665bd8a3b9bde7b9728 (diff) |
mmc: core: Do not leave the block driver in a suspended state
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>
-rw-r--r-- | drivers/mmc/core/bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index a4b49e25fe96..7586ff2ad1f1 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c | |||
@@ -157,6 +157,9 @@ static int mmc_bus_suspend(struct device *dev) | |||
157 | return ret; | 157 | return ret; |
158 | 158 | ||
159 | ret = host->bus_ops->suspend(host); | 159 | ret = host->bus_ops->suspend(host); |
160 | if (ret) | ||
161 | pm_generic_resume(dev); | ||
162 | |||
160 | return ret; | 163 | return ret; |
161 | } | 164 | } |
162 | 165 | ||