Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92c0fd17 authored by Stefano Stabellini's avatar Stefano Stabellini Committed by Konrad Rzeszutek Wilk
Browse files

pci-swiotlb-xen: call pci_request_acs only ifdef CONFIG_PCI

parent fbd989b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
}