]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sunxi: Keep default timing phase settings for new timing mode
authorChen-Yu Tsai <wens@csie.org>
Fri, 14 Jul 2017 06:42:55 +0000 (14:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Jul 2017 10:29:53 +0000 (12:29 +0200)
commit95b272d2c8bc8ffbc11f014308e32321fca49cbc
tree18ea136867c070263cec50fbbabbc07033ce6be4
parent9238ecfbaaeffcf7977c2776af9c57c0a4a878ed
mmc: sunxi: Keep default timing phase settings for new timing mode

The register for the "new timing mode" also has bit fields for setting
output and sample timing phases. According to comments in Allwinner's
BSP kernel, the default values are good enough.

Keep the default values already in the hardware when setting new timing
mode, instead of overwriting the whole register.

Fixes: 20ae69cb02ee ("mmc: sunxi: Enable the new timings for the A64 MMC
controllers")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c