FROMLIST: soc: rockchip: avoid infinite loop for power domain

In some cases, we have met the infinite loop in
rockchip_pmu_set_idle_request() or rockchip_do_pmu_set_power_domain().

As the reported, the boot hangs right after this
[1.629163] bootconsole [uart8250] disabled
[1.639286] [drm:drm_core_init] Initialized drm 1.1.0 20060810
[1.645926] [drm:drm_get_platform_dev] Initialized vgem 1.0.0 20120112..
[1.654558] iommu: Adding device ff8f0000.vop to group 0
[1.660569] iommu: Adding device ff900000.vop to group 1

This patch adds the error message and timeout to avoid infinite loop if
it fails to get the ack.

TEST=Build and boot on kevin, See the message and return error if failed.

Change-Id: Ia1e2edbdb48de3ec776f1304a941136d3e7a1854
Signed-off-by: Caesar Wang <>
(am from
Reviewed-by: Tomasz Figa <>
(cherry picked from commit ddeca9bd283cd4f10c2706fa39d9eff7e064712f)
Reviewed-by: Douglas Anderson <>
Tested-by: Douglas Anderson <>
1 file changed