mmc: dw_mmc: exynos: fix the finding clock sample value
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 22 Oct 2021 08:21:06 +0000 (17:21 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 26 Oct 2021 15:28:41 +0000 (17:28 +0200)
commit697542bceae51f7620af333b065dd09d213629fb
treed7c6a441aa9a5a963515b91c45fa1225bc149522
parent162079f2dccd02cb4b6654defd32ca387dd6d4d4
mmc: dw_mmc: exynos: fix the finding clock sample value

Even though there are candiates value if can't find best value, it's
returned -EIO. It's not proper behavior.
If there is not best value, use a first candiate value to work eMMC.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Cc: stable@vger.kernel.org
Fixes: c537a1c5ff63 ("mmc: dw_mmc: exynos: add variable delay tuning sequence")
Link: https://lore.kernel.org/r/20211022082106.1557-1-jh80.chung@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-exynos.c