]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:46:12 +0000 (19:46 +0100)
commit88a6208bd7a4af910f459de514dcc6542a2ec376
tree81f8482078fb226106bf54aadd7b8060d42827bf
parentc5df2d752955cb26155e71bc40c5195db8ce2f2f
mmc: dw_mmc: exynos: fix the finding clock sample value

commit 697542bceae51f7620af333b065dd09d213629fb upstream.

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: 3f76e63a6959 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/dw_mmc-exynos.c