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>
Showing
- drivers/amba/bus.c 4 additions, 0 deletionsdrivers/amba/bus.c
- drivers/base/dma-mapping.c 4 additions, 27 deletionsdrivers/base/dma-mapping.c
- drivers/base/platform.c 17 additions, 0 deletionsdrivers/base/platform.c
- drivers/gpu/host1x/bus.c 6 additions, 0 deletionsdrivers/gpu/host1x/bus.c
- drivers/pci/pci-driver.c 32 additions, 0 deletionsdrivers/pci/pci-driver.c
- include/linux/device.h 4 additions, 0 deletionsinclude/linux/device.h
- include/linux/platform_device.h 2 additions, 0 deletionsinclude/linux/platform_device.h
Loading
Please register or sign in to comment