From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Padma Venkat <padma.kvr@gmail.com>
Cc: Tomasz Figa <tomasz.figa@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Padmavathi Venna <padma.v@samsung.com>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
Sangbeom Kim <sbkim73@samsung.com>,
Kukjin Kim <kgene.kim@samsung.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Thomas Abraham <thomas.abraham@linaro.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>
Subject: Re: [PATCH V2 1/3] clk: samsung: register audio subsystem clocks using common clock framework
Date: Sat, 11 May 2013 13:42:11 +0200 [thread overview]
Message-ID: <518E2E93.7030104@gmail.com> (raw)
In-Reply-To: <CAAgF-BfeCZn8-_W-QxXw1QhU-Day-TEMtApiykw1mr7_aA=qTQ@mail.gmail.com>
Hi,
On 05/11/2013 12:13 PM, Padma Venkat wrote:
>>> +CLK_OF_DECLARE(exynos4210_audss_clk, "samsung,exynos4210-audss-clock",
>>> >> + samsung_audss_clk_init);
>>> >> +CLK_OF_DECLARE(exynos5250_audss_clk, "samsung,exynos5250-audss-clock",
>>> >> + samsung_audss_clk_init);
>> >
>> > Also if both Exynos4210 and Exynos5250 have exactly the same audss clock
>> > layout, there is no reason to have two compatibles for them - the
>> > convention is that just the first model that had this hardware is enough -
>> > in this case Exynos4210.
>> >
>> > Having two different compatibles suggests that those two SoCs differ in a
>> > way that needs special handling, which is misleading, based on the fact
>> > that there is no such special handling in the driver.
>
> There is only one difference between Exynos4 and Exynos5 is bit 1 of
> CLK_GATE register where in Exynos5 it is reserved and Exynos4 it is
> gate to IntMEM. I am not sure if we use this bit some where? So is it
> okey to have same compatible with this diff?
I think such difference warrants separate compatible properties, as
Exynos5250
seems to be not compatible with Exynos4210 in that case. Reserved bits
should
be left untouched.
I wouldn't be surprised to see more differences we might be overlooking
now.
IMHO it's better to be save than sorry, keeping both 'compatible'
strings as
they are now.
Regards,
Sylwester
next prev parent reply other threads:[~2013-05-11 11:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-07 6:43 [PATCH V2 0/3] clk: Samsung: audss: Register audio subsytem clocks using common clk framework Padmavathi Venna
2013-05-07 6:43 ` [PATCH V2 1/3] clk: samsung: register audio subsystem clocks using common clock framework Padmavathi Venna
2013-05-10 0:21 ` Tomasz Figa
2013-05-11 10:13 ` Padma Venkat
2013-05-11 11:42 ` Sylwester Nawrocki [this message]
2013-05-07 6:43 ` [PATCH V2 2/3] ARM: dts: add Exynos audio subsystem clock controller node Padmavathi Venna
2013-05-07 9:54 ` Tomasz Figa
2013-05-07 11:14 ` Padma Venkat
2013-05-07 6:43 ` [PATCH V2 3/3] ARM: dts: add clock provider information for i2s controllers in Exynos5250 Padmavathi Venna
2013-05-10 0:24 ` [PATCH V2 0/3] clk: Samsung: audss: Register audio subsytem clocks using common clk framework 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=518E2E93.7030104@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=padma.kvr@gmail.com \
--cc=padma.v@samsung.com \
--cc=s.nawrocki@samsung.com \
--cc=sbkim73@samsung.com \
--cc=thomas.abraham@linaro.org \
--cc=tomasz.figa@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;
as well as URLs for NNTP newsgroup(s).