diff options
author | Kishon Vijay Abraham I <[email protected]> | 2018-01-11 14:00:57 +0530 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2018-01-11 10:06:34 +0000 |
commit | b330104fa76df3eae6e199a23791fed5d35f06b4 (patch) | |
tree | ced5238bb496c9bc67c84e33cdf679b324924790 /drivers/fpga/fpga-mgr.c | |
parent | a134a457ed985dca8cce7ac4ea66129ea70eba73 (diff) |
PCI: endpoint: Use EPC's device in dma_alloc_coherent()/dma_free_coherent()
After commit 723288836628 ("of: restrict DMA configuration"),
of_dma_configure() doesn't configure the coherent_dma_mask/dma_mask
of endpoint function device (since it doesn't have a DT node associated
with and hence no dma-ranges property), resulting in
dma_alloc_coherent() (used in pci_epf_alloc_space()) to fail.
Fix it by making dma_alloc_coherent() use EPC's device for allocating
memory address.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
[[email protected]: tweaked commit log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Cc: Robin Murphy <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Tested-by: Cyrille Pitchen <[email protected]>
Tested-by: Niklas Cassel <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions