From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Pawel Moll <pawel.moll@arm.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
Magnus Damm <magnus.damm@gmail.com>, Chris Ball <cjb@laptop.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Simon Horman <horms@verge.net.au>,
Ian Campbell <ian.campbell@citrix.com>,
Mark Rutland <Mark.Rutland@arm.com>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>
Subject: Re: [PATCH 1/2] mmc: add Device Tree properties for UHS modes
Date: Mon, 29 Jul 2013 14:05:53 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.1307291359520.14405@axis700.grange> (raw)
In-Reply-To: <1375098159.3340.29.camel@hornet>
On Mon, 29 Jul 2013, Pawel Moll wrote:
> On Mon, 2013-07-29 at 12:27 +0100, Guennadi Liakhovetski wrote:
> > On Mon, 29 Jul 2013, Pawel Moll wrote:
> >
> > > On Mon, 2013-07-29 at 08:18 +0100, Guennadi Liakhovetski wrote:
> > > > A short addendum. At least with Renesas SoCs I see the situation in the
> > > > following way: new SoC versions appear relatively frequently.
> > >
> > > What frequency are we talking about? Once per year? Once per month? I'm
> > > not trying to be picky, it really makes a difference...
> >
> > Definitely not every month - not until now in the mainline at least. I
> > currently count 9 SoCs, added since 2010, which makes about 2-3 SoCs per
> > year.
>
> So this is actually a slower rate that I've faced in my previous life
> working for a silicon vendor ;-) And my experience is that the IPs were
> different between the SoCs indeed but:
>
> 1. Not all of them at the same time (so no extra compatible values for
> others).
No, that's exactly the problem. We absolutely do not want to write
compatible="vendor,soc-v1"; in a .dts file for SoC v2 just because we
currently think, that we don't have to distinguish between those SoC
versions in this specific driver. I think we all know it quite well, that
there are (practically) always differences - sometimes documented,
sometimes undocumented. And if you later find out, that you do have to
differentiate in the driver - it's too late. Even if we disregard the
argument of ugliness of having to set compatibility with soc-v1, soc-v2,
soc-v3 in different DT nodes on an SoC v4.
Thanks
Guennadi
> 2. When there was a change it required change in a driver as well (so
> adding a compatible value is not an issue).
> 3. The changes were *completely* unpredictable (so even comprehensive
> list of DT properties wouldn't help)
>
> To summarize, count this as another vote for using compatible rather
> then "universal & future-proof" set of properties. Unless there is a
> very good rationale for it (I'm sure such cases exist)
>
> Thanks!
>
> Pawel
>
>
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
next prev parent reply other threads:[~2013-07-29 12:05 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-26 15:51 [PATCH 1/2] mmc: add Device Tree properties for UHS modes Guennadi Liakhovetski
2013-07-26 15:51 ` [PATCH/RFC 2/2] ARM: shmobile: kzm9g: support DDR50 mode with 1.8V VccQ on MMCIF Guennadi Liakhovetski
2013-07-30 2:18 ` Simon Horman
2013-07-26 17:10 ` [PATCH 1/2] mmc: add Device Tree properties for UHS modes Stephen Warren
2013-07-26 20:23 ` Guennadi Liakhovetski
2013-07-26 21:36 ` Stephen Warren
2013-07-29 6:20 ` Guennadi Liakhovetski
2013-07-29 7:18 ` Guennadi Liakhovetski
2013-07-29 10:50 ` Pawel Moll
2013-07-29 11:27 ` Guennadi Liakhovetski
2013-07-29 11:42 ` Pawel Moll
2013-07-29 12:05 ` Guennadi Liakhovetski [this message]
2013-07-29 13:07 ` Pawel Moll
2013-07-29 13:30 ` Guennadi Liakhovetski
2013-07-29 13:37 ` Pawel Moll
2013-07-29 17:21 ` Stephen Warren
2013-07-29 13:39 ` Rob Herring
2013-07-29 14:40 ` Guennadi Liakhovetski
2013-07-29 17:28 ` Stephen Warren
2013-07-29 10:57 ` Pawel Moll
2013-07-29 11:10 ` Guennadi Liakhovetski
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=Pine.LNX.4.64.1307291359520.14405@axis700.grange \
--to=g.liakhovetski@gmx.de \
--cc=Mark.Rutland@arm.com \
--cc=cjb@laptop.org \
--cc=devicetree@vger.kernel.org \
--cc=horms@verge.net.au \
--cc=ian.campbell@citrix.com \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.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