mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Underwood <basicmark@yahoo.com>
To: Greg KH <greg@kroah.com>, Vitaly Wool <vitalywool@gmail.com>
Cc: i2c@lm-sensors.org, linux-arm-kernel@lists.arm.linux.org.uk,
	linux-kernel@vger.kernel.org
Subject: Re: [i2c] [PATCH] I2C bus driver for Philips ARM boards
Date: Thu, 22 Jun 2006 23:26:00 +0100 (BST)	[thread overview]
Message-ID: <20060622222600.49601.qmail@web36915.mail.mud.yahoo.com> (raw)
In-Reply-To: <20060622203559.GA14445@kroah.com>


--- Greg KH <greg@kroah.com> wrote:

> On Fri, Jun 23, 2006 at 12:17:55AM +0400, Vitaly Wool wrote:
> > On 6/22/06, Greg KH <greg@kroah.com> wrote:
> > >
> > >> +static inline int i2c_pnx_bus_busy(volatile struct i2c_regs *master)
> > >> +{
> > >> +     long timeout;
> > >> +
> > >> +     timeout = TIMEOUT * 10000;
> > >> +     if (timeout > 0 && (master->sts & mstatus_active)) {
> > >
> > >A big hint about this, if you have volatile in your driver, it's
> > >wrong...
> > 
> > 
> > Well, I do remember flames on the subject... Still __raw_readl also uses
> > volatile.
> > Anyway, I can't disagree that ioreadX-based register access are better.
> > Greg, is there anything else I should take care of before re-sending the
> > patch, except for the things that you and Ben pointed out?
> 
> Not that I can think of, that would be a good starting point :)

Would it not make sense to call this driver ip3204 or ph_ip3204 or some such seeing as you
correctly point out that this is a common Philips IP block and is used in other, non pnx, chips?

I'm also not sure why the register map is in the arch-pnx4008 directory as this will require every
chip that has this IP block to have a copy of the file.

Mark

> 
> thanks,
> 
> greg k-h
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 



	
	
		
___________________________________________________________ 
Win tickets to the 2006 FIFA World Cup Germany with Yahoo! Messenger. http://advision.webevents.yahoo.com/fifaworldcup_uk/

  reply	other threads:[~2006-06-22 22:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 11:31 Vitaly Wool
2006-06-22 11:45 ` Ben Dooks
2006-06-22 12:08   ` Vitaly Wool
2006-06-22 18:39 ` [i2c] " Greg KH
     [not found]   ` <acd2a5930606221317w6432aefcsf4569fca3b59ebcd@mail.gmail.com>
2006-06-22 20:35     ` Greg KH
2006-06-22 22:26       ` Mark Underwood [this message]
2006-06-23  9:38         ` Vitaly Wool
2006-06-23 12:16           ` Mark Underwood

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=20060622222600.49601.qmail@web36915.mail.mud.yahoo.com \
    --to=basicmark@yahoo.com \
    --cc=greg@kroah.com \
    --cc=i2c@lm-sensors.org \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vitalywool@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®