diff options
author | Adrian Hunter <[email protected]> | 2017-11-21 15:42:29 +0200 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2017-11-23 14:09:21 +0100 |
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 <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Cc: [email protected] # v3.19+
Signed-off-by: Ulf Hansson <[email protected]>
-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) return ret; ret = host->bus_ops->suspend(host); + if (ret) + pm_generic_resume(dev); + return ret; } |