diff options
author | Guanhua Gao <[email protected]> | 2023-09-26 10:04:45 -0400 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2023-10-10 17:40:05 +0200 |
commit | 81ef01bc5934f46204a199cd0e37d3fb2b10f342 (patch) | |
tree | 7218038e5bf849d225f6794e327831043215cc8d /drivers/pci/controller | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) |
PCI: layerscape-ep: Set 64-bit DMA mask
Set DMA mask and coherent DMA mask to enable 64-bit addressing.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guanhua Gao <[email protected]>
Signed-off-by: Hou Zhiqiang <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Manivannan Sadhasivam <[email protected]>
Acked-by: Roy Zang <[email protected]>
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r-- | drivers/pci/controller/dwc/pci-layerscape-ep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c b/drivers/pci/controller/dwc/pci-layerscape-ep.c index b1faf41a2fae..3d3c50ef4b6f 100644 --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c @@ -266,6 +266,8 @@ static int __init ls_pcie_ep_probe(struct platform_device *pdev) pcie->big_endian = of_property_read_bool(dev->of_node, "big-endian"); + dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); + platform_set_drvdata(pdev, pcie); offset = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP); |