diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-03 16:25:08 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-03 16:25:08 +0200 |
commit | 3d6ce86ee79465e1b1b6e287f8ea26b553fc768e (patch) | |
tree | 5305a5ffefc514d485ae634e9d53b3e601fafbd3 /drivers/dma | |
parent | 07397df29e57cde5799af16e8f148ae10ed75285 (diff) | |
download | op-kernel-dev-3d6ce86ee79465e1b1b6e287f8ea26b553fc768e.zip op-kernel-dev-3d6ce86ee79465e1b1b6e287f8ea26b553fc768e.tar.gz |
drivers: remove force dma flag from buses
With each bus implementing its own DMA configuration callback, there is no
need for bus to explicitly set the force_dma flag. Modify the
of_dma_configure function to accept an input parameter which specifies if
implicit DMA configuration is required when it is not described by the
firmware.
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com> # PCI parts
Reviewed-by: Rob Herring <robh@kernel.org>
[hch: tweaked the changelog a bit]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/qcom/hidma_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 000c7019..d64edeb 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c @@ -398,7 +398,7 @@ static int __init hidma_mgmt_of_populate_channels(struct device_node *np) } of_node_get(child); new_pdev->dev.of_node = child; - of_dma_configure(&new_pdev->dev, child); + of_dma_configure(&new_pdev->dev, child, true); /* * It is assumed that calling of_msi_configure is safe on * platforms with or without MSI support. |