From 942afaefd14a629178b955ddb5ffbf7a6f7e260a Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Fri, 11 Jul 2008 15:21:17 -0600 Subject: [PATCH] --- yaml --- r: 102287 b: refs/heads/master c: beef3129b3afb74817acff72fda4a9d951e3973e h: refs/heads/master i: 102285: ef7ffd6a74cceb40c958715b4f2f832b4cdc30a9 102283: eba5ecdc512cb134e4f8c7b01e3f8713295ac7c7 102279: cda9ac4a123d3d4988d0b98e8bf4048765011569 102271: 2a3b20fe38f37359b4d29ccfc2b979bae4fc0620 v: v3 --- [refs] | 2 +- trunk/arch/x86/pci/common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 068bea85073e..7b40ef3bef2a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f7a1b86095bf7fd1578ef54067545b9cb7084713 +refs/heads/master: beef3129b3afb74817acff72fda4a9d951e3973e diff --git a/trunk/arch/x86/pci/common.c b/trunk/arch/x86/pci/common.c index d19fd07bafd6..86aff81a0829 100644 --- a/trunk/arch/x86/pci/common.c +++ b/trunk/arch/x86/pci/common.c @@ -32,7 +32,7 @@ struct pci_raw_ops *raw_pci_ext_ops; int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, int reg, int len, u32 *val) { - if (reg < 256 && raw_pci_ops) + if (domain == 0 && reg < 256 && raw_pci_ops) return raw_pci_ops->read(domain, bus, devfn, reg, len, val); if (raw_pci_ext_ops) return raw_pci_ext_ops->read(domain, bus, devfn, reg, len, val); @@ -42,7 +42,7 @@ int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, int reg, int len, u32 val) { - if (reg < 256 && raw_pci_ops) + if (domain == 0 && reg < 256 && raw_pci_ops) return raw_pci_ops->write(domain, bus, devfn, reg, len, val); if (raw_pci_ext_ops) return raw_pci_ext_ops->write(domain, bus, devfn, reg, len, val);