OSDN Git Service

mmc: sdhci-msm: Fix HW issue with power IRQ handling during reset
authorSahitya Tummala <stummala@codeaurora.org>
Wed, 27 Sep 2017 05:34:41 +0000 (11:04 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:45:58 +0000 (11:45 +0100)
commit401b2d06c4ed69f5d491f9297651bed3fbbfe69b
tree7c9fdf2c04ba8eb8f2585c53782f812c0bea528e
parentc7ccee224d2d551f712752c4a16947f6529d6506
mmc: sdhci-msm: Fix HW issue with power IRQ handling during reset

There is a rare scenario in HW, where the first clear pulse could
be lost when the actual reset and clear/read of status register
are happening at the same time. Fix this by retrying upto 10 times
to ensure the status register gets cleared. Otherwise, this will
lead to a spurious power IRQ which results in system instability.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c