From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] TI: netdev: add driver for cpsw ethernet device
Date: Thu, 10 Nov 2011 12:06:55 -0500 [thread overview]
Message-ID: <201111101206.55842.vapier@gentoo.org> (raw)
In-Reply-To: <CA+M6bXnJ5wCOUg74Xu-3XEkGqkMGmihJLfPvskJ2o7TmcODTSg@mail.gmail.com>
On Thursday 10 November 2011 11:39:49 Tom Rini wrote:
> On Thu, Nov 10, 2011 at 9:26 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Thursday 10 November 2011 07:40:28 Chandan Nath wrote:
> >> +#define mac_hi(mac) (((mac)[0] << 0) | ((mac)[1] << 8) | \
> >> + ((mac)[2] << 16) | ((mac)[3] << 24))
> >
> > looks like __get_unaligned_u32()
> >
> >> +#define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8))
> >
> > looks like __get_unaligned_u16()
>
> It's the regular MAC shifting around everyone does. Are you saying
> there's a general cleanup to be done here?
other drivers probably could benefit from using the unaligned helpers. but it
isn't something we could generally unify as it requires assumption on
core/system endian, and the layout of the registers in the peripheral.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111110/afa2dcd4/attachment.pgp
next prev parent reply other threads:[~2011-11-10 17:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-10 12:40 [U-Boot] [PATCH v2 0/2] Added CPSW support Chandan Nath
2011-11-10 12:40 ` [U-Boot] [PATCH v2 1/2] TI: netdev: add driver for cpsw ethernet device Chandan Nath
2011-11-10 16:26 ` Mike Frysinger
2011-11-10 16:39 ` Tom Rini
2011-11-10 17:06 ` Mike Frysinger [this message]
2011-11-10 22:43 ` Andy Fleming
2011-11-10 23:16 ` Tom Rini
2011-11-28 10:33 ` Kumar
2011-11-10 12:40 ` [U-Boot] [PATCH v2 2/2] ARM:AM33XX:Added cpsw support for AM335x EVM Chandan Nath
2011-11-10 14:46 ` Tom Rini
2011-11-10 15:05 ` Kumar
2011-11-10 12:40 ` Chandan Nath
2011-11-10 13:03 ` Kumar
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=201111101206.55842.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/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