提交 92c0fd17 编写于 作者: S Stefano Stabellini 提交者: Konrad Rzeszutek Wilk

pci-swiotlb-xen: call pci_request_acs only ifdef CONFIG_PCI

Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 fbd989b1
...@@ -75,8 +75,10 @@ void __init pci_xen_swiotlb_init(void) ...@@ -75,8 +75,10 @@ void __init pci_xen_swiotlb_init(void)
xen_swiotlb_init(1, true /* early */); xen_swiotlb_init(1, true /* early */);
dma_ops = &xen_swiotlb_dma_ops; dma_ops = &xen_swiotlb_dma_ops;
#ifdef CONFIG_PCI
/* Make sure ACS will be enabled */ /* Make sure ACS will be enabled */
pci_request_acs(); pci_request_acs();
#endif
} }
} }
...@@ -92,8 +94,10 @@ int pci_xen_swiotlb_init_late(void) ...@@ -92,8 +94,10 @@ int pci_xen_swiotlb_init_late(void)
return rc; return rc;
dma_ops = &xen_swiotlb_dma_ops; dma_ops = &xen_swiotlb_dma_ops;
#ifdef CONFIG_PCI
/* Make sure ACS will be enabled */ /* Make sure ACS will be enabled */
pci_request_acs(); pci_request_acs();
#endif
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册