public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: Russell King <rmk+lkml@arm.linux.org.uk>, linux-kernel@vger.kernel.org
Subject: Re: what's a platform device?
Date: Wed, 22 Feb 2006 20:39:37 -0800	[thread overview]
Message-ID: <20060223043937.GA7204@kroah.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0602221517370.21264-100000@gate.crashing.org>

On Wed, Feb 22, 2006 at 03:47:40PM -0600, Kumar Gala wrote:
> Guys,
> 
> I was hoping to get your opinion on a question I had.  The question comes 
> down to what we think a "platform device" is.
> 
> The situation I have is an FPGA connected over PCI.  The FPGA implements
> various device functionality (serial ports, I2C controller, IR, etc.) as a
> single PCI device/function.  The FPGA breaks any notion of a true PCI
> device, it uses PCI as a device interconnect more than anything else.
> 
> In talking to Greg about this, he suggested I just create a new bus_type
> for this similar to what is being done for usb-serial.  As I started to
> think about what I wanted ended up being a platform_device plus a sysfs
> entry for the MMIO region.
> 
> So, it seems that a "platform device" is a pretty generic concept now.  Do 
> you guys thing its acceptable to use a platform device for my needs or 
> should I create some new bus_type?  Do we have a better definition of what 
> a platform device is or might be?

Well, your FPGA is a pci device, right?  It's only the devices that hang
off of it that you are concerned about.  I really think you should make
your own bus type, as it's not much work, and it would not disturb the
existing platform devices, which do not know about mmio regions like
PCI.

thanks,

greg k-h

  reply	other threads:[~2006-02-23  4:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-22 21:47 what's a platform device? Kumar Gala
2006-02-23  4:39 ` Greg KH [this message]
2006-02-23  4:55   ` Kumar Gala
2006-02-23  5:13     ` Greg KH
2006-02-23  7:04       ` Kumar Gala
2006-02-23 19:30         ` Kumar Gala
2006-02-24  1:42           ` Greg KH
2006-02-27 22:25             ` Kumar Gala
2006-03-02 15:39               ` Russell King
2006-02-23  9:33 ` Russell King
2006-02-23 16:13   ` Kumar Gala

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=20060223043937.GA7204@kroah.com \
    --to=greg@kroah.com \
    --cc=galak@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@arm.linux.org.uk \
    /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