Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:25:55PM +0100, Robin Murphy wrote: [...] > > +/** > > + * iort_add_smmu_platform_device() - Allocate a platform device for SMMU > > + * @fwnode: IORT node associated fwnode handle > > + * @node: Pointer to SMMU ACPI IORT node > > + * > > + * Returns: 0 on success, <0

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:25:55PM +0100, Robin Murphy wrote: [...] > > +/** > > + * iort_add_smmu_platform_device() - Allocate a platform device for SMMU > > + * @fwnode: IORT node associated fwnode handle > > + * @node: Pointer to SMMU ACPI IORT node > > + * > > + * Returns: 0 on success, <0

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Robin Murphy
On 09/09/16 15:23, Lorenzo Pieralisi wrote: > In ARM ACPI systems, IOMMU components are specified through static > IORT table entries. In order to create platform devices for the > corresponding ARM SMMU components, IORT kernel code should be made > able to parse IORT table entries and create

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Robin Murphy
On 09/09/16 15:23, Lorenzo Pieralisi wrote: > In ARM ACPI systems, IOMMU components are specified through static > IORT table entries. In order to create platform devices for the > corresponding ARM SMMU components, IORT kernel code should be made > able to parse IORT table entries and create

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Hanjun Guo
On 2016/9/13 16:24, Lorenzo Pieralisi wrote: On Tue, Sep 13, 2016 at 04:15:31PM +0800, Hanjun Guo wrote: [...] +static acpi_status __init iort_match_iommu_callback(struct acpi_iort_node *node, +void *context) +{ +int ret; +struct fwnode_handle *fwnode; + +

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Hanjun Guo
On 2016/9/13 16:24, Lorenzo Pieralisi wrote: On Tue, Sep 13, 2016 at 04:15:31PM +0800, Hanjun Guo wrote: [...] +static acpi_status __init iort_match_iommu_callback(struct acpi_iort_node *node, +void *context) +{ +int ret; +struct fwnode_handle *fwnode; + +

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:15:31PM +0800, Hanjun Guo wrote: [...] > >>+static acpi_status __init iort_match_iommu_callback(struct > >>acpi_iort_node *node, > >>+void *context) > >>+{ > >>+int ret; > >>+struct fwnode_handle *fwnode; > >>+ > >>+fwnode =

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:15:31PM +0800, Hanjun Guo wrote: [...] > >>+static acpi_status __init iort_match_iommu_callback(struct > >>acpi_iort_node *node, > >>+void *context) > >>+{ > >>+int ret; > >>+struct fwnode_handle *fwnode; > >>+ > >>+fwnode =

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Hanjun Guo
On 2016/9/13 15:46, nwatt...@codeaurora.org wrote: On 2016-09-09 10:23, Lorenzo Pieralisi wrote: In ARM ACPI systems, IOMMU components are specified through static IORT table entries. In order to create platform devices for the corresponding ARM SMMU components, IORT kernel code should be made

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Hanjun Guo
On 2016/9/13 15:46, nwatt...@codeaurora.org wrote: On 2016-09-09 10:23, Lorenzo Pieralisi wrote: In ARM ACPI systems, IOMMU components are specified through static IORT table entries. In order to create platform devices for the corresponding ARM SMMU components, IORT kernel code should be made

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread nwatters
On 2016-09-09 10:23, Lorenzo Pieralisi wrote: In ARM ACPI systems, IOMMU components are specified through static IORT table entries. In order to create platform devices for the corresponding ARM SMMU components, IORT kernel code should be made able to parse IORT table entries and create platform

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread nwatters
On 2016-09-09 10:23, Lorenzo Pieralisi wrote: In ARM ACPI systems, IOMMU components are specified through static IORT table entries. In order to create platform devices for the corresponding ARM SMMU components, IORT kernel code should be made able to parse IORT table entries and create platform

[PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-09 Thread Lorenzo Pieralisi
In ARM ACPI systems, IOMMU components are specified through static IORT table entries. In order to create platform devices for the corresponding ARM SMMU components, IORT kernel code should be made able to parse IORT table entries and create platform devices dynamically. This patch adds the

[PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-09 Thread Lorenzo Pieralisi
In ARM ACPI systems, IOMMU components are specified through static IORT table entries. In order to create platform devices for the corresponding ARM SMMU components, IORT kernel code should be made able to parse IORT table entries and create platform devices dynamically. This patch adds the