summaryrefslogtreecommitdiff
path: root/arch/x86/pci
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2016-03-02 15:31:04 -0700
committerBjorn Helgaas <bhelgaas@google.com>2016-03-10 14:53:42 -0600
commitd068c350c0486ba9011abb6f91cdc0c12b522155 (patch)
tree48d5bde7e9ffcfb85a6e6a8d65d749190119ec96 /arch/x86/pci
parent83cc54a608b66d3fffa7355503263d20f491bb44 (diff)
x86/PCI: VMD: Set bus resource start to 0
The bus always starts at 0. Due to alignment and down-casting, this happened to work before, but looked alarmingly incorrect in kernel logs. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r--arch/x86/pci/vmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/vmd.c b/arch/x86/pci/vmd.c
index 29aebbcb510b..a08183e604d1 100644
--- a/arch/x86/pci/vmd.c
+++ b/arch/x86/pci/vmd.c
@@ -527,7 +527,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd)
res = &vmd->dev->resource[VMD_CFGBAR];
vmd->resources[0] = (struct resource) {
.name = "VMD CFGBAR",
- .start = res->start,
+ .start = 0,
.end = (resource_size(res) >> 20) - 1,
.flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED,
};