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)
committerMatthew Pedro <mapedro@nvidia.com>
Wed, 28 May 2014 15:46:48 +0000 (08:46 -0700)
commitc682f8ce0abb3fccc8a86f478aeb1479938e91c6
tree4ed8842580f6d8b216b6708e098964f74736eaad
parent61a7d245ef0bd5d299de2219361799a824ecc18d
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.

Bug 1402031

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: Al Cooper <acooper@gmail.com>
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Change-Id: I61d3fdb96fce223649075b6c063a3dd227aef062
Reviewed-on: http://git-master/r/365451
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
drivers/mmc/host/sdhci.c