linux/arch/sh/drivers/pci
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
..
fixups-dreamcast.c sh: use declared coherent memory for dreamcast pci ethernet adapter 2008-01-28 13:19:04 +09:00
fixups-lboxre2.c sh: use ctrl_in/out for on chip pci access 2008-02-14 14:25:32 +09:00
fixups-r7780rp.c sh: Consolidated SH7751/SH7780 PCI support. 2006-09-27 16:43:28 +09:00
fixups-rts7751r2d.c sh: use ctrl_in/out for on chip pci access 2008-02-14 14:25:32 +09:00
fixups-sdk7780.c sh: Add support for SDK7780 board. 2008-01-28 13:19:04 +09:00
fixups-se7780.c sh: se7780 PCI support. 2007-05-07 02:11:55 +00:00
fixups-sh03.c sh: Consolidated SH7751/SH7780 PCI support. 2006-09-27 16:43:28 +09:00
Kconfig PCI: Kconfig help: don't refer to the PCI-HOWTO 2008-02-01 15:04:26 -08:00
Makefile sh: use declared coherent memory for dreamcast pci ethernet adapter 2008-01-28 13:19:04 +09:00
ops-cayman.c sh: Get the SH-5 PCI support building. 2008-01-28 13:18:55 +09:00
ops-dreamcast.c sh: revert dreamcast pci change 2008-02-26 14:14:56 +09:00
ops-landisk.c sh: landisk updates. 2007-05-07 02:10:54 +00:00
ops-lboxre2.c sh: L-BOX RE2 support. 2007-05-07 02:10:54 +00:00
ops-r7780rp.c sh: update r7780rp interrupt code 2008-01-28 16:24:01 +09:00
ops-rts7751r2d.c sh: fix pci io access for r2d boards 2008-02-14 14:25:41 +09:00
ops-sdk7780.c sh: Add support for SDK7780 board. 2008-01-28 13:19:04 +09:00
ops-se7780.c sh: Support PCI IO access of SH7780 base boards. 2007-11-30 12:36:13 +09:00
ops-sh03.c sh: build fixes for defconfigs. 2006-10-03 13:14:04 +09:00
ops-sh4.c sh: Fix up PCI section mismatch warnings. 2007-07-20 13:22:47 +09:00
ops-sh5.c sh: Get the SH-5 PCI support building. 2008-01-28 13:18:55 +09:00
ops-snapgear.c sh: Consolidated SH7751/SH7780 PCI support. 2006-09-27 16:43:28 +09:00
ops-titan.c sh: sh775x/titan fixes for irq header changes. 2006-12-06 12:05:02 +09:00
pci-auto.c sh: Kill off dead HS771RVoIP board support. 2008-01-28 13:19:03 +09:00
pci-sh4.h PCI: remove initial bios sort of PCI devices on x86 2008-04-20 21:46:58 -07:00
pci-sh5.c sh: Get the SH-5 PCI support building. 2008-01-28 13:18:55 +09:00
pci-sh5.h sh: Get the SH-5 PCI support building. 2008-01-28 13:18:55 +09:00
pci-sh7751.c sh: use ctrl_in/out for on chip pci access 2008-02-14 14:25:32 +09:00
pci-sh7751.h sh: Consolidated SH7751/SH7780 PCI support. 2006-09-27 16:43:28 +09:00
pci-sh7780.c sh: use ctrl_in/out for on chip pci access 2008-02-14 14:25:32 +09:00
pci-sh7780.h sh: Add support for SH7763 CPU subtype. 2008-01-28 13:19:02 +09:00
pci.c sh: Get the SH-5 PCI support building. 2008-01-28 13:18:55 +09:00