]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] PCI: use PCBIOS as last fallback
authorDaniel Ritz <daniel.ritz-ml@swissonline.ch>
Tue, 22 Aug 2006 14:29:08 +0000 (07:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Aug 2006 20:05:31 +0000 (13:05 -0700)
commitd705b22a0487889f72001f741c4f03b625774bac
tree09c8eed0e42c3b28d8b0ffc58d86f906f4093658
parente8547b6458ed1d946f886880720015e0915c6736
[PATCH] PCI: use PCBIOS as last fallback

there was a change in 2.6.17 which affected the order in which the PCI
access methods are probed.  this gives regressions on some machines with
broken BIOS.  the problem is that PCBIOS sometimes reports last bus wrong,
leaving cardbus non-funcational.  previously those system worked fine with
direct access.

The patch changes the PCI init code to have PCBIOS as last fallback, yet
the PCBIOS code still has to run first to set pcibios_last_bus to the value
reported by the BIOS.  this is needed in case legacy PCI probing
(arch/i386/pci/legacy.c) is used to detect peer busses.  using direct
access if available fixes the cardbus problems.

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/i386/pci/init.c