PCI: endpoint: Use of_dma_configure() to set initial DMA mask
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Aug 2017 14:57:53 +0000 (20:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 18 Aug 2017 15:41:20 +0000 (10:41 -0500)
commit64c1a02aecd599bd2d920a01e103235e483fbc89
tree3e4dbb35d643a970e00018ba20f665aeb14f18d1
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
PCI: endpoint: Use of_dma_configure() to set initial DMA mask

Use of_dma_configure() to set the initial DMA mask of EPF device. This
helps to get rid of "Coherent DMA mask 0x0 (pfn 0x0-0x1) covers a smaller
range of system memory than the DMA zone pfn" warning in certain platforms
like TI's K2G resulting in coherent DMA mask not being set.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/pci-epc-core.c