mmc: core: ignore cmdq halt failure when no change is needed

During system suspend CQE halted by queue suspend even before mmc host
suspend. When mmc host suspend calls halt helper, CQE is already halted.

This change ignores error value of halt helper.

Change-Id: I2d1456333f1d04f0e7a77485443b80a0ccaa3b4e
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
This commit is contained in:
Konstantin Dorfman 2015-06-24 19:01:11 +03:00
parent d98189c76f
commit 026fb6d834
1 changed files with 5 additions and 2 deletions

View File

@ -997,8 +997,11 @@ int mmc_cmdq_halt(struct mmc_host *host, bool halt)
int err = 0;
if ((halt && mmc_host_halt(host)) ||
(!halt && !mmc_host_halt(host)))
return -EINVAL;
(!halt && !mmc_host_halt(host))) {
pr_debug("%s: %s: CQE is already %s\n", mmc_hostname(host),
__func__, halt ? "halted" : "un-halted");
return 0;
}
mmc_host_clk_hold(host);
if (host->cmdq_ops->halt) {