Thread (4 messages) 4 messages, 2 authors, 2026-01-16

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

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-01-16 04:12:00
Also in: linux-arm-kernel, linux-clk, lkml

On Tue, 13 Jan 2026 23:40:01 +0530 Suraj Gupta wrote:
+/**
+ * devm_clk_bulk_get_optional_enable - Get and enable optional bulk clocks (managed)
+ * @dev: device for clock "consumer"
+ * @num_clks: the number of clk_bulk_data
+ * @clks: pointer to the clk_bulk_data table of consumer
+ *
+ * Behaves the same as devm_clk_bulk_get_optional() but also prepares and enables
+ * the clocks in one operation with management. The clks will automatically be
+ * disabled, unprepared and freed when the device is unbound.
+ *
+ * Returns 0 if all clocks specified in clk_bulk_data table are obtained
+ * and enabled successfully, or for any clk there was no clk provider available.
+ * Otherwise returns valid IS_ERR() condition containing errno.
+ */
+int __must_check devm_clk_bulk_get_optional_enable(struct device *dev, int num_clks,
+						   struct clk_bulk_data *clks);
s/Returns 0/Return: /
the colon is required by kdoc
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help