Re: [PATCH v2 4/4] clk: qcom: lpass: Add support for LPASS clock controller for SC7180

From: Stephen Boyd
Date: Wed Jun 10 2020 - 21:06:51 EST


Quoting Taniya Das (2020-06-10 10:11:49)
> On 5/27/2020 8:40 AM, Stephen Boyd wrote:
> > Quoting Taniya Das (2020-05-17 02:22:24)
> >> + if (ret)
> >> + return ret;
> >> +
> >> + lpass_core_cc_sc7180_regmap_config.name = "lpass_core_cc";
> >> + regmap = qcom_cc_map(pdev, &lpass_core_cc_sc7180_desc);
> >> + if (IS_ERR(regmap))
> >> + return PTR_ERR(regmap);
> >> +
> >> + /*
> >> + * Keep the CLK always-ON
> >
> > Why? Presumably to make sure we can access the lpass sysnoc path all the
> > time?
> >
>
> This is an always ON clock from HW, just making sure to keep it enabled.

I'm not following. Hardware says it must always be enabled? If it isn't
enabled is it even possible to write this register?

>
> >> + * LPASS_AUDIO_CORE_SYSNOC_SWAY_CORE_CLK
> >> + */
> >> + regmap_update_bits(regmap, 0x24000, BIT(0), BIT(0));
> >> +