bus: ti-sysc: Fix missing reset delay handling
Tony Lindgren
maintainerPATCH 1/1 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.
--- drivers/bus/ti-sysc.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/bus/ti-sysc.c +4 -0
@@ -1590,6 +1590,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);
Signature · 1 line
2.24.1
Quoted 4 lines · Tony Lindgren
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.
Hi Tony,
Boot tested on DRA72 & DRA76.
Tested for RTC+DDR mode and DS0 mode on AM437x. Tested for DS0 on am335x-evm & am335x-beagle-bone-black.
FWIW
- Keerthy
Quoted 13 lines
Fixes e0db94fe87da ("bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits")Cc Keerthy <[email protected]>Signed-off-by Tony Lindgren <[email protected]>--- drivers/bus/ti-sysc.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/bus/ti-sysc.c static int sysc_reset(struct sysc *ddata) · line 1599
Quoted 10 lines
drivers/bus/ti-sysc.c +4
-0@@ -1590,6 +1590,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);
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel