mmc: sd: Fix sd current limit setting
authorAaron Lu <aaron.lu@amd.com>
Wed, 4 Jul 2012 05:31:48 +0000 (13:31 +0800)
committerChris Ball <cjb@laptop.org>
Sun, 22 Jul 2012 19:25:52 +0000 (15:25 -0400)
commit55c4665ea0a42fd6427826bfce96eb4b0389262a
tree66d4bd77e16325ce64bc247c3dee107b5144af36
parent94c18149451e9ae91a669bc33370273327d7da81
mmc: sd: Fix sd current limit setting

Host has different current capabilities at different voltages, we need
to record these settings seperately. The defined voltages are 1.8/3.0/3.3.
For other voltages, we do not touch current limit setting.

Before we set the current limit for the sd card, find out the host's
operating voltage first and then find out the current capabilities of
the host at that voltage to set the current limit.

Signed-off-by: Aaron Lu <aaron.lu@amd.com>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd.c
drivers/mmc/host/sdhci.c
include/linux/mmc/host.h