mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: Re: [PATCH] i2c driver fixes for 2.6.0-test5
Date: Tue, 23 Sep 2003 17:22:58 +0100	[thread overview]
Message-ID: <20030923172258.B19880@infradead.org> (raw)
In-Reply-To: <20030923161929.GB4402@kroah.com>; from greg@kroah.com on Tue, Sep 23, 2003 at 09:19:29AM -0700

On Tue, Sep 23, 2003 at 09:19:29AM -0700, Greg KH wrote:
> Ok, from my reading of this horrible chunk of code it does the
> following:
> 	- if this is a isa based controller, then we check the region
> 	  that is to be used.
> 	- If it is already in use by someone else, then we skip it, and
> 	  move on to the next address.
> 	- If it is not in use, then we pass the address down to the chip
> 	  driver and let it try to find the chip at this address (it
> 	  will do the reserving of the address space on its own.)
> 
> So basically, check_region is pretty valid here, as we are trying to see
> if something else is already at this address, to try to prevent i2c
> drivers from stomping on each other.  I replaced this with a
> request_region()/release_region() pair to get rid of the compiler
> warning.
> 
> Is this your understanding too?  Or do you think we should just get rid
> of the request_region() check here all together?

Yes, either we should get rid of it or move claiming the address to
the i2c midlayer (not sure whether that's a good idea).  But an
opencoded check_region doesn't make any more sense than an explicit
one.  And you're also looking at the pointer it returned after it's
already invalid again..


  reply	other threads:[~2003-09-23 16:23 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <10642734271572@kroah.com>
2003-09-22 23:30 ` Greg KH
2003-09-22 23:30   ` Greg KH
2003-09-22 23:30     ` Greg KH
2003-09-23  8:16   ` Christoph Hellwig
2003-09-23 16:19     ` Greg KH
2003-09-23 16:22       ` Christoph Hellwig [this message]
2003-09-23 19:04         ` Greg KH
2003-09-23 19:08           ` Christoph Hellwig
2003-09-22 23:28 [BK PATCH] " Greg KH
2003-09-22 23:30 ` [PATCH] " Greg KH
2003-09-22 23:30   ` Greg KH
2003-09-22 23:30     ` Greg KH
2003-09-22 23:30       ` Greg KH
2003-09-22 23:30         ` Greg KH
2003-09-22 23:30           ` Greg KH
2003-09-22 23:30             ` Greg KH
2003-09-22 23:30               ` Greg KH
2003-09-22 23:30                 ` Greg KH
2003-09-22 23:30                   ` Greg KH
2003-09-22 23:30                     ` Greg KH
2003-09-22 23:30                       ` Greg KH
2003-09-22 23:30                         ` Greg KH
2003-09-22 23:30                           ` Greg KH
2003-09-22 23:30                             ` Greg KH
2003-09-22 23:30                               ` Greg KH
2003-09-22 23:30                                 ` Greg KH
2003-09-22 23:30                                   ` Greg KH
2003-09-22 23:30                                     ` Greg KH
2003-09-22 23:30                                       ` Greg KH
2003-09-22 23:30                                         ` Greg KH
2003-09-22 23:30                                           ` Greg KH
2003-09-22 23:30                                             ` Greg KH
2003-09-22 23:30                                               ` Greg KH
2003-09-22 23:30                                                 ` Greg KH
2003-09-22 23:30                                                   ` Greg KH
2003-09-22 23:30                                                     ` Greg KH
2003-09-22 23:30                                                       ` Greg KH
2003-09-22 23:30                                                         ` Greg KH

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=20030923172258.B19880@infradead.org \
    --to=hch@infradead.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sensors@stimpy.netroedge.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®