* [PATCH] bus: ti-sysc: Fix missing reset delay handling
@ 2019-12-11 18:59 Tony Lindgren
2019-12-13 6:11 ` Keerthy
0 siblings, 1 reply; 2+ messages in thread
From: Tony Lindgren @ 2019-12-11 18:59 UTC (permalink / raw)
To: linux-omap
Cc: Andrew F . Davis, Dave Gerlach, Faiz Abbas, Greg Kroah-Hartman,
Keerthy, Nishanth Menon, Peter Ujfalusi, Roger Quadros,
Suman Anna, Tero Kristo, linux-kernel, linux-arm-kernel
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: e0db94fe87da ("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>
---
drivers/bus/ti-sysc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -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);
--
2.24.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bus: ti-sysc: Fix missing reset delay handling
2019-12-11 18:59 [PATCH] bus: ti-sysc: Fix missing reset delay handling Tony Lindgren
@ 2019-12-13 6:11 ` Keerthy
0 siblings, 0 replies; 2+ messages in thread
From: Keerthy @ 2019-12-13 6:11 UTC (permalink / raw)
To: Tony Lindgren, linux-omap
Cc: Andrew F . Davis, Dave Gerlach, Faiz Abbas, Greg Kroah-Hartman,
Nishanth Menon, Peter Ujfalusi, Roger Quadros, Suman Anna,
Tero Kristo, linux-kernel, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]
On 12/12/19 12:29 am, Tony Lindgren wrote:
> 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
Tested-by: Keerthy <j-keerthy@ti.com>
- Keerthy
>
> Fixes: e0db94fe87da ("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>
> ---
> drivers/bus/ti-sysc.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
> --- a/drivers/bus/ti-sysc.c
> +++ b/drivers/bus/ti-sysc.c
> @@ -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);
>
>
[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 9065 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-13 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 18:59 [PATCH] bus: ti-sysc: Fix missing reset delay handling Tony Lindgren
2019-12-13 6:11 ` Keerthy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®