From: Paul Mundt <lethal@linux-sh.org>
To: Jaswinder Singh Rajput <jaswinderlinux@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org,
magnus.damm@gmail.com,
Russell King - ARM Linux <linux@arm.linux.org.uk>
Subject: Re: [GIT PULL] sh updates for 2.6.35-rc1
Date: Tue, 18 May 2010 10:57:48 +0000 [thread overview]
Message-ID: <20100518105748.GA3731@linux-sh.org> (raw)
In-Reply-To: <AANLkTinIVjwrQ9gza2FIvZN5w4nm8ZjSUe836oRmWYG7@mail.gmail.com>
On Tue, May 18, 2010 at 04:21:37PM +0530, Jaswinder Singh Rajput wrote:
> On Tue, May 18, 2010 at 3:45 PM, Paul Mundt <lethal@linux-sh.org> wrote:
> Hmm, so still it is between ARM and SH, so better option will be :
>
Those were examples, we already have cases where blocks are shared across
more architectures than that.
> include/linux/sh_clk.h -> include/sh/clk.h
> include/linux/sh_dma.h -> include/sh/dma.h
> include/linux/sh_intc.h -> include/sh/intc.h
>
> So when arm files will come then, then we can make it like this :
>
The ARM use case is already there, today.
> include/arm/clk.h
> include/arm/dma.h
> include/arm/intc.h
>
Did you even bother looking at the files and how they are used? We are
not going to duplicate identical files for each architecture.
> There are no doubts in future we will have asymmetrical processing,
> where we will use multiple architectures, so better make different
> directory for them instead of putting load on include/linux which
> already over-loaded.
>
You seem to be ignoring the fact that we've had these use cases for years
already and that the current scheme has so far served us pretty well in
that regard. If we have headers for drivers that are used across multiple
architectures, then include/linux is ultimately the proper place for
them. We could shoe-horn them in to some sort of pseudo-architecture
thing in include/ but for what purpose?
Until you've actually read through the background mail on this and
actually looked at the code in question I see very little point in
continuing this thread. I'm of course open to suggestions on how to make
this sort of abstraction cleaner, but so far none of your suggestions are
relevant to the problem at hand.
next prev parent reply other threads:[~2010-05-18 10:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 9:25 [GIT PULL] sh updates for 2.6.35-rc1 Paul Mundt
2010-05-18 9:57 ` Jaswinder Singh Rajput
2010-05-18 10:15 ` Paul Mundt
2010-05-18 10:51 ` Jaswinder Singh Rajput
2010-05-18 10:57 ` Paul Mundt [this message]
2010-05-18 11:05 ` Magnus Damm
2010-05-18 11:28 ` Jaswinder Singh Rajput
2010-05-18 11:17 ` Magnus Damm
2010-05-18 22:02 ` Paul Mundt
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=20100518105748.GA3731@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=jaswinderlinux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=magnus.damm@gmail.com \
--cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).