mmc: sdhci-msm: Deactivate CQE during SDHC reset
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Fri, 6 Mar 2020 14:08:43 +0000 (19:38 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:39:52 +0000 (14:39 +0100)
commit5cf583f1fb9c5ca8862c8a1c688874dc85e594f5
tree3e223edfa04ec6950bcc1df84f88a37f2fc377b9
parent0ffa6cfbd94982e6c028a8924b06a96c1b91bed8
mmc: sdhci-msm: Deactivate CQE during SDHC reset

When SDHC gets reset (E.g. in runtime suspend path), CQE also gets
reset and goes to disable state. But s/w state still points it as CQE
is in enabled state. Since s/w and h/w states goes out of sync,
it results in s/w request timeout for subsequent CQE requests.

To synchronize CQE s/w and h/w state during SDHC reset,
explicitly deactivate CQE just before SDHC reset.

Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1583503724-13943-3-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c