Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-03-20 Thread Grant Likely
On Thu, 22 Jan 2015 15:49:59 -0600 , Suman Anna wrote: > Hi Grant, > > On 01/13/2015 05:04 PM, Suman Anna wrote: > > On 01/13/2015 04:00 PM, Rob Herring wrote: > >> On Tue, Jan 13, 2015 at 3:25 PM, Suman Anna wrote: > >>> Hi Rob, > >>> > >>> On 01/13/2015 02:38 PM, Rob Herring wrote: > On

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-22 Thread Suman Anna
Hi Grant, On 01/13/2015 05:04 PM, Suman Anna wrote: > On 01/13/2015 04:00 PM, Rob Herring wrote: >> On Tue, Jan 13, 2015 at 3:25 PM, Suman Anna wrote: >>> Hi Rob, >>> >>> On 01/13/2015 02:38 PM, Rob Herring wrote: On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: > Drivers can use of_p

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Suman Anna
On 01/13/2015 04:00 PM, Rob Herring wrote: > On Tue, Jan 13, 2015 at 3:25 PM, Suman Anna wrote: >> Hi Rob, >> >> On 01/13/2015 02:38 PM, Rob Herring wrote: >>> On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: Drivers can use of_platform_populate() to create platform devices for childr

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Rob Herring
On Tue, Jan 13, 2015 at 3:25 PM, Suman Anna wrote: > Hi Rob, > > On 01/13/2015 02:38 PM, Rob Herring wrote: >> On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: >>> Drivers can use of_platform_populate() to create platform devices >>> for children of the device main node, and a complementary API

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Suman Anna
Hi Rob, On 01/13/2015 02:38 PM, Rob Herring wrote: > On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: >> Drivers can use of_platform_populate() to create platform devices >> for children of the device main node, and a complementary API >> of_platform_depopulate() is provided to delete these chi

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Rob Herring
On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: > Drivers can use of_platform_populate() to create platform devices > for children of the device main node, and a complementary API > of_platform_depopulate() is provided to delete these child platform > devices. The of_platform_depopulate() lever

[RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-07 Thread Suman Anna
Drivers can use of_platform_populate() to create platform devices for children of the device main node, and a complementary API of_platform_depopulate() is provided to delete these child platform devices. The of_platform_depopulate() leverages the platform API for performing the cleanup of these de