Skip to content

Commit

Permalink
mmc: core: Do not leave the block driver in a suspended state
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ahunter6 authored and storulf committed Nov 23, 2017
1 parent fb8e456 commit ebe7dd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/core/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ebe7dd4

Please sign in to comment.