mmc: sdhci: add sdma_boundary member to struct sdhci_host
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 3 Aug 2017 12:46:13 +0000 (14:46 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:54 +0000 (14:01 +0200)
commitc846a00f72bf21b4cece98ffd8f28e80d5d7fed1
tree71f1a5ee029c1a9806c6b52198cccd174ce99284
parent101540680976fc4f30739edd84a134352e3aeab8
mmc: sdhci: add sdma_boundary member to struct sdhci_host

This patch adds sdma_boundary member to struct sdhci_host to give more
flexibility to drivers to control the sdma boundary buffer value and
also to fix issue on some sdhci controllers which are broken when
HOST SDMA Buffer Boundary is programmed in Block Size Register (0x04)
when using ADMA. Qualcomm sdhci controller is one of such type, writing
to this bits is un-supported.

Default value of sdma_boundary is set to SDHCI_DEFAULT_BOUNDARY_ARG.

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.c
drivers/mmc/host/sdhci.h