Thread (31 messages) 31 messages, 5 authors, 2026-03-24

Re: [PATCH v5 05/17] spi: imx: Simplify clock handling with devm_clk_get_enabled()

From: Mark Brown <broonie@kernel.org>
Date: 2026-03-23 19:41:17
Also in: imx, linux-mediatek, linux-riscv, linux-rockchip, linux-spi, lkml, openbmc

On Thu, Mar 19, 2026 at 10:04:01AM +0800, Pei Xiao wrote:
Replace devm_clk_get() followed by clk_prepare_enable() with
devm_clk_get_enabled() for both "ipg" and "per" clocks. This reduces
boilerplate code and error handling, as the managed API automatically
disables the clocks when the device is removed or if probe fails.
This one also uses runtime PM.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help