Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1525434

Re: [PATCH v8 05/16] drivers: iommu: arm-smmu: convert struct device of_node to fwnode usage

From Will Deacon <will.deacon@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v8 05/16] drivers: iommu: arm-smmu: convert struct device of_node to fwnode usage
Date 2016-11-18 16:00 +0100
Message-ID <sESNY-8ud-35@gated-at.bofh.it> (permalink)
References <sEajT-4Eo-3@gated-at.bofh.it> <sEatA-4HA-55@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Nov 16, 2016 at 03:29:25PM +0000, Lorenzo Pieralisi wrote:
> Current ARM SMMU driver rely on the struct device.of_node pointer for
> device look-up and iommu_ops retrieval.
> 
> In preparation for ACPI probing enablement, convert the driver to use
> the struct device.fwnode member for device and iommu_ops look-up so that
> the driver infrastructure can be used also on systems that do not
> associate an of_node pointer to a struct device (eg ACPI), making the
> device look-up and iommu_ops retrieval firmware agnostic.
> 
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
> Reviewed-by: Tomasz Nowicki <tn@semihalf.com>
> Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
> Tested-by: Tomasz Nowicki <tn@semihalf.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Hanjun Guo <hanjun.guo@linaro.org>
> Cc: Robin Murphy <robin.murphy@arm.com>
> ---
>  drivers/iommu/arm-smmu.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)

Acked-by: Will Deacon <will.deacon@arm.com>

Will

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v8 00/16] ACPI IORT ARM SMMU support Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
  [PATCH v8 11/16] drivers: iommu: arm-smmu-v3: add IORT configuration Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
    Re: [PATCH v8 11/16] drivers: iommu: arm-smmu-v3: add IORT  configuration Will Deacon <will.deacon@arm.com> - 2016-11-18 17:00 +0100
  [PATCH v8 07/16] drivers: acpi: implement acpi_dma_configure Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
  [PATCH v8 08/16] drivers: acpi: iort: add node match function Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
  [PATCH v8 01/16] drivers: acpi: add FWNODE_ACPI_STATIC fwnode type Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
  [PATCH v8 06/16] drivers: iommu: arm-smmu-v3: convert struct device of_node to fwnode usage Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
    Re: [PATCH v8 06/16] drivers: iommu: arm-smmu-v3: convert struct  device of_node to fwnode usage Will Deacon <will.deacon@arm.com> - 2016-11-18 16:00 +0100
  [PATCH v8 14/16] drivers: acpi: iort: replace rid map type with type mask Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:30 +0100
  [PATCH v8 04/16] drivers: iommu: make of_iommu_set/get_ops() DT agnostic Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100
    Re: [PATCH v8 04/16] drivers: iommu: make of_iommu_set/get_ops() DT  agnostic Will Deacon <will.deacon@arm.com> - 2016-11-18 15:50 +0100
  [PATCH v8 03/16] drivers: acpi: iort: add support for IOMMU fwnode registration Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100
  [PATCH v8 16/16] drivers: acpi: iort: introduce iort_iommu_configure Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100
  [PATCH v8 09/16] drivers: acpi: iort: add support for ARM SMMU platform devices creation Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100
  [PATCH v8 10/16] drivers: iommu: arm-smmu-v3: split probe functions into DT/generic portions Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100
    Re: [PATCH v8 10/16] drivers: iommu: arm-smmu-v3: split probe  functions into DT/generic portions Will Deacon <will.deacon@arm.com> - 2016-11-18 16:50 +0100
  [PATCH v8 05/16] drivers: iommu: arm-smmu: convert struct device of_node to fwnode usage Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100
    Re: [PATCH v8 05/16] drivers: iommu: arm-smmu: convert struct device  of_node to fwnode usage Will Deacon <will.deacon@arm.com> - 2016-11-18 16:00 +0100
  [PATCH v8 15/16] drivers: acpi: iort: add single mapping function Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-11-16 16:40 +0100

csiph-web