aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/ibmphp_hpc.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2018-01-11 14:00:57 +0530
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-01-11 10:06:34 +0000
commitb330104fa76df3eae6e199a23791fed5d35f06b4 (patch)
treeced5238bb496c9bc67c84e33cdf679b324924790 /drivers/pci/hotplug/ibmphp_hpc.c
parenta134a457ed985dca8cce7ac4ea66129ea70eba73 (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/64d63468-d28f-8fcd-a6f3-cf2a6401c8cb@ti.com Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> [lorenzo.pieralisi@arm.com: tweaked commit log] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Rob Herring <robh@kernel.org> Cc: Christoph Hellwig <hch@lst.de> Tested-by: Cyrille Pitchen <cyrille.pitchen@free-electrons.com> Tested-by: Niklas Cassel <niklas.cassel@axis.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
0 files changed, 0 insertions, 0 deletions