]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/thermal/rockchip_thermal.c
Merge remote-tracking branch 'thermal-soc/next'
[karo-tx-linux.git] / drivers / thermal / rockchip_thermal.c
index 4d5b7d4b68a78c97a836c2d55996fb13f6096ffb..2b58870c3e25f5fad61ca7deda5c6596bfbe7cc8 100644 (file)
@@ -638,6 +638,8 @@ static int __maybe_unused rockchip_thermal_suspend(struct device *dev)
        clk_disable(thermal->pclk);
        clk_disable(thermal->clk);
 
+       pinctrl_pm_select_sleep_state(dev);
+
        return 0;
 }
 
@@ -674,6 +676,8 @@ static int __maybe_unused rockchip_thermal_resume(struct device *dev)
        for (i = 0; i < ARRAY_SIZE(thermal->sensors); i++)
                rockchip_thermal_toggle_sensor(&thermal->sensors[i], true);
 
+       pinctrl_pm_select_default_state(dev);
+
        return 0;
 }