]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85fd68421bc01648ac6f74c3fb2147f8e7b422e5
tree66d4bd77e16325ce64bc247c3dee107b5144af36
parent68f03969202c68d228d902b80620dc1d3e32cb84
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