From: Johan Hovold <johan@kernel.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: "Andy Gross" <agross@kernel.org>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konrad.dybcio@somainline.org>,
"Rob Herring" <robh+dt@kernel.org>,
"Jingoo Han" <jingoohan1@gmail.com>,
"Gustavo Pimentel" <gustavo.pimentel@synopsys.com>,
"Lorenzo Pieralisi" <lorenzo.pieralisi@arm.com>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH 2/4] PCI: qcom: Use clk_bulk_ API for 1.0.0 clocks handling
Date: Thu, 20 Oct 2022 13:32:54 +0200 [thread overview]
Message-ID: <Y1Ex5ks9PIJmPfkf@hovoldconsulting.com> (raw)
In-Reply-To: <30850757-0e39-bd3d-0d4f-cdb4627b097c@linaro.org>
On Thu, Oct 20, 2022 at 02:22:47PM +0300, Dmitry Baryshkov wrote:
> On 20/10/2022 14:08, Johan Hovold wrote:
> > On Thu, Oct 20, 2022 at 01:31:18PM +0300, Dmitry Baryshkov wrote:
> >> + res->clks[0].id = "aux";
> >> + res->clks[1].id = "iface";
> >> + res->clks[2].id = "master_bus";
> >> + res->clks[3].id = "slave_bus";
> >>
> >> - res->slave_bus = devm_clk_get(dev, "slave_bus");
> >> - if (IS_ERR(res->slave_bus))
> >> - return PTR_ERR(res->slave_bus);
> >> + ret = devm_clk_bulk_get(dev, ARRAY_SIZE(res->clks), res->clks);
> >> + if (ret < 0)
> >> + return ret;
> >
> > Are you sure there are no dependencies between these clocks and that
> > they can be enabled and disabled in any order?
>
> The order is enforced by the bulk API. Forward to enable, backward to
> disable.
Right you are. (I had it mixed up with a different API which had no such
guarantees and now I can't seem to remember which it was, maybe I dreamt
it.)
> > Are you also convinced that they will always be enabled and disabled
> > together (e.g. not controlled individually during suspend)?
>
> From what I see downstream, yes. They separate host and pipe clocks,
> but for each of these groups all clocks are disabled and enabled in
> sequence.
>
> For the newer platforms the only exceptions are refgen (handled by the
> PHY in our kernels) and ddrss_sf_tbu (only on some platforms), which is
> not touched by these patches.
Sounds good.
Johan
next prev parent reply other threads:[~2022-10-20 11:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 10:31 [PATCH 0/4] PCI: qcom: use clk_bulk API Dmitry Baryshkov
2022-10-20 10:31 ` [PATCH 1/4] PCI: qcom: Move 2_1_0 defines close to the struct definition Dmitry Baryshkov
2022-10-20 10:31 ` [PATCH 2/4] PCI: qcom: Use clk_bulk_ API for 1.0.0 clocks handling Dmitry Baryshkov
2022-10-20 11:08 ` Johan Hovold
2022-10-20 11:22 ` Dmitry Baryshkov
2022-10-20 11:32 ` Johan Hovold [this message]
2022-10-20 11:45 ` Dmitry Baryshkov
2023-01-13 15:54 ` Lorenzo Pieralisi
2023-01-16 11:26 ` Johan Hovold
2022-10-20 10:31 ` [PATCH 3/4] PCI: qcom: Use clk_bulk_ API for 2.3.2 " Dmitry Baryshkov
2022-10-23 23:27 ` Han Jingoo
2022-10-20 10:31 ` [PATCH 4/4] PCI: qcom: Use clk_bulk_ API for 2.3.3 " Dmitry Baryshkov
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=Y1Ex5ks9PIJmPfkf@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=gustavo.pimentel@synopsys.com \
--cc=jingoohan1@gmail.com \
--cc=konrad.dybcio@somainline.org \
--cc=kw@linux.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=robh+dt@kernel.org \
/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