Commit f9a2f9c3 authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Paul Walmsley
Browse files

ARM: OMAP2+: hwmod: Make omap_hwmod_softreset wait for reset status

omap_hwmod_softreset() does not seem to wait for reset status
after doing a softreset. Make it use _ocp_softreset() instead
which does this correctly.

Signed-off-by: default avatarRajendra Nayak <>
Cc: Benoit Cousson <>
Cc: Paul Walmsley <>
Cc: Anand Gadiyar <>
Cc: Shubhrajyoti D <>
Signed-off-by: default avatarPaul Walmsley <>
parent 2800852a
......@@ -1901,20 +1901,10 @@ void omap_hwmod_write(u32 v, struct omap_hwmod *oh, u16 reg_offs)
int omap_hwmod_softreset(struct omap_hwmod *oh)
u32 v;
int ret;
if (!oh || !(oh->_sysc_cache))
if (!oh)
return -EINVAL;
v = oh->_sysc_cache;
ret = _set_softreset(oh, &v);
if (ret)
goto error;
_write_sysconfig(v, oh);
return ret;
return _ocp_softreset(oh);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment