2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/arch/sh
Greg Kroah-Hartman 1ba6ab11d8 PCI: remove initial bios sort of PCI devices on x86
We currently keep 2 lists of PCI devices in the system, one in the
driver core, and one all on its own.  This second list is sorted at boot
time, in "BIOS" order, to try to remain compatible with older kernels
(2.2 and earlier days).  There was also a "nosort" option to turn this
sorting off, to remain compatible with even older kernel versions, but
that just ends up being what we have been doing from 2.5 days...

Unfortunately, the second list of devices is not really ever used to 
determine the probing order of PCI devices or drivers[1].  That is done
using the driver core list instead.  This change happened back in the
early 2.5 days.

Relying on BIOS ording for the binding of drivers to specific device
names is problematic for many reasons, and userspace tools like udev
exist to properly name devices in a persistant manner if that is needed,
no reliance on the BIOS is needed.

Matt Domsch and others at Dell noticed this back in 2006, and added a
boot option to sort the PCI device lists (both of them) in a
breadth-first manner to help remain compatible with the 2.4 order, if
needed for any reason.  This option is not going away, as some systems
rely on them.

This patch removes the sorting of the internal PCI device list in "BIOS"
mode, as it's not needed at all anymore, and hasn't for many years.
I've also removed the PCI flags for this from some other arches that for
some reason defined them, but never used them.

This should not change the ordering of any drivers or device probing.

[1] The old-style pci_get_device and pci_find_device() still used this
sorting order, but there are very few drivers that use these functions,
as they are deprecated for use in this manner.  If for some reason, a
driver rely on the order and uses these functions, the breadth-first
boot option will resolve any problem.

Cc: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-20 21:46:58 -07:00
..
boards sh: Fix up SH7710 VoIP-GW build. 2008-03-06 16:08:00 +09:00
boot sh: fix compressed kernel build 2008-04-16 02:01:55 +09:00
cchips sh: Kill off more dead symbols. 2008-02-14 14:22:12 +09:00
configs sh: Fix up SH7710 VoIP-GW build. 2008-03-06 16:08:00 +09:00
drivers PCI: remove initial bios sort of PCI devices on x86 2008-04-20 21:46:58 -07:00
kernel Generic semaphore implementation 2008-04-17 10:42:34 -04:00
lib sh: Explicit alignment for PAGE_SIZE in copy/clear_page(). 2008-01-28 13:18:58 +09:00
lib64 sh: Fix up the sh64 build. 2008-03-06 17:23:15 +09:00
math-emu sh: Fix up the math-emu build. 2007-06-11 15:57:42 +09:00
mm sh: Flag PMB support as EXPERIMENTAL. 2008-03-06 16:06:38 +09:00
oprofile sh: Add -Werror for clean directories. 2007-11-07 11:13:55 +09:00
tools sh: Fix up SH7710 VoIP-GW build. 2008-03-06 16:08:00 +09:00
Kconfig remove include/asm-sh/floppy.h 2008-03-31 16:16:02 +09:00
Kconfig.cpu sh: Disable big endian for SH-5. 2008-02-14 14:22:10 +09:00
Kconfig.debug sh: Clean up whitespace damage in Kconfig.debug. 2008-02-14 14:22:10 +09:00
Makefile sh: Use relative paths for mach/cpu symlinks. 2008-03-21 12:22:01 +09:00