mmc: sdhci-msm: Enable host capabilities pertains to R1b response
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Mon, 20 Apr 2020 06:20:23 +0000 (11:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2020 06:15:06 +0000 (08:15 +0200)
commit80e99f42608d0dba763c85e3d96bdee2e00f5c43
treee06df5065730610fb040a210af695e5900b03f5c
parentd8f7e15a65ddb8e6bba1fdebac3d86c2c2d89dc1
mmc: sdhci-msm: Enable host capabilities pertains to R1b response

commit 9d8cb58691f85cef687512262acb2c7109ee4868 upstream.

MSM sd host controller is capable of HW busy detection of device busy
signaling over DAT0 line. And it requires the R1B response for commands
that have this response associated with them.

So set the below two host capabilities for qcom SDHC.
 - MMC_CAP_WAIT_WHILE_BUSY
 - MMC_CAP_NEED_RSP_BUSY

Recent development of the mmc core in regards to this, revealed this as
being a potential bug, hence the stable tag.

Cc: <stable@vger.kernel.org> # v4.19+
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1587363626-20413-2-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-msm.c