Re: [PATCH v1 3/3] ASoC: codecs: lpass-wsa-macro: Guard optional NPL clock rate programming

From: Ajay Kumar Nandam

Date: Thu Apr 16 2026 - 08:13:20 EST




On 4/14/2026 2:17 PM, Konrad Dybcio wrote:
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

ACK, will drop in next series.

Thanks
Ajay Kumar Nandam


Konrad