mmc: sdhci-of-esdhc: Fix timeout checks
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 10 Dec 2018 08:56:24 +0000 (10:56 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitea6d027312111c6d96309ad1a684b33cb37e6764
tree74a9dbc190374754052add3e30b3416f5efbf7ff
parent566b60209427ed6b442b0b0cb3dba04187fba330
mmc: sdhci-of-esdhc: Fix timeout checks

Always check the wait condition before returning timeout.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c