]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: Prevent 1.8V switch for SD hosts that don't support UHS modes.
authorAl Cooper <acooper@gmail.com>
Fri, 16 Mar 2012 19:54:17 +0000 (15:54 -0400)
committerChris Ball <cjb@laptop.org>
Fri, 6 Apr 2012 00:32:32 +0000 (20:32 -0400)
commit52dbd6e1a2a687e66181cf2b10b4d720f308f3fb
tree062ef9f10f7c55c7784dd3dc8ed059cab00ba7c8
parent9eef4d86f4fa447eb7e9d5b74b783706f24335ab
mmc: Prevent 1.8V switch for SD hosts that don't support UHS modes.

The driver should not try to switch to 1.8V when the SD 3.0 host
controller does not have any UHS capabilities bits set (SDR50, DDR50
or SDR104). See page 72 of "SD Specifications Part A2 SD Host
Controller Simplified Specification Version 3.00" under
"1.8V Signaling Enable". Instead of setting SDR12 and SDR25 in the host
capabilities data structure for all V3.0 host controllers, only set them
if SDR104, SDR50 or DDR50 is set in the host capabilities register. This
will prevent the switch to 1.8V later.

Signed-off-by: Al Cooper <acooper@gmail.com>
Acked-by: Arindam Nath <arindam.nath@amd.com>
Acked-by: Philip Rakity <prakity@marvell.com>
Acked-by: Girish K S <girish.shivananjappa@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c