Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-10-27 Thread Tomeu Vizoso
On 24 October 2015 at 15:57, Rafael J. Wysocki wrote: > On Thursday, October 22, 2015 03:01:45 PM Tomeu Vizoso wrote: >> On 22 October 2015 at 03:02, Rafael J. Wysocki wrote: >> > On Monday, September 21, 2015 04:02:43 PM Tomeu Vizoso wrote: >> >> When

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-10-27 Thread Rafael J. Wysocki
On Tuesday, October 27, 2015 03:48:40 PM Tomeu Vizoso wrote: > On 24 October 2015 at 15:57, Rafael J. Wysocki wrote: [...] > > > > Well, once that has happened, your new device pointer in the given > > device_node > > becomes useless. Why exactly is that fine? > > Why do

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-10-27 Thread Rob Herring
On Tue, Oct 27, 2015 at 10:43 AM, Rafael J. Wysocki wrote: > On Tuesday, October 27, 2015 03:48:40 PM Tomeu Vizoso wrote: >> On 24 October 2015 at 15:57, Rafael J. Wysocki wrote: > > [...] > >> > >> > Well, once that has happened, your new device pointer

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-10-24 Thread Rafael J. Wysocki
On Thursday, October 22, 2015 03:01:45 PM Tomeu Vizoso wrote: > On 22 October 2015 at 03:02, Rafael J. Wysocki wrote: > > On Monday, September 21, 2015 04:02:43 PM Tomeu Vizoso wrote: > >> When adding platform and AMBA devices, set the device node's device > >> member to point

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-10-22 Thread Tomeu Vizoso
On 22 October 2015 at 03:02, Rafael J. Wysocki wrote: > On Monday, September 21, 2015 04:02:43 PM Tomeu Vizoso wrote: >> When adding platform and AMBA devices, set the device node's device >> member to point to it. >> >> This speeds lookups considerably and is safe because we

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-10-21 Thread Rafael J. Wysocki
On Monday, September 21, 2015 04:02:43 PM Tomeu Vizoso wrote: > When adding platform and AMBA devices, set the device node's device > member to point to it. > > This speeds lookups considerably and is safe because we only create one > of these devices for any given device node. > >

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-09-22 Thread Tomeu Vizoso
On 22 September 2015 at 02:39, Rob Herring wrote: > On Mon, Sep 21, 2015 at 9:02 AM, Tomeu Vizoso > wrote: >> When adding platform and AMBA devices, set the device node's device >> member to point to it. >> >> This speeds lookups considerably and is

Re: [PATCH v6 03/22] of/platform: Point to struct device from device node

2015-09-21 Thread Rob Herring
On Mon, Sep 21, 2015 at 9:02 AM, Tomeu Vizoso wrote: > When adding platform and AMBA devices, set the device node's device > member to point to it. > > This speeds lookups considerably and is safe because we only create one > of these devices for any given device node.

[PATCH v6 03/22] of/platform: Point to struct device from device node

2015-09-21 Thread Tomeu Vizoso
When adding platform and AMBA devices, set the device node's device member to point to it. This speeds lookups considerably and is safe because we only create one of these devices for any given device node. Signed-off-by: Tomeu Vizoso --- Changes in v5: - Set the