All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 09/11] ARM/PPC: add a common way to access registers
Date: Tue, 26 Jan 2010 10:09:08 +0100	[thread overview]
Message-ID: <4B5EB134.6090403@denx.de> (raw)
In-Reply-To: <20100125230425.86A1BD334C9@gemini.denx.de>

Wolfgang Denk wrote:

 >> +/* Clear and set bits in one shot. These macros can be used to
clear and
>> + * set multiple bits in a register using a single call. These macros can
>> + * also be used to set a multiple-bit bit pattern using a mask, by
>> + * specifying the mask in the 'clear' parameter and the new bit pattern
>> + * in the 'set' parameter.
>> + */
> 
> Incorrect multi-line comment style.

Sorry, you have already found this point. I forgot to change it.

> What exactly is the definition of a "register" here? Is this memory
> mapped I/O?

Yes, they are.

> 
> and - should we really invent our own, private way of doing this?
> Should we not rather reuse definitions already present in Linux?
> 
> How about using ioread*()/iowrite*() instead?

You are right. I will replace them.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-01-26  9:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20 17:22 [U-Boot] [PATCH V3 09/11] ARM/PPC: add a common way to access registers Stefano Babic
2010-01-25 23:04 ` Wolfgang Denk
2010-01-26  9:09   ` Stefano Babic [this message]
2010-02-05 14:07 ` [U-Boot] [PATCH V4 09/11] ARM: add accessors functions Stefano Babic

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=4B5EB134.6090403@denx.de \
    --to=sbabic@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.