git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
mips
/
pci
/
ops-gt64111.c
diff --git
a/arch/mips/pci/ops-gt64111.c
b/arch/mips/pci/ops-gt64111.c
index
c5b0fc1
..
13de459
100644
(file)
--- a/
arch/mips/pci/ops-gt64111.c
+++ b/
arch/mips/pci/ops-gt64111.c
@@
-15,18
+15,18
@@
#include <asm/io.h>
#include <asm/gt64120.h>
#include <asm/io.h>
#include <asm/gt64120.h>
-#include <asm/cobalt/cobalt.h>
+#include <asm/
mach-
cobalt/cobalt.h>
/*
/*
- *
Accessing device 31 hangs the GT64120. Not sure if this will also hang
- *
the GT64111, let's be paranoid for now
.
+ *
Device 31 on the GT64111 is used to generate PCI special
+ *
cycles, so we shouldn't expected to find a device there ..
.
*/
static inline int pci_range_ck(struct pci_bus *bus, unsigned int devfn)
{
*/
static inline int pci_range_ck(struct pci_bus *bus, unsigned int devfn)
{
- if (bus->number == 0 &&
devfn == PCI_DEVFN(31, 0)
)
- return
-1
;
+ if (bus->number == 0 &&
PCI_SLOT(devfn) < 31
)
+ return
0
;
- return
0
;
+ return
-1
;
}
static int gt64111_pci_read_config(struct pci_bus *bus, unsigned int devfn,
}
static int gt64111_pci_read_config(struct pci_bus *bus, unsigned int devfn,