From: David Brownell <david-b@pacbell.net>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: Tony Lindgren <tony@atomide.com>,
"Kamat, Nishant" <nskamat@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Kyungmin Park <kmpark@infradead.org>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH] MTD: OMAP2-NAND: Fix partition reading from board info
Date: Mon, 4 Aug 2008 14:37:34 -0700 [thread overview]
Message-ID: <200808041437.34822.david-b@pacbell.net> (raw)
In-Reply-To: <20080804205617.GF31974@xi.wantstofly.org>
On Monday 04 August 2008, Lennert Buytenhek wrote:
>
> I've never seen CPU endianity being hardwired in any ARM system ever
> -- but maybe OMAP is different.
I'll let TI answer that one, since I'm not going to look at docs for
all the ARM's I've ever used.
My observation stands *REGARDLESS* of whether endianness was fixed in
hardware, bootloader, or kernel ... and in any case, with very few
exceptions (not including OMAP), Linux uses ARMs in LE mode:
~/kernel/linux-2.6/arch/arm/configs$ grep ENDIAN * | egrep -v '#' |egrep -v OHCI
ixp2000_defconfig:CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
ixp2000_defconfig:CONFIG_CPU_BIG_ENDIAN=y
ixp23xx_defconfig:CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
ixp23xx_defconfig:CONFIG_CPU_BIG_ENDIAN=y
ixp4xx_defconfig:CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
ixp4xx_defconfig:CONFIG_CPU_BIG_ENDIAN=y
~/kernel/linux-2.6/arch/arm/configs$ ls | wc -l
105
~/kernel/linux-2.6/arch/arm/configs$
To repeat: there's no point in having the words byteswapped when
writing, then again when reading, like this driver does. All that
does is ensure slow I/O paths. Were you disagreeing with that main
point? Or just quibbling about where any unusual big-endianness
might come from?
- Dave
next prev parent reply other threads:[~2008-08-04 21:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 14:32 [PATCH] MTD: OMAP2-NAND: Fix partition reading from board info Kamat, Nishant
2008-07-01 23:27 ` Kyungmin Park
2008-07-03 9:18 ` Kamat, Nishant
2008-08-04 14:24 ` Tony Lindgren
2008-08-04 20:02 ` David Brownell
2008-08-04 20:17 ` Lennert Buytenhek
2008-08-04 20:26 ` David Brownell
2008-08-04 20:56 ` Lennert Buytenhek
2008-08-04 21:37 ` David Brownell [this message]
2008-08-04 21:42 ` Lennert Buytenhek
2008-08-04 21:23 ` Woodruff, Richard
2008-08-04 21:32 ` Lennert Buytenhek
2008-08-04 21:45 ` Woodruff, Richard
2008-08-04 21:49 ` Lennert Buytenhek
2008-08-04 22:10 ` Woodruff, Richard
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=200808041437.34822.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=buytenh@wantstofly.org \
--cc=kmpark@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=nskamat@ti.com \
--cc=tony@atomide.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