public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: David Brownell <david-b@pacbell.net>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 2.6.30-rc3] platform_bus:  remove "which platform_data?" confusion
Date: Tue, 28 Apr 2009 20:24:46 -0700	[thread overview]
Message-ID: <20090429032446.GC23062@kroah.com> (raw)
In-Reply-To: <200904280228.07346.david-b@pacbell.net>

On Tue, Apr 28, 2009 at 02:28:07AM -0700, David Brownell wrote:
> No comment on the bugfix part of $SUBJECT patch?

Well, no, I'm assuming it is correct :)

Should I just revert the original change, if the fact that busses are
using the platform_data field?

> On Monday 27 April 2009, Greg KH wrote:
> > 
> > > Those patches seem to support what I think is a misguided
> > > notion:  that somehow device.platform_data might move into
> > > the platform_device.  The problem with that idea is that it's
> > > a general purpose hook, and is used by other busses to provide
> > > board-specific configuration data ... not just for platform_bus.
> > 
> > It is?  What other busses do this?
> 
> SPI and I2C come quickly to mind...
> 
> Basically, *any* bus that could ever be used on an embedded
> system may need platform_data to explain how each discrete
> chip has been wired up on that particular board.  Very few
> such busses can self-enumerate like PCI or USB.  And most of
> the chips sitting on such busses expect to interface to fairly
> random external hardware.
> 
> And come to think of it, I've seen cases with PCI and USB
> where board-specific config data is needed.  PCI doesn't
> always wrap it up in some ACPI bytecode, and sometimes USB
> devices use "transceiverless link" hookup, so the board
> can just hook up using a differential pair.
> 
> SDIO/MMC doesn't tend to need it though, even for SDIO
> WLAN or MMC/SD storage links (eMMC, CE-ATA, etc).
> 
> 
> > And why, can't they use their own bus private data pointers?
> 
> ENOPATCH.  ;)
> 
> Though ... since devices on *any* bus may need this, I
> don't much see the point of modifying every bus like that.

Fair enough, no objection from me.

thanks,

greg k-h

  reply	other threads:[~2009-04-29  3:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28  2:43 [patch 2.6.30-rc3] platform_bus: remove "which platform_data?" confusion David Brownell
2009-04-28  5:07 ` Greg KH
2009-04-28  9:28   ` David Brownell
2009-04-29  3:24     ` Greg KH [this message]
2009-04-29  5:01       ` David Brownell
2009-04-29  4:08 ` Greg KH
2009-04-29 12:08   ` Ming Lei
2009-04-29 18:16     ` Greg KH
2009-04-29 23:53       ` Ming Lei

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=20090429032446.GC23062@kroah.com \
    --to=greg@kroah.com \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.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