linux/Documentation/driver-api/driver-model
Suraj Gupta b698927acc clk: Add devm_clk_bulk_get_enable()
devm_clk_bulk_get_optional_enable() gets, prepares and enables a set of
clocks with device-managed cleanup, but treats every clock as optional:
a missing clock is silently returned as NULL instead of failing.

Consumers that need a fixed set of mandatory clocks enabled for the
lifetime of the device currently have to open-code devm_clk_bulk_get()
followed by clk_bulk_prepare_enable(), which loses the managed disable on
unbind, or fall back to per-clock devm_clk_get_enabled() calls.

Add devm_clk_bulk_get_enable() as the non-optional counterpart. The
underlying __devm_clk_bulk_get_enable() helper already supports the
required (optional = false) path, so only export a thin wrapper for it.

Signed-off-by: Suraj Gupta <suraj.gupta2@amd.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2026-07-28 11:25:30 -04:00
..
binding.rst docs: driver-model: document driver_override 2026-03-17 20:30:57 +01:00
bus.rst driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
design-patterns.rst docs: Update documentation to avoid mentioning of kernel.h 2025-12-22 14:59:18 -07:00
device.rst docs: driver-model: device: Add ATTRIBUTE_GROUPS() example 2021-03-08 17:06:56 -07:00
devres.rst clk: Add devm_clk_bulk_get_enable() 2026-07-28 11:25:30 -04:00
driver.rst docs: driver-model: remove a duplicated markup at driver.rst 2020-06-26 10:01:24 -06:00
index.rst Documentation: use a source-read extension for the index link boilerplate 2026-01-23 11:59:34 -07:00
overview.rst docs: driver-api: fix spelling of "buses". 2025-09-18 10:40:46 -06:00
platform.rst driver core: platform: set mod_name in driver registration 2026-06-08 23:28:24 +02:00
porting.rst