Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Sudeep Holla
On Wed, Jul 04, 2018 at 12:17:20PM +0200, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Sudeep Holla wrote: > > [...] > >+1 on NACK for this and anything else that abuse PRP0001 as a short cut > >approach. > > This is no abuse but exactly what PRP0001 is meant for. The basic idea of > PRP0001 is to

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 1:17 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Sudeep Holla wrote: On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: +1 on NACK for this and anything else that abuse PRP0001

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Rafael J. Wysocki
On Wed, Jul 4, 2018 at 12:24 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 1:17 PM, Nikolaus Voss > wrote: >> On Wed, 4 Jul 2018, Sudeep Holla wrote: >>> On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: > >>> +1 on NACK for this and

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 1:17 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Sudeep Holla wrote: >> On 04/07/18 10:32, Andy Shevchenko wrote: >>> On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam >>> wrote: >> +1 on NACK for this and anything else that abuse PRP0001 as a short cut >> approach. > This

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Sudeep Holla wrote: On 04/07/18 10:32, Andy Shevchenko wrote: On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: Hi Sudeep, Andy, Yes, This patch is to get of_device_id and then fetch data pointer. To add ACPI support in multiple drivers which are device-tree based and

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Srinath Mannam
Hi Sudeep, Andy, Thank you for all the valuable information and knowledge. Regards, Srinath. On Wed, Jul 4, 2018 at 3:08 PM, Sudeep Holla wrote: > > > On 04/07/18 10:32, Andy Shevchenko wrote: >> On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam >> wrote: >>> Hi Sudeep, Andy, >>> >>> Yes, This pa

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Sudeep Holla
On 04/07/18 10:32, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam > wrote: >> Hi Sudeep, Andy, >> >> Yes, This patch is to get of_device_id and then fetch data pointer. >> >> To add ACPI support in multiple drivers which are device-tree based >> and has list of of_devic

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-04 Thread Andy Shevchenko
On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam wrote: > Hi Sudeep, Andy, > > Yes, This patch is to get of_device_id and then fetch data pointer. > > To add ACPI support in multiple drivers which are device-tree based > and has list of of_device_ids, by using this function > very minimal changes an

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-03 Thread Srinath Mannam
Hi Sudeep, Andy, Yes, This patch is to get of_device_id and then fetch data pointer. To add ACPI support in multiple drivers which are device-tree based and has list of of_device_ids, by using this function very minimal changes and can avoid acpi_device_id list in the driver. I will send driver c

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-03 Thread Andy Shevchenko
On Tue, Jul 3, 2018 at 12:22 PM, Srinath Mannam wrote: > This patch provides a function, to get of_device_id after > matching with ACPI device _DSD object compatible property > in the case driver does not contain acpi_device_id list > and driver probe called for ACPI device ID PRP0001 with > compa

Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-03 Thread Sudeep Holla
On Tue, Jul 03, 2018 at 02:52:40PM +0530, Srinath Mannam wrote: > This patch provides a function, to get of_device_id after > matching with ACPI device _DSD object compatible property > in the case driver does not contain acpi_device_id list > and driver probe called for ACPI device ID PRP0001 with

[RFC PATCH] ACPI: bus: match of_device_id using acpi device

2018-07-03 Thread Srinath Mannam
This patch provides a function, to get of_device_id after matching with ACPI device _DSD object compatible property in the case driver does not contain acpi_device_id list and driver probe called for ACPI device ID PRP0001 with compatible property match with of_device_id compatible. Signed-off-by: