Explorar o código

clk: rmobile: Assure SD-IF clock are configured correctly

The SD driver calls clk_set_rate() before clk_enable(), yet clk_set_rate()
implementation in the clock driver does not set the SD-IF divider. Fix it.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Marek Vasut %!s(int64=7) %!d(string=hai) anos
pai
achega
fd5577ce26
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/clk/renesas/clk-rcar-gen3.c

+ 2 - 0
drivers/clk/renesas/clk-rcar-gen3.c

@@ -288,6 +288,8 @@ static ulong gen3_clk_get_rate(struct clk *clk)
 
 static ulong gen3_clk_set_rate(struct clk *clk, ulong rate)
 {
+	/* Force correct SD-IF divider configuration if applicable */
+	gen3_clk_setup_sdif_div(clk);
 	return gen3_clk_get_rate(clk);
 }