Skip to content

Commit 183e207

Browse files
Tero Kristotmlind
authored andcommitted
ARM: AM33xx: fix module_wait_ready without clkctrl register
If the module has no clkctrl register defined, module_wait_ready should not try to access this. This can potentially cause an illegal register access, and result in bad idle reporting also. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 1d9a542 commit 183e207

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/mach-omap2/cm33xx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ static int am33xx_cm_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs,
220220
{
221221
int i = 0;
222222

223+
if (!clkctrl_offs)
224+
return 0;
225+
223226
omap_test_timeout(_is_module_ready(inst, clkctrl_offs),
224227
MAX_MODULE_READY_TIME, i);
225228

0 commit comments

Comments
 (0)