Re: [PATCH v2] gpio: omap: handle debounce clock preparation failure

From: Bartosz Golaszewski

Date: Thu Nov 19 2026 - 05:35:38 EST



On Mon, 09 Nov 2026 17:42:04 +0400, Jiawen Liu wrote:
> omap_gpio_probe() ignores the return value of clk_prepare() for the
> debounce clock. If preparation fails, the driver still treats debounce as
> available and may use or unprepare a clock that was not prepared.
>
> Use devm_clk_get_prepared() and disable debounce if the clock cannot be
> obtained or prepared. This keeps the existing behavior for clock lookup
> failures. Remove both manual clk_unprepare() calls because the managed
> clock is released on probe failure and device removal.
>
> [...]

I dropped the development history from the commit message. Next time please
don't send new revisions as replies to earlier threads.

[1/1] gpio: omap: handle debounce clock preparation failure
https://git.kernel.org/brgl/c/9df982f1f283d2f2a9aad764dff92e36ed764e16

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>