]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit473b095a72a95ba719905b1f2e82cd18d099a427
tree0c7f3b6da06047070f0e8e0b64c1fe5a7428e5c9
parent55fc05b7414274f17795cd0e8a3b1546f3649d5e
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