On 12/31/25 3:29 AM, Barnabás Czémán wrote:
> From: Stephan Gerhold <[email protected]>
> 
> Add support for MDM9607 MSS it have different ACC settings
> and it needs mitigation for inrush current issue.
> 
> Signed-off-by: Stephan Gerhold <[email protected]>
> [Reword the commit, add has_ext_bhs_reg]
> Signed-off-by: Barnabás Czémán <[email protected]>
> ---

[...]

>                       val = readl(qproc->reg_base + mem_pwr_ctl);
> -                     for (; i >= 0; i--) {
> +                     for (; i >= reverse; i--) {
>                               val |= BIT(i);
>                               writel(val, qproc->reg_base + mem_pwr_ctl);
>                               /*
> @@ -833,6 +847,12 @@ static int q6v5proc_reset(struct q6v5 *qproc)
>                               val |= readl(qproc->reg_base + mem_pwr_ctl);
>                               udelay(1);
>                       }
> +                     for (i = 0; i < reverse; i++) {
> +                             val |= BIT(i);
> +                             writel(val, qproc->reg_base + mem_pwr_ctl);
> +                             val |= readl(qproc->reg_base + mem_pwr_ctl);

Downstream doesn't do val |= readl() in the inrush-current-mitigation
case

Konrad

Reply via email to