Skip to contentSkip to conversation

Generic PCI-E changes for relative bus numbering

PATCH New Jon Loeliger 2 participants 4 messages Jul 11, 2007 – Jul 12, 2007

lore
Share & tools
lore
#0 lore raw

cover Generic PCI-E changes for relative bus numbering

Folks,

The following 5 patches from Ed Swarthout changes how PCI-Express bus numbers are assigned such that P2P bridge] bus numbers programmed into the device are relative to hose->first_busno. The first patch ensures that the hose->current_busno is not less than first_busno. This fixes broken board code which leaves current_busno=0 when first_busno is greater than 0 for the cases with multiple controllers.

Minor improvements to some DEBUG() output are also added. Two generic PCI functions are un-static-ized for use in my follow up patchset for the 86xx platform.

I've only been able to test this on a limited number of boards with PCI-Express support, so anyone else who can verify these changes would be appreciated.

Thanks,
jdl

PS -- Look! Real changes in a small patchset!

 drivers/pci.c          |    8 +++++++-
 drivers/pci_auto.c     |   44 ++++++++++++++++++++++++++++++++------------
 drivers/pci_indirect.c |    4 ++--
 3 files changed, 41 insertions(+), 15 deletions(-)
#1 lore raw

cover Generic PCI-E changes for relative bus numbering

Quoted 9 lines · In message <1184183475.25384.86.camel@ld0161-tx32> you wrote:

The following 5 patches from Ed Swarthout changes how PCI-Express bus numbers are assigned such that P2P bridge] bus numbers programmed into the device are relative to hose->first_busno. The first patch ensures that the hose->current_busno is not less than first_busno. This fixes broken board code which leaves current_busno=0 when first_busno is greater than 0 for the cases with multiple controllers.

Thanks - applied to u-boot-testing

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
To understand a program you must become  both  the  machine  and  the
program.
#2 lore raw

cover Generic PCI-E changes for relative bus numbering

Quoted 11 lines · Wolfgang Denk
Quoted 9 lines · In message <1184183475.25384.86.camel@ld0161-tx32> you wrote:

The following 5 patches from Ed Swarthout changes how PCI-Express bus numbers are assigned such that P2P bridge] bus numbers programmed into the device are relative to hose->first_busno. The first patch ensures that the hose->current_busno is not less than first_busno. This fixes broken board code which leaves current_busno=0 when first_busno is greater than 0 for the cases with multiple controllers.

Quoted 5 lines

Thanks - applied to u-boot-testing

Best regards,

Wolfgang Denk

Awesome!

Thanks!
jdl

#3 lore raw

cover Generic PCI-E changes for relative bus numbering

Quoted 2 lines · In message <1184190650.25384.136.camel@ld0161-tx32> you wrote:

Awesome!

Your patch-generating rate? Indeed...

Thanks a lot for all this work.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The important thing about being a leader is not being right or wrong,
but being *certain*.                    - Terry Pratchett, _Truckers_