]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
soc: qcom: rpmhpd: Set 'active_only' for active only power domains
authorDouglas Anderson <dianders@chromium.org>
Thu, 14 Feb 2019 17:36:33 +0000 (09:36 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 7 Jan 2020 23:19:30 +0000 (15:19 -0800)
The 'active_only' attribute was accidentally never set to true for any
power domains meaning that all the code handling this attribute was
dead.

NOTE that the RPM power domain code (as opposed to the RPMh one) gets
this right.

Acked-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Fixes: 279b7e8a62cc ("soc: qcom: rpmhpd: Add RPMh power domain driver")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20190214173633.211000-1-dianders@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/rpmhpd.c

index b600cfbc74e62c8bde61b56d28e92fbfcd48e5a6..4d264d0672c4fb627f722bc2497283344f299299 100644 (file)
@@ -93,6 +93,7 @@ static struct rpmhpd sdm845_mx = {
 
 static struct rpmhpd sdm845_mx_ao = {
        .pd = { .name = "mx_ao", },
+       .active_only = true,
        .peer = &sdm845_mx,
        .res_name = "mx.lvl",
 };
@@ -107,6 +108,7 @@ static struct rpmhpd sdm845_cx = {
 
 static struct rpmhpd sdm845_cx_ao = {
        .pd = { .name = "cx_ao", },
+       .active_only = true,
        .peer = &sdm845_cx,
        .parent = &sdm845_mx_ao.pd,
        .res_name = "cx.lvl",