ARM: OMAP2/3: CM: fix cm_split_idlest functionality
authorTero Kristo <t-kristo@ti.com>
Mon, 30 Oct 2017 09:11:04 +0000 (11:11 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Oct 2017 16:14:55 +0000 (09:14 -0700)
commit6301d58477bc11116c78c9542871f27ae374278d
treee0067591f4296fa9943577750360073a6d41adfb
parent3c4d296e58a23687f2076d8ad531e6ae2b725846
ARM: OMAP2/3: CM: fix cm_split_idlest functionality

cm_split_idlest doesn't take the CM base offset into account right now,
causing it to read reserved registers which show idlestatus as active
always. This will cause the wait_module_ready functionality to be
effectively an expensive NOP, which will cause problems if the
module hasn't really activated during its execution. Fix by adding
the CM offset into the calculation so the wait_module_ready will
access correct register.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reported-by: Filip Matijevic <filip.matijevic.pz@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/cm_common.c
arch/arm/mach-omap2/prcm-common.h