Re: [PATCH] rtc: zynqmp: Return optional clock lookup errors
Alexandre Belloni <[email protected]>
| Newsgroups | org.kernel.vger.linux-rtc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178715693834.130787.997883397079617124.b4-ty@b4> |
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