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 <>
[Niklas: update commit message]
Signed-off-by: Niklas Söderlund <>
Reviewed-by: Wolfram Sang <>
Tested-by: Wolfram Sang <>
Reviewed-by: Simon Horman <>
Signed-off-by: Ulf Hansson <>

(cherry picked from commit a8f399f624e1ae902828ad788f3601ff7b3e0eed)
Signed-off-by: Simon Horman <>
1 file changed