Re: [PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2013-03-03 Thread Grant Likely
On Wed, 19 Dec 2012 12:18:00 -0700, Jason Gunthorpe wrote: > On Wed, Dec 19, 2012 at 12:54:51PM +, Grant Likely wrote: > > In both cases, the type of transfer is encoded by the BAR address and > > does not get exposed to the child device. Exposing the PCI flags into > > the child bus(es) real

Re: [PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2012-12-19 Thread Jason Gunthorpe
On Wed, Dec 19, 2012 at 12:54:51PM +, Grant Likely wrote: > Then it sounds like you really don't want PCI addressing in the > children. It sounds like the children addresses need to be in the form > [bar#] [offset-from-base-of-bar]. In that case, you need the > appropriate They should be int

Re: [PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2012-12-19 Thread Grant Likely
On Fri, 14 Dec 2012 14:58:14 -0700, Jason Gunthorpe wrote: > On Fri, Dec 14, 2012 at 08:26:29PM +, Grant Likely wrote: > > > > > If the soc_devices are getting triggered on that and they shouldn't be, > > > > then we need a mechanism in the soc_bridge node to kick out of that > > > > behavoi

Re: [PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2012-12-14 Thread Jason Gunthorpe
On Fri, Dec 14, 2012 at 08:26:29PM +, Grant Likely wrote: > > > If the soc_devices are getting triggered on that and they shouldn't be, > > > then we need a mechanism in the soc_bridge node to kick out of that > > > behavoir for its children. > > > > Is this what you were thinking? > > Not r

Re: [PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2012-12-14 Thread Grant Likely
On Mon, 10 Dec 2012 14:51:19 -0700, Jason Gunthorpe wrote: > The intended use for this feature is to let a PCI device declare > itself a 'simple-bus' and then describe additional devices > (such as GPIOs, I2C, etc) nested below itself. > > The devices nested below the PCI device will use 'reg' a

[PATCH] of: Support a PCI device that is compatible with 'simple-bus'

2012-12-10 Thread Jason Gunthorpe
The intended use for this feature is to let a PCI device declare itself a 'simple-bus' and then describe additional devices (such as GPIOs, I2C, etc) nested below itself. The devices nested below the PCI device will use 'reg' addressing with the 5 dw format used by PCI. This is for embedded cases