From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: "Mike Turquette" <mturquette@linaro.org>,
"Kumar Gala" <galak@codeaurora.org>,
devicetree@vger.kernel.org, "Heiko Stübner" <heiko@sntech.de>,
"Stephen Boyd" <sboyd@codeaurora.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Tero Kristo" <t-kristo@ti.com>,
"Haojian Zhuang" <haojian.zhuang@linaro.org>,
"Matt Sealey" <neko@bakuhatsu.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"ian campbell" <ian.campbell@citrix.com>,
"Mark Rutland" <Mark.Rutland@arm.com>,
"Pawel Moll" <pawel.moll@arm.com>
Subject: Re: [PATCH v4 3/5] clk: dt: binding for basic multiplexer clock
Date: Thu, 05 Sep 2013 22:51:10 +0200 [thread overview]
Message-ID: <5228EEBE.5070102@gmail.com> (raw)
In-Reply-To: <5228EA02.3000200@wwwdotorg.org>
On 09/05/2013 10:30 PM, Stephen Warren wrote:
> On 09/05/2013 12:29 PM, Mike Turquette wrote:
>> > On Wed, Sep 4, 2013 at 11:36 AM, Stephen Warren<swarren@wwwdotorg.org> wrote:
>>> >> On 09/03/2013 05:22 PM, Mike Turquette wrote:
>>>> >>> Quoting Stephen Warren (2013-08-30 14:37:46)
>>>>> >>>> On 08/30/2013 02:33 PM, Mike Turquette wrote:
>>> >> ...
>>>>>> >>>>> The clock_data_ seems to always have some churn to it. Moving it out to
>>>>>> >>>>> DT reduces that churn from Linux. My concern above is not about kernel
>>>>>> >>>>> data size.
>>>>> >>>>
>>>>> >>>> That sounds like the opposite of what we should be doing.
>>>>> >>>>
>>>>> >>>> It's fine for kernel code/data to change; that's a natural part of
>>>>> >>>> development. Obviously, we should minimize churn, through thorough
>>>>> >>>> review, domain knowledge, etc.
>>>> >>>
>>>> >>> And with the "clock mapping" style bindings we'll end up changing both
>>>> >>> the DT binding definition and the kernel. Not great.
>>> >>
>>> >> What's a "clock mapping" style binding? I guess that means the style
>>> >> where you have a single DT node that provides multiple clocks, rather
>>> >> than one DT node per clock?
>>> >>
>>> >> If the kernel driver changes its internal data, I don't see why that
>>> >> would have any impact at all on the DT binding definition. We should be
>>> >> able to use one DT binding definition with arbitrary drivers.
>> >
>> > Yes, I'm referring to a single node providing multiple clocks. As an
>> > example see the Exynos 5420 binding:
>> > Documentation/devicetree/bindings/clock/exynos5420-clock.txt
>> >
>> > The clock id's are stored as part of the binding definition resulting
>> > in a mapping scheme that can be fragile.
>
> The mapping shouldn't be fragile if e.g.
> include/dt-bindings/clock/exynos5420.h were used to define the values.
> That way, both the Exynos clock driver and Exynos DT files could both
> include the header, and would always be in sync.
It was our intention to have things done this way since first time the idea
of the preprocessor support in dtc was proposed, and since very initial
versions of the exynos clocks driver. I took some time but there have been
recently already posted patches moving the values definition to common
headers [1].
[1] http://www.spinics.net/lists/arm-kernel/msg271807.html
--
Thanks,
Sylwester
next prev parent reply other threads:[~2013-09-05 20:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1377150793-27864-1-git-send-email-mturquette@linaro.org>
[not found] ` <1377150793-27864-4-git-send-email-mturquette@linaro.org>
2013-08-28 15:50 ` [PATCH v4 3/5] clk: dt: binding for basic multiplexer clock Kumar Gala
2013-08-29 1:14 ` Mike Turquette
2013-08-29 6:58 ` Tero Kristo
2013-08-30 5:54 ` Tony Lindgren
2013-08-30 20:02 ` Kumar Gala
2013-08-30 20:33 ` Mike Turquette
2013-08-30 20:48 ` Kumar Gala
2013-08-30 21:37 ` Stephen Warren
2013-09-03 23:22 ` Mike Turquette
2013-09-04 18:36 ` Stephen Warren
2013-09-05 18:29 ` Mike Turquette
2013-09-05 20:30 ` Stephen Warren
2013-09-05 20:51 ` Sylwester Nawrocki [this message]
2013-09-06 6:53 ` Tero Kristo
2013-09-06 19:01 ` Stephen Warren
2013-09-07 4:15 ` Saravana Kannan
2013-09-07 12:27 ` Tomasz Figa
2013-08-29 18:23 ` [PATCH v4 0/5] clk: dt: bindings for mux, divider & gate clocks Santosh Shilimkar
2013-08-30 7:05 ` Tero Kristo
[not found] ` <1377150793-27864-6-git-send-email-mturquette@linaro.org>
2013-08-30 1:45 ` [PATCH v4 5/5] clk: dt: binding for basic gate clock Haojian Zhuang
2013-08-30 20:06 ` Stephen Warren
2013-09-04 3:03 ` Haojian Zhuang
2013-09-04 17:59 ` Tony Lindgren
2013-09-07 11:56 ` Tomasz Figa
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=5228EEBE.5070102@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=Mark.Rutland@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=haojian.zhuang@linaro.org \
--cc=heiko@sntech.de \
--cc=ian.campbell@citrix.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=neko@bakuhatsu.net \
--cc=pawel.moll@arm.com \
--cc=sboyd@codeaurora.org \
--cc=swarren@wwwdotorg.org \
--cc=t-kristo@ti.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).