mmc: sdhci-msm: set sdma_boundary to zero
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 3 Aug 2017 12:46:14 +0000 (14:46 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:54 +0000 (14:01 +0200)
Programming legacy HOST SDMA Buffer Boundary bits in Block Size Register
(0x04) is not supported in Qualcomm sdhci controllers. Writing to this
would cause the controller not to transfer last block in case block size
is 4 bytes or less.

This issue was noticed while testing sdio wlan card on Qcom DB410c board.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c

index f35db061ee4ceda4077549b51be3d1d774dc4da9..fc73e56eb1e2ef4f22f29142899c45b809f2dad7 100644 (file)
@@ -1133,6 +1133,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
        if (IS_ERR(host))
                return PTR_ERR(host);
 
+       host->sdma_boundary = 0;
        pltfm_host = sdhci_priv(host);
        msm_host = sdhci_pltfm_priv(pltfm_host);
        msm_host->mmc = host->mmc;