Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216899
b: refs/heads/master
c: ff173d4
h: refs/heads/master
i:
  216897: a6e63cb
  216895: 49c998f
v: v3
  • Loading branch information
Rajendra Nayak authored and Paul Walmsley committed Sep 24, 2010
1 parent 1a6e750 commit 6dad9c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: f39f4898ac72fec92066f15aef0e7485013482ea
refs/heads/master: ff173d45525701d65d394cb8687e71845bfb34dc
9 changes: 5 additions & 4 deletions trunk/arch/arm/mach-omap2/cm4xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
* using separate functional clock
* 0x3 disabled: Module is disabled and cannot be accessed
*
* TODO: Need to handle module accessible in idle state
*/
int omap4_cm_wait_module_ready(void __iomem *clkctrl_reg)
{
Expand All @@ -52,9 +51,11 @@ int omap4_cm_wait_module_ready(void __iomem *clkctrl_reg)
if (!clkctrl_reg)
return 0;

omap_test_timeout(((__raw_readl(clkctrl_reg) &
OMAP4430_IDLEST_MASK) == 0),
MAX_MODULE_READY_TIME, i);
omap_test_timeout((
((__raw_readl(clkctrl_reg) & OMAP4430_IDLEST_MASK) == 0) ||
(((__raw_readl(clkctrl_reg) & OMAP4430_IDLEST_MASK) >>
OMAP4430_IDLEST_SHIFT) == 0x2)),
MAX_MODULE_READY_TIME, i);

return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY;
}
Expand Down

0 comments on commit 6dad9c7

Please sign in to comment.