Re: [PATCH v3 03/10] clk: qcom: Add a driver for PDM GP_MN fractional clock divider

From: Konrad Dybcio

Date: Wed Dec 02 2026 - 06:39:35 EST


On 11/24/26 6:54 AM, Abel Vesa wrote:
> On 26-11-24 01:21:34, Taniya Das wrote:
>> The PDM (Pulse Density Modulation) hardware block on Qualcomm SoCs
>> contains a GP_MN clock divider that produces a fractional output
>> frequency from a fixed input clock (typically TCXO4):

[...]

>> + /* Set default rate if not already configured */
>> + if (!clk_get_rate(clk)) {
>> + ret = clk_set_rate(clk, 19200000);
>> + if (ret)
>> + dev_warn(dev, "failed to set default pdm clock rate\n");
>> + }
>
> Why are we setting the parent clock rate from here ?
>
> And then we just don't do anything with it.
>
> I think this bypasses CCF clock tree and that's not good.

Right, isn't this just CLK_SET_RATE_PARENT?

Konrad