From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Sam Protsenko <semen.protsenko@linaro.org>
Cc: "David Virag" <virag.david003@gmail.com>,
"Paweł Chmiel" <pawel.mikolaj.chmiel@gmail.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-samsung-soc@vger.kernel.org,
"Krzysztof Kozlowski" <krzysztof.kozlowski@canonical.com>,
"Chanwoo Choi" <cw00.choi@samsung.com>,
"Tomasz Figa" <tomasz.figa@gmail.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Stephen Boyd" <sboyd@kernel.org>,
"Michael Turquette" <mturquette@baylibre.com>
Subject: Re: [PATCH 5/6] clk: samsung: exynos850: Register clocks early
Date: Mon, 22 Nov 2021 11:00:40 +0100 [thread overview]
Message-ID: <b1ce8a8e-d8aa-f9e5-27db-fa1455ea00f0@samsung.com> (raw)
In-Reply-To: <20211121232741.6967-6-semen.protsenko@linaro.org>
On 22.11.2021 00:27, Sam Protsenko wrote:
> /* Register Offset definitions for CMU_CORE (0x12000000) */
> @@ -1014,24 +1060,12 @@ static int __init exynos850_cmu_probe(struct platform_device *pdev)
> {
> const struct samsung_cmu_info *info;
> struct device *dev = &pdev->dev;
> - struct device_node *np = dev->of_node;
>
> info = of_device_get_match_data(dev);
> - exynos850_init_clocks(np, info->clk_regs, info->nr_clk_regs);
> - samsung_cmu_register_one(np, info);
>
> - /* Keep bus clock running, so it's possible to access CMU registers */
> - if (info->clk_name) {
> - struct clk *bus_clk;
> -
> - bus_clk = clk_get(dev, info->clk_name);
> - if (IS_ERR(bus_clk)) {
> - pr_err("%s: could not find bus clock %s; err = %ld\n",
> - __func__, info->clk_name, PTR_ERR(bus_clk));
> - } else {
> - clk_prepare_enable(bus_clk);
> - }
> - }
> + /* Early clocks are already registered using CLK_OF_DECLARE_DRIVER() */
> + if (info != &peri_cmu_info)
> + exynos850_register_cmu(dev, dev->of_node, info);
>
Do you still need this test? How about just removing "samsung,exynos850-cmu-peri"
from exynos850_cmu_of_match[] ?
--
Regards,
Sylwester
next prev parent reply other threads:[~2021-11-22 10:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-21 23:27 [PATCH 0/6] clk: samsung: exynos850: Clock driver improvements Sam Protsenko
2021-11-21 23:27 ` [PATCH 1/6] dt-bindings: clock: Add bindings for Exynos850 CMU_APM Sam Protsenko
2021-11-22 9:53 ` Sylwester Nawrocki
2021-11-21 23:27 ` [PATCH 2/6] clk: samsung: exynos850: Implement CMU_APM domain Sam Protsenko
2021-11-22 9:54 ` Sylwester Nawrocki
2021-11-21 23:27 ` [PATCH 3/6] dt-bindings: clock: Add bindings for Exynos850 CMU_CMGP Sam Protsenko
2021-11-22 9:54 ` Sylwester Nawrocki
2021-11-21 23:27 ` [PATCH 4/6] clk: samsung: exynos850: Implement CMU_CMGP domain Sam Protsenko
2021-11-22 9:54 ` Sylwester Nawrocki
2021-11-21 23:27 ` [PATCH 5/6] clk: samsung: exynos850: Register clocks early Sam Protsenko
2021-11-22 10:00 ` Sylwester Nawrocki [this message]
2021-11-22 14:28 ` Sam Protsenko
2021-11-21 23:27 ` [PATCH 6/6] clk: samsung: exynos850: Keep some crucial clocks running Sam Protsenko
2021-11-22 7:57 ` Krzysztof Kozlowski
2021-11-22 10:01 ` Sylwester Nawrocki
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=b1ce8a8e-d8aa-f9e5-27db-fa1455ea00f0@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=pawel.mikolaj.chmiel@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=semen.protsenko@linaro.org \
--cc=tomasz.figa@gmail.com \
--cc=virag.david003@gmail.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
all inboxes | Powered by JetHome®