OSDN Git Service

mmc: sdhci: Handle legacy commands sent in CQ error cases properly
authorSahitya Tummala <stummala@codeaurora.org>
Tue, 26 Apr 2016 11:01:03 +0000 (16:31 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 1 Dec 2016 05:44:25 +0000 (21:44 -0800)
commit53ed8685f688c039308107b089b58ae39d11aac8
tree212406f169a31db259a286b3623785438748a4ec
parent0380dc86d2a75a4ae7d4246a94a5d767b0b75de4
mmc: sdhci: Handle legacy commands sent in CQ error cases properly

There could be cases where CQE halt might fail and in which
case, CQE gets disabled as part of error handling.
In this case, !mmc_host_halt() will be true and the commands
sent in legacy mode are getting software request timeout errors
as they are getting handled as cmdq irq.
Hence, add !mmc_host_cq_disable() check as well in addition to
!mmc_host_halt() in sdhci_irq() before considering it as a
cmdq irq.

Change-Id: Ic529aae53fdecd6b9ecbb17ba13147964dce55dc
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
drivers/mmc/host/sdhci.c