Skip to content

Commit e709ed7

Browse files
committed
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: e0db94f ("bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits") Cc: Keerthy <j-keerthy@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent c6b1676 commit e709ed7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/bus/ti-sysc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,10 @@ static int sysc_reset(struct sysc *ddata)
15841584
sysc_val |= sysc_mask;
15851585
sysc_write(ddata, sysc_offset, sysc_val);
15861586

1587+
if (ddata->cfg.srst_udelay)
1588+
usleep_range(ddata->cfg.srst_udelay,
1589+
ddata->cfg.srst_udelay * 2);
1590+
15871591
if (ddata->clk_enable_quirk)
15881592
ddata->clk_enable_quirk(ddata);
15891593

0 commit comments

Comments
 (0)