Skip to content

Commit 81ef01b

Browse files
Guanhua GaoLorenzo Pieralisi
authored andcommitted
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]>
1 parent 0bb80ec commit 81ef01b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/controller/dwc/pci-layerscape-ep.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ static int __init ls_pcie_ep_probe(struct platform_device *pdev)
266266

267267
pcie->big_endian = of_property_read_bool(dev->of_node, "big-endian");
268268

269+
dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64));
270+
269271
platform_set_drvdata(pdev, pcie);
270272

271273
offset = dw_pcie_find_capability(pci, PCI_CAP_ID_EXP);

0 commit comments

Comments
 (0)