Files
linux/drivers/clk
Suraj Gupta 820ce0c8e9 clk: Add devm_clk_bulk_get_optional_enable() helper
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 <suraj.gupta2@amd.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Link: https://patch.msgid.link/20260116192725.972966-2-suraj.gupta2@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-01-21 18:57:07 -08:00
..
2025-07-26 23:49:18 -07:00
2025-07-26 23:49:18 -07:00
2025-11-20 18:53:32 -08:00
2025-07-26 23:49:18 -07:00
2025-07-26 23:49:18 -07:00
2025-07-26 23:49:18 -07:00
2025-07-26 23:49:18 -07:00
2025-07-26 23:49:18 -07:00
2025-07-26 23:49:18 -07:00
2024-10-17 12:02:42 -07:00
2025-11-30 12:06:21 -08:00