]> 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)
commit53bd0cdc8e28248af2de52d04e53962b07562379
tree66d4bd77e16325ce64bc247c3dee107b5144af36
parent3d2e5191b6b95d8e11a44caa8e6f43d7d5db0938
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