Skip to content

Commit 67ce905

Browse files
committed
mdomain: Merge branch fixes into next
Merge the pmdomain fixes for v6.10-rc[n] into the next branch, to allow them to get tested together with the new changes that are targeted for v6.11. Signed-off-by: Ulf Hansson <[email protected]>
2 parents 3324a81 + ddab91f commit 67ce905

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/pmdomain/qcom/rpmhpd.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* @addr: Resource address as looped up using resource name from
4141
* cmd-db
4242
* @state_synced: Indicator that sync_state has been invoked for the rpmhpd resource
43+
* @skip_retention_level: Indicate that retention level should not be used for the power domain
4344
*/
4445
struct rpmhpd {
4546
struct device *dev;
@@ -56,6 +57,7 @@ struct rpmhpd {
5657
const char *res_name;
5758
u32 addr;
5859
bool state_synced;
60+
bool skip_retention_level;
5961
};
6062

6163
struct rpmhpd_desc {
@@ -173,13 +175,15 @@ static struct rpmhpd mxc = {
173175
.pd = { .name = "mxc", },
174176
.peer = &mxc_ao,
175177
.res_name = "mxc.lvl",
178+
.skip_retention_level = true,
176179
};
177180

178181
static struct rpmhpd mxc_ao = {
179182
.pd = { .name = "mxc_ao", },
180183
.active_only = true,
181184
.peer = &mxc,
182185
.res_name = "mxc.lvl",
186+
.skip_retention_level = true,
183187
};
184188

185189
static struct rpmhpd nsp = {
@@ -819,6 +823,9 @@ static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd)
819823
return -EINVAL;
820824

821825
for (i = 0; i < rpmhpd->level_count; i++) {
826+
if (rpmhpd->skip_retention_level && buf[i] == RPMH_REGULATOR_LEVEL_RETENTION)
827+
continue;
828+
822829
rpmhpd->level[i] = buf[i];
823830

824831
/* Remember the first corner with non-zero level */

0 commit comments

Comments
 (0)