dma-mapping: move dma configuration to bus infrastructure
authorNipun Gupta <nipun.gupta@nxp.com>
Sat, 28 Apr 2018 02:51:58 +0000 (08:21 +0530)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 May 2018 14:22:18 +0000 (16:22 +0200)
commit07397df29e57cde5799af16e8f148ae10ed75285
tree7f4e2606ec8d6a26a5433cb4dac32338178092fd
parent892a0be43edd63e1cd228af3453a064e9e94f08e
dma-mapping: move dma configuration to bus infrastructure

ACPI/OF support for configuration of DMA is a bus specific aspect, and
thus should be configured by the bus.  Introduces a 'dma_configure' bus
method so that busses can control their DMA capabilities.

Also update the PCI, Platform, ACPI and host1x buses to use the new
method.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com> # PCI parts
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[hch: simplified host1x_dma_configure based on a comment from Thierry,
      rewrote changelog]
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/amba/bus.c
drivers/base/dma-mapping.c
drivers/base/platform.c
drivers/gpu/host1x/bus.c
drivers/pci/pci-driver.c
include/linux/device.h
include/linux/platform_device.h