Thread (5 messages) 5 messages, 3 authors, 2026-01-08

Re: [RFC PATCH 1/2] clk: Add devm_clk_bulk_get_optional_enable() helper

From: Brian Masney <bmasney@redhat.com>
Date: 2026-01-08 23:53:34
Also in: linux-arm-kernel, linux-clk, lkml

On Fri, Jan 02, 2026 at 02:24:53PM +0530, Suraj Gupta wrote:
Add a new managed clock framework helper function that combines getting
optional bulk clocks and enabling them in a single operation.

The devm_clk_bulk_get_optional_enable() function simplifies the common
pattern where drivers need to get optional bulk clocks, prepare and enable
them, and have them automatically disabled/unprepared and freed when the
device is unbound.

This new API follows the established pattern of
devm_clk_bulk_get_all_enabled() and reduces boilerplate code in drivers
that manage multiple optional clocks.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Suraj Gupta <redacted>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help