]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: fix incorrect command used in tuning
authorAaron Lu <aaron.lu@amd.com>
Tue, 3 Jul 2012 09:27:49 +0000 (17:27 +0800)
committerChris Ball <cjb@laptop.org>
Sun, 22 Jul 2012 19:25:46 +0000 (15:25 -0400)
commitd0aca91cf286e874f8e3051c9b338387684f41db
tree0c7f3b6da06047070f0e8e0b64c1fe5a7428e5c9
parentfd6ccb2755114ae2e31d3cef5db35916337c5e8d
mmc: sdhci: fix incorrect command used in tuning

For SD hosts using retuning mode 1, when retuning timer expired, it will
need to do retuning in sdhci_request before processing the actual
request. But the retuning command is fixed: cmd19 for SD card and cmd21
for eMMC card, so we can't use the original request's command to do the
tuning.

And since the tuning command depends on the card type attached to the
host, we will need to know the card type to use the correct tuning
command.

Signed-off-by: Aaron Lu <aaron.lu@amd.com>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Cc: stable <stable@vger.kernel.org> [3.3+]
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c