Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-02-02 Thread Agustin Vega-Frias
Hi Rafael, On 2017-01-31 17:10, Rafael J. Wysocki wrote: On Wed, Jan 18, 2017 at 5:46 PM, Agustin Vega-Frias wrote: ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to implement ResourceSource/IRQ domain ma

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-31 Thread Rafael J. Wysocki
On Wed, Jan 18, 2017 at 5:46 PM, Agustin Vega-Frias wrote: > ACPI extended IRQ resources may contain a ResourceSource to specify > an alternate interrupt controller. Introduce acpi_irq_get and use it > to implement ResourceSource/IRQ domain mapping. > > The new API is similar to of_irq_get and all

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Agustin Vega-Frias
On 2017-01-19 07:36, Lorenzo Pieralisi wrote: On Wed, Jan 18, 2017 at 09:45:56PM +0200, Andy Shevchenko wrote: [...] > +/** > + * acpi_irq_get - Look for the ACPI IRQ resource with the given index and > + *use it to initialize the given Linux IRQ resource. > + * @handle ACPI de

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Agustin Vega-Frias
Hi Andy, On 2017-01-18 14:45, Andy Shevchenko wrote: On Wed, Jan 18, 2017 at 9:04 PM, Agustin Vega-Frias wrote: [...] + */ +static struct fwnode_handle * +acpi_get_irq_source_fwhandle(const struct acpi_resource_source *source) +{ + struct fwnode_handle *result; + struct acpi_d

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Lorenzo Pieralisi
On Wed, Jan 18, 2017 at 09:45:56PM +0200, Andy Shevchenko wrote: [...] > > +/** > > + * acpi_irq_get - Look for the ACPI IRQ resource with the given index and > > + *use it to initialize the given Linux IRQ resource. > > + * @handle ACPI device handle > > + * @index ACPI IRQ reso

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Andy Shevchenko
On Wed, Jan 18, 2017 at 9:04 PM, Agustin Vega-Frias wrote: > ACPI extended IRQ resources may contain a ResourceSource to specify > an alternate interrupt controller. Introduce acpi_irq_get and use it > to implement ResourceSource/IRQ domain mapping. > > The new API is similar to of_irq_get and all

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Agustin Vega-Frias
ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to implement ResourceSource/IRQ domain mapping. The new API is similar to of_irq_get and allows re-initialization of a platform resource from the ACPI extended I

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Agustin Vega-Frias
Hi Andy, On 2017-01-18 13:00, Andy Shevchenko wrote: On Wed, Jan 18, 2017 at 6:46 PM, Agustin Vega-Frias wrote: ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to implement ResourceSource/IRQ domain mappin

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Andy Shevchenko
On Wed, Jan 18, 2017 at 6:46 PM, Agustin Vega-Frias wrote: > ACPI extended IRQ resources may contain a ResourceSource to specify > an alternate interrupt controller. Introduce acpi_irq_get and use it > to implement ResourceSource/IRQ domain mapping. > > The new API is similar to of_irq_get and all

[PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-18 Thread Agustin Vega-Frias
ACPI extended IRQ resources may contain a ResourceSource to specify an alternate interrupt controller. Introduce acpi_irq_get and use it to implement ResourceSource/IRQ domain mapping. The new API is similar to of_irq_get and allows re-initialization of a platform resource from the ACPI extended I