aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/vmd.c
diff options
context:
space:
mode:
authorJon Derrick <[email protected]>2020-01-21 13:37:46 +0000
committerBjorn Helgaas <[email protected]>2020-01-24 20:54:50 +0000
commit34067c56fa177d3582695da8e3e162ef78cd0371 (patch)
tree2124aa858d799c415257f526e58a44051768f57c /drivers/pci/controller/vmd.c
parentx86/PCI: Add to_pci_sysdata() helper (diff)
downloadkernel-34067c56fa177d3582695da8e3e162ef78cd0371.tar.gz
kernel-34067c56fa177d3582695da8e3e162ef78cd0371.zip
x86/PCI: Expose VMD's pci_dev in struct pci_sysdata
Expose VMD's pci_dev pointer in struct pci_sysdata. This will be used indirectly by intel-iommu.c to find the correct domain. Link: https://lore.kernel.org/r/[email protected] [bhelgaas: commit log] Signed-off-by: Jon Derrick <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Cc: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/pci/controller/vmd.c')
-rw-r--r--drivers/pci/controller/vmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
index 212842263f55..d67ad568af65 100644
--- a/drivers/pci/controller/vmd.c
+++ b/drivers/pci/controller/vmd.c
@@ -679,7 +679,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features)
.parent = res,
};
- sd->vmd_domain = true;
+ sd->vmd_dev = vmd->dev;
sd->domain = vmd_find_free_domain();
if (sd->domain < 0)
return sd->domain;