Revision 72741084d903e65e121c27bd29494d941729d4a1 authored by Ulf Hansson on 27 August 2019, 08:10:43 UTC, committed by Ulf Hansson on 30 August 2019, 07:17:53 UTC
The OCR register defines the supported range of VDD voltages for SD cards.
However, it has turned out that some SD cards reports an invalid voltage
range, for example having bit7 set.

When a host supports MMC_CAP2_FULL_PWR_CYCLE and some of the voltages from
the invalid VDD range, this triggers the core to run a power cycle of the
card to try to initialize it at the lowest common supported voltage.
Obviously this fails, since the card can't support it.

Let's fix this problem, by clearing invalid bits from the read OCR register
for SD cards, before proceeding with the VDD voltage negotiation.

Cc: stable@vger.kernel.org
Reported-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Philip Langdale <philipl@overt.org>
Tested-by: Philip Langdale <philipl@overt.org>
Tested-by: Manuel Presnitz <mail@mpy.de>
1 parent 7871aa6
History
File Mode Size
Kconfig -rw-r--r-- 4.1 KB
Makefile -rw-r--r-- 870 bytes
array.c -rw-r--r-- 21.1 KB
base.c -rw-r--r-- 88.3 KB
cmdline.c -rw-r--r-- 415 bytes
consoles.c -rw-r--r-- 1.9 KB
cpuinfo.c -rw-r--r-- 698 bytes
devices.c -rw-r--r-- 1.1 KB
fd.c -rw-r--r-- 7.7 KB
fd.h -rw-r--r-- 539 bytes
generic.c -rw-r--r-- 17.5 KB
inode.c -rw-r--r-- 11.8 KB
internal.h -rw-r--r-- 8.5 KB
interrupts.c -rw-r--r-- 841 bytes
kcore.c -rw-r--r-- 15.5 KB
kmsg.c -rw-r--r-- 1.5 KB
loadavg.c -rw-r--r-- 880 bytes
meminfo.c -rw-r--r-- 5.1 KB
namespaces.c -rw-r--r-- 4.1 KB
nommu.c -rw-r--r-- 2.7 KB
page.c -rw-r--r-- 7.0 KB
proc_net.c -rw-r--r-- 9.7 KB
proc_sysctl.c -rw-r--r-- 41.6 KB
proc_tty.c -rw-r--r-- 4.5 KB
root.c -rw-r--r-- 7.6 KB
self.c -rw-r--r-- 1.7 KB
softirqs.c -rw-r--r-- 741 bytes
stat.c -rw-r--r-- 6.0 KB
task_mmu.c -rw-r--r-- 45.5 KB
task_nommu.c -rw-r--r-- 6.6 KB
thread_self.c -rw-r--r-- 1.9 KB
uptime.c -rw-r--r-- 922 bytes
util.c -rw-r--r-- 383 bytes
version.c -rw-r--r-- 515 bytes
vmcore.c -rw-r--r-- 40.2 KB

back to top