]> 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)
commitf9f1811f10dc72499ec7e2accb229b5df4be6289
tree0c7f3b6da06047070f0e8e0b64c1fe5a7428e5c9
parente8197f00a5e5fe78a07bfa9f5d693e86a7249803
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