From: Bjorn Helgaas <helgaas@kernel.org>
To: Jia Wang <wangjia@ultrarisc.com>
Cc: "Xincheng Zhang" <zhangxincheng@ultrarisc.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] PCI: ultrarisc: get and enable DP1000 PCIe clocks
Date: Thu, 9 Jul 2026 14:48:49 -0500 [thread overview]
Message-ID: <20260709194849.GA873312@bhelgaas> (raw)
In-Reply-To: <178297192123.1082377.12406016413212102294.b4-reply@b4>
On Thu, Jul 02, 2026 at 01:58:41PM +0800, Jia Wang wrote:
> On 2026-06-30 11:55 -0500, Bjorn Helgaas wrote:
> > On Mon, Jun 29, 2026 at 01:59:51PM +0800, Jia Wang via B4 Relay wrote:
> > > From: Jia Wang <wangjia@ultrarisc.com>
> > >
> > > Add the required core, dbi, and aux clocks for the DP1000 PCIe
> > > controller and enable them before initializing the DesignWare host.
> >
> > > +static int ultrarisc_pcie_init_clks(struct ultrarisc_pcie *ultra)
> > > +{
> > > + struct device *dev = ultra->pci.dev;
> > > + int ret;
> > > +
> > > + ultra->clks[0].id = "core";
> > > + ultra->clks[1].id = "dbi";
> > > + ultra->clks[2].id = "aux";
> > > +
> > > + ret = devm_clk_bulk_get(dev, ARRAY_SIZE(ultra->clks), ultra->clks);
> > > + if (ret)
> > > + return dev_err_probe(dev, ret, "Failed to get clocks\n");
> >
> > This would be the first use of devm_clk_bulk_get() in drivers/pci.
> > There are several users of devm_clk_bulk_get_all(), which looks pretty
> > similar. Unless there's a specific reason to use devm_clk_bulk_get(),
> > could this use devm_clk_bulk_get_all() instead?
>
> I used devm_clk_bulk_get() intentionally because I wanted the driver to
> enforce the fixed clock names required by the binding.
Seems like a plausible reason that might apply to other drivers as
well. Any opinions?
prev parent reply other threads:[~2026-07-09 19:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 5:59 [PATCH 0/2] PCI: ultrarisc: Add DP1000 PCIe clock support Jia Wang via B4 Relay
2026-06-29 5:59 ` [PATCH 1/2] dt-bindings: pci: ultrarisc: add required DP1000 PCIe clocks Jia Wang via B4 Relay
2026-06-29 8:07 ` sashiko-bot
2026-06-29 15:27 ` Conor Dooley
2026-07-02 5:34 ` Jia Wang
2026-06-29 5:59 ` [PATCH 2/2] PCI: ultrarisc: get and enable " Jia Wang via B4 Relay
2026-06-29 6:09 ` sashiko-bot
2026-07-02 5:46 ` Jia Wang
2026-06-30 16:55 ` Bjorn Helgaas
2026-07-02 5:58 ` Jia Wang
2026-07-09 19:48 ` Bjorn Helgaas [this message]
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=20260709194849.GA873312@bhelgaas \
--to=helgaas@kernel.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mani@kernel.org \
--cc=robh@kernel.org \
--cc=wangjia@ultrarisc.com \
--cc=zhangxincheng@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox