]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:35 +0000 (08:22 -0700)
commit471963efff64303be0d80ac6a47a70ef55b8e7b6
tree975702fdd9a97941af19e8ce06a15700c0180c8a
parent8f475b5ca690666cf4f4e465eb4e90dda08567e6
mmc: sdhci: fix incorrect command used in tuning

commit 473b095a72a95ba719905b1f2e82cd18d099a427 upstream.

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>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci.c