diff options
| author | Masaharu Hayakawa <[email protected]> | 2018-07-24 14:51:37 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2018-08-01 10:02:03 +0000 |
| commit | a8f399f624e1ae902828ad788f3601ff7b3e0eed (patch) | |
| tree | 25195a285e2a8e72ad1119ddc309df88e93bff04 | |
| parent | mmc: sunxi: remove output of virtual base address (diff) | |
| download | kernel-a8f399f624e1ae902828ad788f3601ff7b3e0eed.tar.gz kernel-a8f399f624e1ae902828ad788f3601ff7b3e0eed.zip | |
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]>
| -rw-r--r-- | drivers/mmc/host/tmio_mmc_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c index 416f9e078fda..72ac806e0c76 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -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); |
