Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: dra7: Fix suspend warning for vpe powerdomain

We currently are getting the following warning after a system suspend:

Powerdomain (vpe_pwrdm) didn't enter target state 0

Looks like this is because the STANDBYMODE bit for SMART_IDLE should
not be used. The TRM "Table 12-348. VPE_SYSCONFIG" says that the value
for SMART_IDLE is "0x2: Same behavior as bit-field value of 0x1". But
if the SMART_IDLE value is used, PM_VPE_PWRSTST LASTPOWERSTATEENTERED
bits always show value of 3.

Let's fix the issue by dropping SMART_IDLE for vpe. And let's also add
the missing the powerdomain for vpe.

Fixes: 1a2095160594 ("ARM: dts: dra7: Add ti-sysc node for VPE")
Cc: Benoit Parrot <bparrot@ti.com>
Reported-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

+2 -2
+2 -2
arch/arm/boot/dts/dra7-l4.dtsi
··· 4188 4188 reg = <0x1d0010 0x4>; 4189 4189 reg-names = "sysc"; 4190 4190 ti,sysc-midle = <SYSC_IDLE_FORCE>, 4191 - <SYSC_IDLE_NO>, 4192 - <SYSC_IDLE_SMART>; 4191 + <SYSC_IDLE_NO>; 4193 4192 ti,sysc-sidle = <SYSC_IDLE_FORCE>, 4194 4193 <SYSC_IDLE_NO>, 4195 4194 <SYSC_IDLE_SMART>; 4195 + power-domains = <&prm_vpe>; 4196 4196 clocks = <&vpe_clkctrl DRA7_VPE_VPE_CLKCTRL 0>; 4197 4197 clock-names = "fck"; 4198 4198 #address-cells = <1>;