mmc: sunxi: Disable HS-DDR mode for H5 eMMC controller by default
authorChen-Yu Tsai <wens@csie.org>
Tue, 5 Feb 2019 15:42:23 +0000 (23:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 6 Feb 2019 15:02:37 +0000 (16:02 +0100)
commitd49d92ace4974510dd5845ff91860823cf30dc08
tree777b51849de7cc08e59a4d39e7ac55ea327bf65a
parent8834f5600cf3c8db365e18a3d5cac2c2780c81e5
mmc: sunxi: Disable HS-DDR mode for H5 eMMC controller by default

Some H5 boards seem to not have proper trace lengths for eMMC to be able
to use the default setting for the delay chains under HS-DDR mode. These
include the Bananapi M2+ H5 and NanoPi NEO Core2. However the Libre
Computer ALL-H3-CC-H5 works just fine.

For the H5 (at least for now), default to not enabling HS-DDR modes in
the driver, and expect the device tree to signal HS-DDR capability on
boards that work.

Reported-by: Chris Blake <chrisrblake93@gmail.com>
Fixes: 07bafc1e3536 ("mmc: sunxi: Use new timing mode for A64 eMMC controller")
Cc: <stable@vger.kernel.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c