All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org
Cc: Sean MacLennan <smaclennan@pikatech.com>
Subject: Re: [PATCH] i2c-ibm_iic driver bonus patch
Date: Tue, 19 Feb 2008 04:27:19 +0100	[thread overview]
Message-ID: <200802190427.19763.arnd@arndb.de> (raw)
In-Reply-To: <47BA38C1.6040609@pikatech.com>

On Tuesday 19 February 2008, Sean MacLennan wrote:
>  I left in the volatiles, since I don't 
> understand why they where needed. The memory always seems to be access 
> with in_8 and out_8, which are declared volatile. But they could be 
> there to fix a very specific bug.

It's very unlikely that they were really needed, and you certainly
shouldn't mark data as volatile in new code. It's very common to
mark I/O data structures as volatile when they should be __iomem,
because that's what people learn at university, but that is never
the right solution, even if it can hide other bugs in your code.

Of course, unlike the other changes in your patch, it does impact
code generation, so if you want to change it, that should be a
separate patch.

	Arnd <><

      reply	other threads:[~2008-02-19  3:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-05  2:57 [PATCH] i2c-ibm_iic driver Sean MacLennan
2008-01-05 11:24 ` Arnd Bergmann
2008-01-05 12:49   ` Stefan Roese
2008-01-05 12:54     ` Arnd Bergmann
2008-01-05 12:58       ` Stefan Roese
2008-01-05 18:36       ` Sean MacLennan
2008-01-05 19:18         ` Arnd Bergmann
2008-01-06  0:12           ` David Gibson
2008-01-08  2:03             ` [PATCH] i2c-ibm_iic driver - new patch Sean MacLennan
2008-01-08  4:52               ` Stephen Rothwell
2008-01-08  5:56                 ` Sean MacLennan
2008-01-08  6:36                   ` Stephen Rothwell
2008-01-08 18:35                     ` Sean MacLennan
2008-01-08 19:33                       ` Stefan Roese
2008-01-08 16:40                   ` Scott Wood
2008-01-05 18:32     ` [PATCH] i2c-ibm_iic driver Sean MacLennan
2008-01-05 18:30   ` Sean MacLennan
2008-01-08  1:16   ` Sean MacLennan
2008-02-19  2:02 ` [PATCH] i2c-ibm_iic driver bonus patch Sean MacLennan
2008-02-19  3:27   ` Arnd Bergmann [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=200802190427.19763.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=smaclennan@pikatech.com \
    /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.