Re: arm: new FDT-enabled mainbus

2016-05-02 Thread Jonathan Gray
On Sun, May 01, 2016 at 04:55:02PM +0200, Mark Kettenis wrote: > > Date: Sun, 1 May 2016 13:27:29 +0200 > > From: Patrick Wildt > > > > Hi, > > > > I updated the diff with the feedback received. This basically adds > > a tree-like topology by making mainbus FDT aware and

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Patrick Wildt
On Sun, May 01, 2016 at 05:32:53PM +0200, Vincent Gross wrote: > On Sun, 1 May 2016 13:27:29 +0200 > Patrick Wildt wrote: > > > Hi, > > > > I updated the diff with the feedback received. This basically adds > > a tree-like topology by making mainbus FDT aware and

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Vincent Gross
On Sun, 1 May 2016 13:27:29 +0200 Patrick Wildt wrote: > Hi, > > I updated the diff with the feedback received. This basically adds > a tree-like topology by making mainbus FDT aware and implementing > a simplebus that can span the tree's roots into more branches. > > Next

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Mark Kettenis
> Date: Sun, 1 May 2016 13:27:29 +0200 > From: Patrick Wildt > > Hi, > > I updated the diff with the feedback received. This basically adds > a tree-like topology by making mainbus FDT aware and implementing > a simplebus that can span the tree's roots into more branches. >

Re: arm: new FDT-enabled mainbus

2016-05-01 Thread Patrick Wildt
Hi, I updated the diff with the feedback received. This basically adds a tree-like topology by making mainbus FDT aware and implementing a simplebus that can span the tree's roots into more branches. Next steps (and diffs) are implementing an FDT platform for armv7, similar to imx/omap/... and

Re: arm: new FDT-enabled mainbus

2016-04-17 Thread Mark Kettenis
> Date: Sun, 10 Apr 2016 20:49:48 +0200 > From: Patrick Wildt > > > > /* > > > - * void mainbusattach(struct device *parent, struct device *self, void > > > *aux) > > > + * Usually you should be able to attach devices in the order > > > + * specified in the device tree. Due

Re: arm: new FDT-enabled mainbus

2016-04-10 Thread Patrick Wildt
On Sun, Apr 10, 2016 at 08:15:08PM +0200, Mark Kettenis wrote: > > Date: Sat, 9 Apr 2016 17:32:33 +0200 > > From: Patrick Wildt > > > > On Fri, Apr 08, 2016 at 09:38:25PM +0200, Mark Kettenis wrote: > > > > Date: Fri, 8 Apr 2016 20:26:14 +0200 > > > > From: Patrick Wildt

Re: arm: new FDT-enabled mainbus

2016-04-10 Thread Mark Kettenis
> Date: Sat, 9 Apr 2016 17:32:33 +0200 > From: Patrick Wildt > > On Fri, Apr 08, 2016 at 09:38:25PM +0200, Mark Kettenis wrote: > > > Date: Fri, 8 Apr 2016 20:26:14 +0200 > > > From: Patrick Wildt > > > > > > +void > > > +mainbus_iterate(struct device

Re: arm: new FDT-enabled mainbus

2016-04-09 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 09:38:25PM +0200, Mark Kettenis wrote: > > Date: Fri, 8 Apr 2016 20:26:14 +0200 > > From: Patrick Wildt > > > > +void > > +mainbus_iterate(struct device *self, struct device *match, int node) > > +{ > > + for (; > > + node != 0; > > + node

Re: arm: new FDT-enabled mainbus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 09:38:25PM +0200, Mark Kettenis wrote: > > Date: Fri, 8 Apr 2016 20:26:14 +0200 > > From: Patrick Wildt > > > > +void > > +mainbus_iterate(struct device *self, struct device *match, int node) > > +{ > > + for (; > > + node != 0; > > + node

Re: arm: new FDT-enabled mainbus

2016-04-08 Thread Mark Kettenis
> Date: Fri, 8 Apr 2016 20:26:14 +0200 > From: Patrick Wildt > > +void > +mainbus_iterate(struct device *self, struct device *match, int node) > +{ > + for (; > + node != 0; > + node = OF_peer(node)) > + { > + /* skip nodes that are already

Re: arm: new FDT-enabled mainbus

2016-04-08 Thread Patrick Wildt
On Fri, Apr 08, 2016 at 02:00:54PM +0200, Patrick Wildt wrote: > Hi, > > this diff replaces the ARM mainbus with a new implementation. This > implementation works like the old version if there's no device tree. > > But if there is a device tree, this tree will be used to enumerate > and attach

arm: new FDT-enabled mainbus

2016-04-08 Thread Patrick Wildt
Hi, this diff replaces the ARM mainbus with a new implementation. This implementation works like the old version if there's no device tree. But if there is a device tree, this tree will be used to enumerate and attach all device drivers. Currently drivers kind of depend on each other. This