From: Arnd Bergmann <arnd@arndb.de>
To: Murali Karicheri <m-karicheri2@ti.com>
Cc: "open list:TI NETCP ETHERNET DRIVER" <netdev@vger.kernel.org>
Subject: Re: net: netcp: regarding commit 899077: netcp: try to reduce type confusion in descriptors
Date: Wed, 24 Feb 2016 13:47:02 +0100 [thread overview]
Message-ID: <9482605.o2kvoZbYXY@wuerfel> (raw)
In-Reply-To: <56CB9539.9020108@ti.com>
On Monday 22 February 2016 18:09:45 Murali Karicheri wrote:
> On 02/22/2016 05:13 PM, Arnd Bergmann wrote:
> > On Monday 22 February 2016 16:48:14 Murali Karicheri wrote:
> >> Keystone can have SoC configured to be in big endian mode for peripherals and DSP.
> >
> > I'm not entirely sure what this means
>
> This means, ARM core can be using LE/BE and rest of the system can be configured through a pin
> (to SOC) to operate in BE/LE. So need to take care of all mixed endian configuration
> properly. Refer to http://www.ti.com/lit/ds/symlink/tci6636k2h.pdf for more details if interested.
Ah, that is unfortunate. For the moment, let's hope that nobody ever uses that pin,
so we can support both big-endian and little-endian kernels without having
to do any runtime detection of the board settings.
If anyone is misguided enough to flip that configuration pin to the opposite
setting, then we will require extra DT properties to list for each device
what endianess the hardware uses, and check that flag at runtime, which causes
a little extra overhead.
If you are able to provide any feedback to the hardware designers, please
ask them to never do configurable endianess again: it solves no actual
problems but creates endless nightmares if anyone ever uses that.
> > And this is another one of the same sort.
> >
> > Not my best patch ever obviously, but at least I understand where I went
> > wrong now, and see that it was only me being sloppy in the conversion rather
> > than a more fundamental misdesign.
> >
>
> So do you plan to re-spin the patch again with the above change?
I probably won't bother at this point, but if you could send a patch to get back
to my version with your fixes, I'll send an Ack.
Arnd
prev parent reply other threads:[~2016-02-24 12:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 21:48 net: netcp: regarding commit 899077: netcp: try to reduce type confusion in descriptors Murali Karicheri
2016-02-22 22:13 ` Arnd Bergmann
2016-02-22 23:09 ` Murali Karicheri
2016-02-24 12:47 ` Arnd Bergmann [this message]
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=9482605.o2kvoZbYXY@wuerfel \
--to=arnd@arndb.de \
--cc=m-karicheri2@ti.com \
--cc=netdev@vger.kernel.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).