Commit e709ed70 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

bus: ti-sysc: Fix missing reset delay handling



We have dts property for "ti,sysc-delay-us", and we're using it, but the
wait after OCP softreset only happens if devices are probed in legacy mode.

Let's add a delay after writing the OCP softreset when specified.

Fixes: e0db94fe ("bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits")
Cc: Keerthy <j-keerthy@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c6b16761
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1584,6 +1584,10 @@ static int sysc_reset(struct sysc *ddata)
	sysc_val |= sysc_mask;
	sysc_write(ddata, sysc_offset, sysc_val);

	if (ddata->cfg.srst_udelay)
		usleep_range(ddata->cfg.srst_udelay,
			     ddata->cfg.srst_udelay * 2);

	if (ddata->clk_enable_quirk)
		ddata->clk_enable_quirk(ddata);