Re: [PATCH v1 3/3] ASoC: codecs: lpass-wsa-macro: Guard optional NPL clock rate programming
From: Konrad Dybcio
Date: Tue Apr 14 2026 - 04:47:56 EST
On 4/13/26 2:18 PM, Ajay Kumar Nandam wrote:
> The NPL clock is only present on some platforms. When it is absent,
> wsa->npl remains NULL, but the driver unconditionally programs its rate.
>
> Guard clk_set_rate() for the NPL clock so platforms without NPL do not
> attempt to access it.
>
> No functional change on platforms that provide the NPL clock.
>
> Signed-off-by: Ajay Kumar Nandam <ajay.nandam@xxxxxxxxxxxxxxxx>
> ---
If you dig into the definition of the function..
--- drivers/clk/clk.c ---
int clk_set_rate(struct clk *clk, unsigned long rate)
{
int ret;
if (!clk)
return 0;
So let's drop this patch
Konrad