Re: [PATCH] rtc: zynqmp: Return optional clock lookup errors
From: Alexandre Belloni
Date: Wed Aug 19 2026 - 12:33:10 EST
On Wed, 24 Jun 2026 13:55:24 +0800, Pengpeng Hou wrote:
> devm_clk_get_optional() returns NULL when the optional clock is absent,
> but returns an ERR_PTR when the clock provider lookup fails. Probe
> currently keeps the ERR_PTR and then passes it to clk_get_rate().
>
> Return the lookup error instead. A truly absent optional clock still
> reaches the existing calibration fallback through clk_get_rate(NULL).
>
> [...]
Applied, thanks!
[1/1] rtc: zynqmp: Return optional clock lookup errors
https://git.kernel.org/abelloni/c/5904c4109554
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com