瀏覽代碼

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>
Adrian Hunter 7 年之前
父節點
當前提交
ebe7dd45cf
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/mmc/core/bus.c

+ 3 - 0
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;
 }