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/of/of_reserved_mem.c | |
parent | dma-mapping: move dma configuration to bus infrastructure (diff) | |
download | linux-3d6ce86ee79465e1b1b6e287f8ea26b553fc768e.tar.xz linux-3d6ce86ee79465e1b1b6e287f8ea26b553fc768e.zip |
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/of/of_reserved_mem.c')
-rw-r--r-- | drivers/of/of_reserved_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 9a4f4246231d..895c83e0c7b6 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -353,7 +353,7 @@ int of_reserved_mem_device_init_by_idx(struct device *dev, /* ensure that dma_ops is set for virtual devices * using reserved memory */ - of_dma_configure(dev, np); + of_dma_configure(dev, np, true); dev_info(dev, "assigned reserved memory node %s\n", rmem->name); } else { |