]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Simplify and fix for SD switch processing
authorAaron Lu <aaron.lu@amd.com>
Tue, 3 Jul 2012 06:16:11 +0000 (14:16 +0800)
committerChris Ball <cjb@laptop.org>
Sun, 22 Jul 2012 19:25:47 +0000 (15:25 -0400)
commit3aefbc09982cf9e939431761a9d7e264898bbcca
treec5e9f493c51f00e3ce6de5cdd5bd4081b8cb2a7f
parent79c4aef4e0811478170260573512613de4f1d12f
mmc: core: Simplify and fix for SD switch processing

In mmc_read_switch, just do a one time mode 0 switch command to get the
support bits information, no need to do multiple times as the support
bits do not change with different arguments.

And no need to check current limit support bits, as these bits are
fixed according to the signal voltage. If the signal voltage is 1.8V,
the support bits would be 0xf and if the signal voltage is 3.3V, the
support bits would be 0x01. We will check host's ability to set the
current limit.

Signed-off-by: Aaron Lu <aaron.lu@amd.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd.c