]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Let a vendor driver supply and update ADMA descriptor size
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Mon, 20 Jan 2020 14:38:38 +0000 (20:08 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jan 2020 11:11:48 +0000 (12:11 +0100)
commit79506ae0e6031cb9a2554079079f508f5f0410b7
tree1008c520c3117ef2b4d32375425d086bbb177239
parent34edf1b43023b5e307df6d8b2fff6de2d2d043e0
mmc: sdhci: Let a vendor driver supply and update ADMA descriptor size

Let a vendor driver supply the maximum descriptor size that it
can operate on. ADMA descriptor table would be allocated using this
supplied size.
If any SD Host controller is of version prior to v4.10 spec
but supports 16byte descriptor, this change allows them to supply
correct descriptor size for ADMA table allocation.

Also let a vendor driver update the descriptor size by overriding
sdhc_host->desc_size if it has to operates on a different descriptor
sizes in different conditions.

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