[U-Boot-Users] Patch: Fix sibling P2P bridge auto-enumeration

Travis Sawyer tsawyer+u-boot at sandburst.com
Tue Jan 20 20:15:54 CET 2004


u-boot'ers:

I believe I found a defect in the processing of sibling pci to pci
bridges in the pci auto enumeration.

The problem:
	In the case of sibling p2p bridges the secondary bus number of an
subsequent bridges is the same as the first bridge on the bus.  As such,
the subordinate bus number is also incorrect, and the parent bridge does
not get the appropriate setting (deepest bridge sub bus number).

The fix:
Instead of using sub_bus, use hose->current_busno.  USE the return value
of pci_hose_scan_bus to figure out the appropriate setting for the
subordinate bus number, and pass that to pciauto_postscan_setup_bridge.
	

Enclosed please find the patch.

CHANGELOG Entry:
Travis Sawyer, 20Jan2004
	Fix pci bridge auto enumeration of sibling p2p bridges.

-travis sawyer


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pci_auto.patch.bz2
Type: application/x-bzip
Size: 814 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040120/a7a54d24/attachment.bin 


More information about the U-Boot mailing list