From: Jakub Kicinski <kuba@kernel.org>
To: Suraj Gupta <suraj.gupta2@amd.com>
Cc: <mturquette@baylibre.com>, <sboyd@kernel.org>,
<radhey.shyam.pandey@amd.com>, <andrew+netdev@lunn.ch>,
<davem@davemloft.net>, <edumazet@google.com>, <pabeni@redhat.com>,
<michal.simek@amd.com>, <sean.anderson@linux.dev>,
<linux@armlinux.org.uk>, <linux-clk@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>, <bmasney@redhat.com>
Subject: Re: [PATCH V2 1/2] clk: Add devm_clk_bulk_get_optional_enable() helper
Date: Thu, 15 Jan 2026 20:11:58 -0800 [thread overview]
Message-ID: <20260115201158.3371bf40@kernel.org> (raw)
In-Reply-To: <20260113181002.200544-2-suraj.gupta2@amd.com>
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
next prev parent reply other threads:[~2026-01-16 4:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 18:10 [PATCH V2 0/2] Add devm_clk_bulk_get_optional_enable() helper and use in AXI Ethernet driver Suraj Gupta
2026-01-13 18:10 ` [PATCH V2 1/2] clk: Add devm_clk_bulk_get_optional_enable() helper Suraj Gupta
2026-01-16 4:11 ` Jakub Kicinski [this message]
2026-01-13 18:10 ` [PATCH V2 2/2] net: xilinx: axienet: Use devres for resource management in probe path Suraj Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260115201158.3371bf40@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=bmasney@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=michal.simek@amd.com \
--cc=mturquette@baylibre.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=radhey.shyam.pandey@amd.com \
--cc=sboyd@kernel.org \
--cc=sean.anderson@linux.dev \
--cc=suraj.gupta2@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.