summaryrefslogtreecommitdiffstats
path: root/drivers/pci/xen-pcifront.c
diff options
context:
space:
mode:
authorClaire Chang <tientzu@chromium.org>2021-06-19 05:40:36 +0200
committerKonrad Rzeszutek Wilk <konrad@kernel.org>2021-07-14 02:04:41 +0200
commit6f2beb268a5d35504a636c4a3b7aaa76ec32d96c (patch)
treeaff684fdf7ca87ab1c74c84aa0c0b0c7a6d59f19 /drivers/pci/xen-pcifront.c
parentswiotlb: Update is_swiotlb_buffer to add a struct device argument (diff)
downloadlinux-6f2beb268a5d35504a636c4a3b7aaa76ec32d96c.tar.xz
linux-6f2beb268a5d35504a636c4a3b7aaa76ec32d96c.zip
swiotlb: Update is_swiotlb_active to add a struct device argument
Update is_swiotlb_active to add a struct device argument. This will be useful later to allow for different pools. Signed-off-by: Claire Chang <tientzu@chromium.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Tested-by: Stefano Stabellini <sstabellini@kernel.org> Tested-by: Will Deacon <will@kernel.org> Acked-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/pci/xen-pcifront.c')
-rw-r--r--drivers/pci/xen-pcifront.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/xen-pcifront.c b/drivers/pci/xen-pcifront.c
index b7a8f3a1921f..0d56985bfe81 100644
--- a/drivers/pci/xen-pcifront.c
+++ b/drivers/pci/xen-pcifront.c
@@ -693,7 +693,7 @@ static int pcifront_connect_and_init_dma(struct pcifront_device *pdev)
spin_unlock(&pcifront_dev_lock);
- if (!err && !is_swiotlb_active()) {
+ if (!err && !is_swiotlb_active(&pdev->xdev->dev)) {
err = pci_xen_swiotlb_init_late();
if (err)
dev_err(&pdev->xdev->dev, "Could not setup SWIOTLB!\n");