2002-10-26 07:55:24

by Jim Radford

[permalink] [raw]
Subject: [PATCH] PCI should use bios if direct is not detected

In 2.4.10 the pci subsystem stopped using the bios to access the PCI
config space when no direct method is detected even though it does
detect that it *can* use the bios leaving my machine PCI-less :-(.
This patch restores the older saner behavior and shouldn't affect any
working system.

-Jim

diff -Nru linux-2.5.44/arch/i386/pci/direct.c linux-2.5.44-bios/arch/i386/pci/direct.c
--- linux-2.5.44/arch/i386/pci/direct.c Sat Oct 26 00:39:23 2002
+++ linux-2.5.44-bios/arch/i386/pci/direct.c Sat Oct 26 00:39:23 2002
@@ -261,7 +261,6 @@
}

local_irq_restore(flags);
- pci_root_ops = NULL;
return 0;
}