Re: [RESEND PATCH 2/2] soc: qcom: rpmhpd: Make power_on actually enable the domain

From: Stephen Boyd
Date: Wed Jul 07 2021 - 20:25:48 EST


Quoting Bjorn Andersson (2021-07-02 19:54:49)
> @@ -472,6 +478,10 @@ static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd)
> for (i = 0; i < rpmhpd->level_count; i++) {
> rpmhpd->level[i] = buf[i];

BTW, this looks like it should actually be an __le16 pointer and then we
should do le16_to_cpup() here. Hooray for void pointers.

>
> + /* Remember the first non-zero corner */
> + if (!rpmhpd->enable_corner)
> + rpmhpd->enable_corner = i;
> +