linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc: sunxi: fix support for new timings mode only SoCs
@ 2017-08-04 21:35 Icenowy Zheng
  2017-08-04 21:35 ` [PATCH 2/2] mmc: sunxi: fix new timings mode on A64 EMMC (MMC2) controller Icenowy Zheng
  2017-08-06  2:01 ` [linux-sunxi] [PATCH 1/2] mmc: sunxi: fix support for new timings mode only SoCs Chen-Yu Tsai
  0 siblings, 2 replies; 6+ messages in thread
From: Icenowy Zheng @ 2017-08-04 21:35 UTC (permalink / raw)
  To: linux-arm-kernel

The A83T MMC support code introduces the timings mode switch, however
such a switch doesn't exist on new SoCs with only new timings mode.

Only execute the switch if the SoC really have the timings mode switch,
to fix the regression shown on new timings mode only SoCs (A64, H5,
etc).

Fixes: b0600daebf31 ("mmc: sunxi: Support controllers that can use both
old and new timings")

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
---
 drivers/mmc/host/sunxi-mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 3777517982dd..59aba93beffb 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -784,7 +784,7 @@ static int sunxi_mmc_clk_set_rate(struct sunxi_mmc_host *host,
 		clock <<= 1;
 	}
 
-	if (host->use_new_timings) {
+	if (host->use_new_timings && host->cfg->has_timings_switch) {
 		ret = sunxi_ccu_set_mmc_timing_mode(host->clk_mmc, true);
 		if (ret) {
 			dev_err(mmc_dev(mmc),
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-07  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-04 21:35 [PATCH 1/2] mmc: sunxi: fix support for new timings mode only SoCs Icenowy Zheng
2017-08-04 21:35 ` [PATCH 2/2] mmc: sunxi: fix new timings mode on A64 EMMC (MMC2) controller Icenowy Zheng
2017-08-06  2:39   ` [linux-sunxi] " Chen-Yu Tsai
2017-08-06  3:20     ` Icenowy Zheng
2017-08-07  6:59     ` icenowy at aosc.io
2017-08-06  2:01 ` [linux-sunxi] [PATCH 1/2] mmc: sunxi: fix support for new timings mode only SoCs Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).