From: Nishanth Menon <nm@ti.com>
To: Tony Lindgren <tony@atomide.com>
Cc: "felipe.balbi@nokia.com" <felipe.balbi@nokia.com>,
linux-omap <linux-omap@vger.kernel.org>,
Angelo Arrifano <miknix@gmail.com>,
"Zebediah C. McClure" <zmc@lurian.net>,
Alistair Buxton <a.j.buxton@gmail.com>,
Grazvydas Ignotas <notasas@gmail.com>,
Paul Walmsley <paul@pwsan.com>, "Premi, Sanjeev" <premi@ti.com>,
"Shilimkar, Santosh" <santosh.shilimkar@ti.com>,
"Guruswamy, Senthilvadivu" <svadivu@ti.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
"DebBarma, Tarun Kanti" <tarun.kanti@ti.com>,
"ValkeinenTomi (Nokia-MS/Helsinki)" <Tomi.Valkeinen@nokia.com>,
"Koskinen Aaro (Nokia-MS/Helsinki)" <aaro.koskinen@nokia.com>,
"Pandita, Vikram" <vikram.pandita@ti.com>,
"S, Vishwanath" <vishwa.s@ti.com>
Subject: Re: [PATCH 3/9 v3] omap: generic: introduce a single check_revision
Date: Thu, 8 Jul 2010 09:27:23 -0500 [thread overview]
Message-ID: <4C35E04B.1090102@ti.com> (raw)
In-Reply-To: <20100708122157.GI1920@atomide.com>
Tony Lindgren had written, on 07/08/2010 07:21 AM, the following:
> * Menon, Nishanth <nm@ti.com> [100708 14:49]:
>> ----- Original message -----
>>> Hi,
>>>
>>> On Wed, Jul 07, 2010 at 07:24:16PM +0200, ext Nishanth Menon wrote:
>>>> I am not sure.. if you would like drivers to be modprobabe, there may
>>> be
>>>> quirks that you'd want to enable based on cpu_is_omapxxx checks. so it
>>>> probably does not make sense to __initdata the revision/feature
>>> variables.
>>>
>>> can't you pass the quirks via pdata, then ?
>> If pdata is passed based on board: Imagine 3630 and uart quirk. Why share errata xyz over pdata for every board using 3630? Quirks are cpu specific and not really domain of board..
>
> We should be able to handle the quirks by passing some
> flag or function pointer from platform data.
>
> The drivers should be arch independent, using cpu_is_omapxxxx
> tests anywhere under drivers/* is wrong and should be
> fixed.
there are two forms of quirks:
a) quirks which can be detected based on IP rev
b) quirks which are silicon integration related - only cpu_is_xxxx can
be used to detect them.
for a) - I disagree that pdata should be used (this was my original
contention)
for b) the question IMHO is: How is pdata provided to the driver - that
is important. IMHO, pdata taken into drivers could have quirks, but if
the quirk addition is done from board files, I disagree, then should be
done in arch/arm/mach-omap[12]/somefile.c where somefile.c is common for
all boards (e.g. device.c) and that allows the driver to be cpu
independent and allows board files not to have redundant information.
BUT, features *should* be kept distinct from quirks for readability
purposes.
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2010-07-08 14:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 11:57 [PATCH 3/9 v3] omap: generic: introduce a single check_revision Menon, Nishanth
2010-07-08 12:21 ` Tony Lindgren
2010-07-08 14:27 ` Nishanth Menon [this message]
2010-07-13 15:06 ` Premi, Sanjeev
2010-07-13 15:37 ` Nishanth Menon
2010-07-13 15:48 ` Premi, Sanjeev
2010-07-13 15:56 ` Nishanth Menon
2010-07-08 12:34 ` Felipe Balbi
-- strict thread matches above, loose matches on Subject: below --
2010-06-25 16:25 Nishanth Menon
2010-06-25 16:41 ` Shilimkar, Santosh
2010-06-25 17:31 ` Nishanth Menon
2010-06-25 18:07 ` Shilimkar, Santosh
2010-07-07 12:36 ` Tony Lindgren
2010-07-07 17:24 ` Nishanth Menon
2010-07-08 9:08 ` Felipe Balbi
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=4C35E04B.1090102@ti.com \
--to=nm@ti.com \
--cc=Tomi.Valkeinen@nokia.com \
--cc=a.j.buxton@gmail.com \
--cc=aaro.koskinen@nokia.com \
--cc=felipe.balbi@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=miknix@gmail.com \
--cc=notasas@gmail.com \
--cc=paul@pwsan.com \
--cc=premi@ti.com \
--cc=santosh.shilimkar@ti.com \
--cc=svadivu@ti.com \
--cc=tarun.kanti@ti.com \
--cc=tony@atomide.com \
--cc=vikram.pandita@ti.com \
--cc=vishwa.s@ti.com \
--cc=zmc@lurian.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.