]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: sunxi: Only update timing mode bit when enabling new timing mode
authorChen-Yu Tsai <wens@csie.org>
Thu, 31 Aug 2017 13:57:48 +0000 (21:57 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 1 Sep 2017 14:19:47 +0000 (19:49 +0530)
commit8a647fc3ca2a93e2b6c965999ac2e0316191a755
tree1d88fa393639b8161eeddb1c3968798a436e3099
parentead3697d7ec491c055fe546b3a45bcfba45fa022
mmc: sunxi: Only update timing mode bit when enabling new timing mode

When enabling the new mmc timing mode, we inadvertently clear all the
remaining bits in the new timing mode register. The bits cleared
include a default phase delay on the output clock. The BSP kernel
states that the default values are supposed to be used. Clearing them
results in decreased performance or transfer errors on some boards.

Fixes: de9b1771c3b6 ("mmc: sunxi: Support new mode")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mmc/sunxi_mmc.c