From: Brian Masney <bmasney@redhat.com>
To: Jia Wang <wangjia@ultrarisc.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] clk: ultrarisc: add DP1000 clock driver
Date: Wed, 8 Jul 2026 10:30:48 -0400 [thread overview]
Message-ID: <ak5fGAp2NMPgW77M@redhat.com> (raw)
In-Reply-To: <178349718662.2043299.5991323028483371285.b4-reply@b4>
On Wed, Jul 08, 2026 at 03:53:06PM +0800, Jia Wang wrote:
> On 2026-07-07 15:54 -0400, Brian Masney wrote:
> > On Wed, Jun 17, 2026 at 02:02:55PM +0800, Jia Wang wrote:
> > > +static struct clk_hw *
> > > +ultrarisc_clk_hw_register_composite(struct device *dev, const char *name,
> > > + const char * const *parent_names,
> > > + int num_parents, struct clk_hw *mux_hw,
> > > + const struct clk_ops *mux_ops,
> > > + struct clk_hw *rate_hw,
> > > + const struct clk_ops *rate_ops,
> > > + struct clk_hw *gate_hw,
> > > + const struct clk_ops *gate_ops,
> > > + unsigned long flags)
> > > +{
> > > + struct clk_hw *hw;
> > > + int ret;
> > > +
> > > + hw = clk_hw_register_composite(dev, name, parent_names, num_parents,
> > > + mux_hw, mux_ops, rate_hw, rate_ops,
> > > + gate_hw, gate_ops, flags);
> > > + if (IS_ERR(hw))
> > > + return hw;
> > > +
> > > + ret = devm_add_action_or_reset(dev, ultrarisc_clk_unregister_composite,
> > > + hw);
> >
> > Use devm_clk_hw_register_composite_pdata()
> >
>
> I originally used clk_hw_register_composite() together with
> devm_add_action_or_reset() because devm_clk_hw_register_composite_pdata()
> is not currently exported, while this driver can be built as a module.
>
> If exporting it is acceptable, I can add a preparatory patch in this series
> to export it and then switch the driver to use that helper.
Yes, I think that exporting this makes sense.
Brian
next prev parent reply other threads:[~2026-07-08 14:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 6:02 [PATCH v2 0/2] clk: ultrarisc: add DP1000 clock support Jia Wang
2026-06-17 6:02 ` Jia Wang via B4 Relay
2026-06-17 6:02 ` [PATCH v2 1/2] dt-bindings: clock: ultrarisc: Add DP1000 Clock Controller Jia Wang
2026-06-17 6:02 ` Jia Wang via B4 Relay
2026-06-17 15:56 ` Conor Dooley
2026-07-07 19:44 ` Brian Masney
2026-06-17 6:02 ` [PATCH v2 2/2] clk: ultrarisc: add DP1000 clock driver Jia Wang
2026-06-17 6:02 ` Jia Wang via B4 Relay
2026-06-25 1:04 ` Jia Wang
2026-07-07 19:54 ` Brian Masney
2026-07-08 7:53 ` Jia Wang
2026-07-08 14:30 ` Brian Masney [this message]
2026-07-13 9:13 ` Jia Wang
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=ak5fGAp2NMPgW77M@redhat.com \
--to=bmasney@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=wangjia@ultrarisc.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.