mmc: sdhci: Tuning should not change max_blk_count
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 5 Dec 2014 17:25:28 +0000 (19:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Jan 2015 09:14:55 +0000 (10:14 +0100)
commitac00531d9f4be487366573e2bb943e68e9e523ab
tree6f618ab9b5033a7b41a3a14440087369eb7bd536
parenteaa27f34e91a14cdceed26ed6c6793ec1d186115
mmc: sdhci: Tuning should not change max_blk_count

Re-tuning requires that the maximum data length
is limited to 4MiB. The code currently changes
max_blk_count in an attempt to achieve that.
This is wrong because max_blk_count is a different
limit, but it is also un-necessary because
max_req_size is 512KiB anyway. Consequently, the
changes to max_blk_count are removed and the
comment for max_req_size adjusted accordingly.
The comment is also tweaked to show that the 512KiB
limit is a SDMA limit not an ADMA limit.

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