mmc: sdhci-omap: Fix timeout checks
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 10 Dec 2018 08:56:25 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:47:10 +0000 (19:47 +0100)
commit8ee43469ce6e7bd2f6107420837b815ae10a2329
tree1845513da2e0131950cdab58e91dcb5eb7e92eab
parent1b2b6ce63058b91c16deaf396ad4aec2df7e0bc1
mmc: sdhci-omap: Fix timeout checks

[ Upstream commit 9f0ea0bda1d06120b053bb0c283f54afec59293d ]

Always check the wait condition before returning timeout.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci-omap.c