]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: meson-gx: fix rx phase reset
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 2 Oct 2017 12:27:42 +0000 (14:27 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 Oct 2017 08:42:03 +0000 (10:42 +0200)
commit5124e2c17c0589fb3cd77c134f822fc360c4897b
treea634c1b10861d4f8f1dc9d3344f41d610fd0ee6c
parentcce4c6fdfbbda597fa750517ead36789322c6acc
mmc: meson-gx: fix rx phase reset

Resetting the phase when POWER_ON is set the set_ios() call means that the
phase is reset almost every time the set_ios() is called, while the
expected behavior was to reset the phase on a power cycle.

This had gone unnoticed until now because in all mode (except hs400) the
tuning is done after the last to set_ios(). In such case, the tuning
result is used anyway.  In HS400, there are a few calls to set_ios() after
the tuning is done, overwriting the tuning result.

Resetting the phase on POWER_UP instead of POWER_ON solve the problem.

Fixes: 2c6659c1fa47 ("mmc: meson-gx: rework tuning function")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c