OSDN Git Service

mmc: tmio: Fix tuning flow
authorMasaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
Tue, 24 Jul 2018 14:51:37 +0000 (16:51 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Aug 2018 10:02:03 +0000 (12:02 +0200)
commita8f399f624e1ae902828ad788f3601ff7b3e0eed
tree25195a285e2a8e72ad1119ddc309df88e93bff04
parent1389690be14601995f55417a129b89257c477997
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 <masaharu.hayakawa.ry@renesas.com>
[Niklas: update commit message]
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c