mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mmc: tmio: Fix tuning flow
If the return value of mmc_send_tuning() is error other than -EILSEQ, the tuning fails and process goes out of for_loop. The correct processing is to judge their TAP as not good (NG) and continue. Signed-off-by: Masaharu Hayakawa <[email protected]> [Niklas: update commit message] Signed-off-by: Niklas Söderlund <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Tested-by: Wolfram Sang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
1389690be1
commit
a8f399f624
1 changed files with 0 additions and 2 deletions
|
|
@ -818,8 +818,6 @@ static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
|
|||
host->prepare_tuning(host, i % host->tap_num);
|
||||
|
||||
ret = mmc_send_tuning(mmc, opcode, NULL);
|
||||
if (ret && ret != -EILSEQ)
|
||||
goto out;
|
||||
if (ret == 0)
|
||||
set_bit(i, host->taps);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue