From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
"open list:COMMON CLK FRAMEWORK" <linux-clk@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
linux-amarula@amarulasolutions.com, Marek Vasut <marex@denx.de>
Subject: Re: [RFC PATCH 2/3] clk: bd718x7: Enable the possibility to mark the clock as critical
Date: Thu, 15 Aug 2024 09:07:25 +0300 [thread overview]
Message-ID: <22f3c925-309f-4ebe-a481-2553cfa71c0c@gmail.com> (raw)
In-Reply-To: <CAOf5uwm3p5AJXL9w7hQtqz05hDpQ_-CQArm0z6kAehj7OxK1Mw@mail.gmail.com>
On 8/14/24 19:00, Michael Nazzareno Trimarchi wrote:
> Hi Stephen
>
> On Mon, Jun 6, 2022 at 7:26 AM Matti Vaittinen <mazziesaccount@gmail.com> wrote:
>>
>> Hi Michael,
>>
>> On 6/5/22 19:57, Michael Trimarchi wrote:
>>> If the clock is used to generate the osc_32k, we need to mark
>>> as critical. clock-critical has no binding description at the moment
>>> but it's defined in linux kernel
>>>
>>> bd71847: pmic@4b {
>>> ...
>>> rohm,reset-snvs-powered;
>>>
>>> #clock-cells = <0>;
>>> clock-critical = <1>;
>>> clocks = <&osc_32k 0>;
>>> clock-output-names = "clk-32k-out";
>>> ...
>>> }
>>>
>>> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
>>> ---
>>> drivers/clk/clk-bd718x7.c | 4 ++++
>>
>> //snip
>>
>>> @@ -100,6 +101,9 @@ static int bd71837_clk_probe(struct platform_device *pdev)
>>>
>>> parent_clk = of_clk_get_parent_name(parent->of_node, 0);
>>>
>>> + of_clk_detect_critical(dev->of_node, 0, &flags);
>>
>> Purely judging the kerneldoc for of_clk_detect_critical - you may have
>> hard time getting this accepted.
>>
>> I think you're working on a very valid problem though. Maybe you could
>> see if you could align your effort with Marek?
>>
>> https://lore.kernel.org/all/20220517235919.200375-1-marex@denx.de/T/#m52d6d0831bf43d5f293e35cb27f3021f278d0564
>>
>
> Old thread but same problem. Is there any way to make this acceptable?
> any suggestion?
Hi Michael. I'm not sure what is the correct way but I think there are a
few tricks people have used to fix (or paper over) the problem. One was
suggested by Sebastian:
https://lore.kernel.org/all/20220913152140.iikckob5h3ecagfi@mercury.elektranox.org/
No one shouted for implementing this fix though.
It also seems to me that there is a way to 'make things work' by
modelling the clock dependencies in the DT in certain way, AND having
correct drivers enabled. This understanding came just by reading mails
Marek sent in this discussion:
https://lore.kernel.org/all/20220924174603.458956-1-marex@denx.de/
I've not tested any of this myself - but I hope you can use these as
pointers to a solution that works for you...
Yours,
-- Matti
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~
next prev parent reply other threads:[~2024-08-15 6:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220605165703.1565234-1-michael@amarulasolutions.com>
2022-06-05 16:57 ` [RFC PATCH 1/3] clk: bd718x7: Clean up the code, no functional changes Michael Trimarchi
2022-06-06 5:49 ` Matti Vaittinen
2022-06-05 16:57 ` [RFC PATCH 2/3] clk: bd718x7: Enable the possibility to mark the clock as critical Michael Trimarchi
2022-06-06 5:25 ` Matti Vaittinen
2022-06-06 6:08 ` Michael Nazzareno Trimarchi
2024-08-14 16:00 ` Michael Nazzareno Trimarchi
2024-08-15 6:07 ` Matti Vaittinen [this message]
2022-06-05 16:57 ` [RFC PATCH 3/3] arm64: dts: imx8mn-bsh-smm-s2/pro: Add pmic clock connection Michael Trimarchi
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=22f3c925-309f-4ebe-a481-2553cfa71c0c@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=linux-amarula@amarulasolutions.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=michael@amarulasolutions.com \
--cc=mturquette@baylibre.com \
--cc=sboyd@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