diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2007-02-13 07:26:20 -0500 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-02-13 07:26:20 -0500 |
commit | 56829d1982b6f1150553c049d372728b9eda5aec (patch) | |
tree | 87f82f60df288579fe53dec2f45164b3636758b0 /arch/i386/pci/mmconfig.c | |
parent | 429d512e532ec9c969aa6f66ddbc542f3a5fe4da (diff) |
[PATCH] mmconfig: fix unreachable_devices()
Currently, unreachable_devices() compares value of mmconfig and value
of conf1. But it doesn't check the device is reachable or not.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386/pci/mmconfig.c')
-rw-r--r-- | arch/i386/pci/mmconfig.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/i386/pci/mmconfig.c b/arch/i386/pci/mmconfig.c index 11be089efd7d..bb1afd9e589d 100644 --- a/arch/i386/pci/mmconfig.c +++ b/arch/i386/pci/mmconfig.c | |||
@@ -136,6 +136,12 @@ static struct pci_raw_ops pci_mmcfg = { | |||
136 | .write = pci_mmcfg_write, | 136 | .write = pci_mmcfg_write, |
137 | }; | 137 | }; |
138 | 138 | ||
139 | int __init pci_mmcfg_arch_reachable(unsigned int seg, unsigned int bus, | ||
140 | unsigned int devfn) | ||
141 | { | ||
142 | return get_base_addr(seg, bus, devfn) != 0; | ||
143 | } | ||
144 | |||
139 | int __init pci_mmcfg_arch_init(void) | 145 | int __init pci_mmcfg_arch_init(void) |
140 | { | 146 | { |
141 | printk(KERN_INFO "PCI: Using MMCONFIG\n"); | 147 | printk(KERN_INFO "PCI: Using MMCONFIG\n"); |