mmc: sdhci: Fix incorrect ADMA2 descriptor table size
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Nov 2014 10:42:35 +0000 (12:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:48 +0000 (12:40 +0100)
commitc09df940ebe0167dcf13d52ea122c99b9bb8365a
tree4f980378e991c1cf72acd97f96f832f5d0d53047
parent76d5556428fbbdf411504895b516272cad27127d
mmc: sdhci: Fix incorrect ADMA2 descriptor table size

The ADMA2 descriptor table size was being calculated incorrectly
Fix it.

Note that it has been wrong for a long time and likely has not
caused any problems because of a combination of 1) not needing
alignment descriptors for block operations 2) more memory being
allocated than was requested 3) the use of
SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC which does not use an extra
descriptor for the end marker.

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