LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ming Liu" <eemingliu@hotmail.com>
To: arnd@arndb.de
Cc: domen.puncer@telargo.com, linuxppc-embedded@ozlabs.org
Subject: Re: a question on "iowrite32()"
Date: Fri, 08 Jun 2007 13:51:21 +0000	[thread overview]
Message-ID: <BAY138-F14C8777C9DA602F253346CB2250@phx.gbl> (raw)
In-Reply-To: <200706071609.19399.arnd@arndb.de>

Dear Arnd,
I have turned to use out_be32. My system works quite well now. Thanks for 
your suggestions. :)

BR
Ming


>From: Arnd Bergmann <arnd@arndb.de>
>To: "Ming Liu" <eemingliu@hotmail.com>
>CC: domen.puncer@telargo.com, linuxppc-embedded@ozlabs.org
>Subject: Re: a question on "iowrite32()"
>Date: Thu, 7 Jun 2007 16:09:18 +0200
>
>On Thursday 07 June 2007, Ming Liu wrote:
> > >Since of_iomap() is rather new and hardly used by any drivers, we
> > >could still redefine it so that you would use iowrite32{,be}() instead
> > >of out_{be,le}32, but currently that doesn't work.
> >
> > So if I am correct, your suggestion is to use iowrite32be() in my 
device
> > driver, right?
>
>What I was saying is that iowrite32be is broken for other reasons, as it
>is only defined for PCI and ISA devices and you should _not_ use it,
>even if it solves the endianess problem.
>
>What you should use is out_be32().
>
> > However, I cannot find such a function defined in my 2.6.10 kernel.
> > Isn't iowrite32be() a standard IO function like iowrite32(), or there 
is
> > a patch to export this function?
>
>It's a standard function, is was added less than two years ago.
>You should really consider upgrading to a recent kernel version for
>a number of reasons, but they are all unrelated to your current problem 
;-)
>
>	Arnd <><

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

      reply	other threads:[~2007-06-08 13:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-06 19:30 a question on "iowrite32()" Ming Liu
2007-06-07  6:20 ` Domen Puncer
2007-06-07 10:01   ` Arnd Bergmann
2007-06-07 11:20     ` Ming Liu
2007-06-07 14:09       ` Arnd Bergmann
2007-06-08 13:51         ` Ming Liu [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=BAY138-F14C8777C9DA602F253346CB2250@phx.gbl \
    --to=eemingliu@hotmail.com \
    --cc=arnd@arndb.de \
    --cc=domen.puncer@telargo.com \
    --cc=linuxppc-embedded@ozlabs.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