]> git.baikalelectronics.ru Git - kernel.git/commit
of/device: Add input id to of_dma_configure()
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 19 Jun 2020 08:20:08 +0000 (09:20 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 28 Jul 2020 14:51:32 +0000 (15:51 +0100)
commit12cd424b066617f96c68d6530e7f4b86f4651bc2
tree32306cdac3207084afe1dc56d04d96ef18528fa1
parent55ee9a74c75ea729d6bb39348ebd0753e689ae06
of/device: Add input id to of_dma_configure()

Devices sitting on proprietary busses have a device ID space that
is owned by the respective bus and related firmware bindings. In order
to let the generic OF layer handle the input translations to
an IOMMU id, for such busses the current of_dma_configure() interface
should be extended in order to allow the bus layer to provide the
device input id parameter - that is retrieved/assigned in bus
specific code and firmware.

Augment of_dma_configure() to add an optional input_id parameter,
leaving current functionality unchanged.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20200619082013.13661-8-lorenzo.pieralisi@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/bus/fsl-mc/fsl-mc-bus.c
drivers/iommu/of_iommu.c
drivers/of/device.c
include/linux/of_device.h
include/linux/of_iommu.h