From: loic pallardy <loic.pallardy@st.com>
To: Rob Herring <robh@kernel.org>,
Gabriel Fernandez <gabriel.fernandez@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
"kernel@stlinux.com" <kernel@stlinux.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Michael Turquette <mturquette@baylibre.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Andrzej Hajda <a.hajda@samsung.com>,
linux-clk <linux-clk@vger.kernel.org>,
Benjamin GAIGNARD <benjamin.gaignard@st.com>,
Olivier Bideau <olivier.bideau@st.com>,
Russell King <linux@armlinux.org.uk>,
Thierry Reding <treding@nvidia.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Vincent ABRIOU <vincent.abriou@st.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Srinivas Kandagatla <srinivas.kandagatla@gmail.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Ku
Subject: Re: [STLinux Kernel] [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks
Date: Thu, 26 May 2016 15:05:10 +0200 [thread overview]
Message-ID: <5746F486.602@st.com> (raw)
In-Reply-To: <CAL_JsqLOG4P0H+HkQ3mJhfibatuV2T51KqOn-+U+LK8WUx7QgA@mail.gmail.com>
On 05/26/2016 02:46 PM, Rob Herring wrote:
> On Thu, May 26, 2016 at 4:49 AM, Gabriel Fernandez
> <gabriel.fernandez@linaro.org> wrote:
>> On 25 May 2016 at 19:24, Rob Herring <robh@kernel.org> wrote:
>>>
>>> On Wed, May 18, 2016 at 10:41:23AM +0200, Gabriel Fernandez wrote:
>>>> This patch allows fine tuning of the quads FS for audio clocks
>>>> accuracy.
>>>>
>>>> Signed-off-by: Olivier Bideau <olivier.bideau@st.com>
>>>> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
>>>> ---
>>>> .../devicetree/bindings/clock/st/st,flexgen.txt | 1 +
>>>> drivers/clk/st/clk-flexgen.c | 24 ++++++++++++++++++++++
>>>> 2 files changed, 25 insertions(+)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/clock/st/st,flexgen.txt b/Documentation/devicetree/bindings/clock/st/st,flexgen.txt
>>>> index b7ee5c7..15b33c7 100644
>>>> --- a/Documentation/devicetree/bindings/clock/st/st,flexgen.txt
>>>> +++ b/Documentation/devicetree/bindings/clock/st/st,flexgen.txt
>>>> @@ -60,6 +60,7 @@ This binding uses the common clock binding[2].
>>>> Required properties:
>>>> - compatible : shall be:
>>>> "st,flexgen"
>>>> + "st,stih407-clkgend0", "st,flexgen" (enable clock propagation on parent)
>>>
>>> What do "d0" and "d2" refer to?
>>>
>>> This seems to indicate you have too much clock detail in the DT (with
>>> individual clocks described) or not enough with genericish compatible
>>> strings. What happens for the mext clock you need to adjust the flags
>>> on? You should be able to make these adjustments without DT updates.
>>> Perhaps you need a wider fixing of clock compatible strings.
>>>
>>> Rob
>>
>> Sorry i sent my response in html...
>>
>> Hi Rob,
>>
>> Thanks for reviewing.
>>
>> Can i remove
>> "
>> st,stih407-clkgend0" & "
>> st,stih407-clkgend2" compatible strings and add proprieties instead ?
>> I only need to activate 2 features and then we can keep generic
>> compatible strings.
>
Hi Rob,
> That is no different and suffers the same point I raised. It requires
> updating the DT for any clock configuration change or enhancement.
>
Agree with you, DT update is needed as soon as a clock configuration
should be changed. This is due to STiH clock driver design based on DT
description of SoC clock tree.
This clock driver was accepted 2 years ago. At the time being there was
discussion about clock tree description location: driver or DT.
Bad choice was done for this driver...
If we decide to redesign STiH clock driver using in-driver clock tree
description, this will modify STiH clock DT nodes description and so
break DT backward compatibility.
What's from your pov the best option?
Regards,
Loic
> Rob
>
> _______________________________________________
> Kernel mailing list
> Kernel@stlinux.com
> http://www.stlinux.com/mailman/listinfo/kernel
>
next prev parent reply other threads:[~2016-05-26 13:05 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 8:41 [PATCH 00/11] Clock improvement for video playback Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 01/11] drivers: clk: st: Add fs660c32 synthesizer algorithm Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 02/11] drivers: clk: st: Add clock propagation for audio clocks Gabriel Fernandez
2016-05-25 17:24 ` Rob Herring
2016-05-26 9:49 ` Gabriel Fernandez
2016-05-26 12:46 ` Rob Herring
2016-05-26 13:05 ` loic pallardy [this message]
2016-05-26 13:20 ` [STLinux Kernel] " Rob Herring
2016-05-27 7:23 ` loic pallardy
2016-05-27 15:41 ` Rob Herring
2016-05-30 7:30 ` Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 03/11] drivers: clk: st: Handle clkgenD2 clk synchronous mode Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 04/11] ARM: DT: STiH407: Add compatibility string on clkgend0 for audio clocks Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 05/11] ARM: DT: STiH410: " Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 06/11] ARM: DT: STiH418: " Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 07/11] ARM: DT: STiH407: Enable synchronous clock mode on clkgend2 Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 08/11] ARM: DT: STiH410: " Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 09/11] ARM: DT: STiH418: " Gabriel Fernandez
2016-05-18 8:41 ` [PATCH 10/11] ARM: DT: STi: STiH407: clock configuration to address 720p and 1080p Gabriel Fernandez
[not found] ` <1463560892-7209-1-git-send-email-gabriel.fernandez-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-05-18 8:41 ` [PATCH 11/11] ARM: DT: STi: STiH410: " Gabriel Fernandez
2016-05-24 7:40 ` [PATCH 00/11] Clock improvement for video playback Arnaud Pouliquen
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=5746F486.602@st.com \
--to=loic.pallardy@st.com \
--cc=a.hajda@samsung.com \
--cc=arnd@arndb.de \
--cc=benjamin.gaignard@st.com \
--cc=devicetree@vger.kernel.org \
--cc=gabriel.fernandez@linaro.org \
--cc=geert+renesas@glider.be \
--cc=ijc+devicetree@hellion.org.uk \
--cc=kernel@stlinux.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=olivier.bideau@st.com \
--cc=robh@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=srinivas.kandagatla@gmail.com \
--cc=treding@nvidia.com \
--cc=vincent.abriou@st.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;
as well as URLs for NNTP newsgroup(s).