mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
pci-swiotlb-xen: call pci_request_acs only ifdef CONFIG_PCI
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
parent
fbd989b1d7
commit
92c0fd17c0
1 changed files with 4 additions and 0 deletions
|
@ -75,8 +75,10 @@ void __init pci_xen_swiotlb_init(void)
|
|||
xen_swiotlb_init(1, true /* early */);
|
||||
dma_ops = &xen_swiotlb_dma_ops;
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
/* Make sure ACS will be enabled */
|
||||
pci_request_acs();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -92,8 +94,10 @@ int pci_xen_swiotlb_init_late(void)
|
|||
return rc;
|
||||
|
||||
dma_ops = &xen_swiotlb_dma_ops;
|
||||
#ifdef CONFIG_PCI
|
||||
/* Make sure ACS will be enabled */
|
||||
pci_request_acs();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue