Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298732
b: refs/heads/master
c: 2800852
h: refs/heads/master
v: v3
  • Loading branch information
Rajendra Nayak authored and Paul Walmsley committed Apr 5, 2012
1 parent 45b7c15 commit 0ddac58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a1cc1445a51e3a81c10d294586756cdb9174469
refs/heads/master: 2800852a079504f35f88e44faf5c9c96318c0cca
18 changes: 6 additions & 12 deletions trunk/arch/arm/mach-omap2/omap_hwmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,11 @@ static int _reset(struct omap_hwmod *oh)

ret = (oh->class->reset) ? oh->class->reset(oh) : _ocp_softreset(oh);

if (oh->class->sysc) {
_update_sysc_cache(oh);
_enable_sysc(oh);
}

return ret;
}

Expand Down Expand Up @@ -1786,20 +1791,9 @@ static int _setup(struct omap_hwmod *oh, void *data)
return 0;
}

if (!(oh->flags & HWMOD_INIT_NO_RESET)) {
if (!(oh->flags & HWMOD_INIT_NO_RESET))
_reset(oh);

/*
* OCP_SYSCONFIG bits need to be reprogrammed after a softreset.
* The _enable() function should be split to
* avoid the rewrite of the OCP_SYSCONFIG register.
*/
if (oh->class->sysc) {
_update_sysc_cache(oh);
_enable_sysc(oh);
}
}

postsetup_state = oh->_postsetup_state;
if (postsetup_state == _HWMOD_STATE_UNKNOWN)
postsetup_state = _HWMOD_STATE_ENABLED;
Expand Down

0 comments on commit 0ddac58

Please sign in to comment.