OSDN Git Service

mmc: core: power cycle card when sd card switch voltage operation fails
authorRam Prakash Gupta <rampraka@codeaurora.org>
Thu, 26 Apr 2018 10:54:46 +0000 (16:24 +0530)
committerRam Prakash Gupta <rampraka@codeaurora.org>
Wed, 2 May 2018 09:44:25 +0000 (15:14 +0530)
commit7716fb9b8fe4b3b77e00d376711d35636aff4822
treef4a4c7d2d19ec905ac3f3e03a46c8f7272d38da3
parent502257f3e6a9fbc83bdf42d98aef495c8dcecf11
mmc: core: power cycle card when sd card switch voltage operation fails

As per the sd card spec, mmc need to power cycle sd card in case sd
card voltage switch operation fails. Currently we are directly going
for low speed mode without power cycle, which is in violation of sd
card spec. Now we will retry for 10 times in case timeout happens
while switching voltage and at last, in case, it did not succeed in
switching sd card voltage, mmc would go for low speed mode.

Change-Id: Icece08732b8d52104e0890dce81ad16844265edd
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
drivers/mmc/core/core.c