[PATCH] rtc: zynqmp: Return optional clock lookup errors

Alexandre Belloni alexandre.belloni at bootlin.com
Wed Aug 19 09:30:59 PDT 2026


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



More information about the linux-arm-kernel mailing list