public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Klotzbücher" <mk@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] USB OHCI drivers unification
Date: Wed, 31 May 2006 14:11:30 +0200	[thread overview]
Message-ID: <878xoics25.fsf@denx.de> (raw)
In-Reply-To: <20060531103446.GA4390@enneenne.com> (Rodolfo Giometti's message of "Wed, 31 May 2006 12:34:47 +0200")

Rodolfo Giometti <giometti@linux.it> writes:

> On Wed, May 31, 2006 at 12:29:50PM +0200, Markus Klotzb?cher wrote:

>> I understand that the virt_to_phys() are required, but why do you need
>> the ohci_cpu_to_le16 macros? They seem to be the same as the m16_swap,
>> m32_swap macros?
>
> They are useful only for better reading the code since if I see
> m16_swap() I may think that the variable _must_ be swapped in any
> case, but if I read ohci_cpu_to_le16() I well understand that the
> variable _may_ be swapped according to CPU endianess.

Well, then we should probably use the existing macros
(include/asm/byteorder.h), but the downside is that this will grow the
diffs between the remaining ohci drivers and the generic one which will
make merging them more work. I'd prefer to leave cosmetic stuff for now,
until the other drivers are merged.

Regards

Markus Klotzbuecher

      reply	other threads:[~2006-05-31 12:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30 14:04 [U-Boot-Users] USB OHCI drivers unification Rodolfo Giometti
2006-05-30 14:17 ` Wolfgang Denk
     [not found]   ` <20060530145421.GU21995@enneenne.com>
2006-05-31  8:43     ` Markus Klotzbücher
2006-05-31  9:21       ` Rodolfo Giometti
2006-05-31 10:29         ` Markus Klotzbücher
2006-05-31 10:34           ` Rodolfo Giometti
2006-05-31 12:11             ` Markus Klotzbücher [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=878xoics25.fsf@denx.de \
    --to=mk@denx.de \
    --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