From: Louis <louis@asix.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH][resubmit] AX88180: new gigabit network driver
Date: Wed, 2 Jul 2008 19:29:42 +0800 [thread overview]
Message-ID: <008401c8dc36$ee097100$0100a8c0@louis> (raw)
In-Reply-To: f8328f7c0807020049n75574e23u8471177436ca0c7e@mail.gmail.com
Dear Ben,
Thanks for your suggestion; I will correct the driver as soon as possible.
And I make a mistake in sending the mail through outlook express, hence making
indentation problems.
----- Original Message -----
From: "Ben Warren" <biggerbadderben@gmail.com>
To: "Ben Warren" <bwarren@qstreams.com>
Cc: "Louis" <louis@asix.com.tw>; <u-boot-users@lists.sourceforge.net>; "[???]""
<donald@asix.com.tw>; ""ASIX Donald at sc8-sf-spam2-b.sourceforge.net"
<=?windows-1252?Q?=22ASIX_Donald?=@sc8-sf-spam2-b.sourceforge.net>
Sent: Wednesday, July 02, 2008 3:49 PM
Subject: Re: [U-Boot-Users] [PATCH][resubmit] AX88180: new gigabit network
driver
> On Wed, Jul 2, 2008 at 12:07 AM, Ben Warren <bwarren@qstreams.com> wrote:
> <snip>
>
>>> +#define WRITE_TXBUF(data) \
>>> + do { \
>>> + *(volatile unsigned short *)(AX88180_BASE + TXBUFFER_START) \
>>> + = data; \
>>> + } while (0)
>>> +
>> In this case, the do{...}while(0) is unnecessary. Just make the
>> assignment.
>
> Sorry, I was wrong in this case - do{...}while(0) is correct. Please
> consider replacing all of these macros with static inline functions
> though. Much easier for everybody that way.
>
> regards,
> Ben
>
next prev parent reply other threads:[~2008-07-02 11:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 10:23 [U-Boot-Users] [PATCH][resubmit] AX88180: new gigabit network driver Louis
2008-07-02 7:07 ` Ben Warren
2008-07-02 7:49 ` Ben Warren
2008-07-02 11:29 ` Louis [this message]
2008-07-02 16:21 ` Ben Warren
2008-07-09 3:01 ` [U-Boot-Users] [resubmit] " Louis Su
2008-07-09 3:01 ` [U-Boot-Users] [PATCH] " Louis Su
2008-09-05 22:38 ` [U-Boot] " Wolfgang Denk
2008-09-06 3:18 ` Ben Warren
2008-09-06 23:32 ` Wolfgang Denk
2008-10-12 22:02 ` Wolfgang Denk
2008-10-13 3:51 ` Ben Warren
2008-10-20 5:57 ` Mike Frysinger
-- strict thread matches above, loose matches on Subject: below --
2008-07-07 7:23 [U-Boot-Users] [PATCH] [resubmit]AX88180: " Louis Su
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='008401c8dc36$ee097100$0100a8c0@louis' \
--to=louis@asix.com.tw \
--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