-1 just because I saw a premature +2 along the lines.

About the implementation:
If we need special semantics (if not, see alternatives below), I would
prefer a clean, second implementation of pci_scan_bus() instead of
making the current one even harder to follow.

About the devicetree notation:

About alternatives:
For most platforms, we know that bus 0 doesn't (shouldn't?) contain
surprises. We had a little discussion about handling chipset embedded
devices better lately. If we would specify bus 0 devices exactly, per
platform, the mainboard devicetree would only have to mention details
(e.g. disable that, add downstream devices there...). And for PCIe root
ports, we already know that we only have to scan for downstream
device 0 (and not 1..1f). I'm not very familiar with PCIe capabilities,
but maybe there is even a hint in downstream bridges if we have to
scan all 32 device numbers.

So how about, instead of adding a feature on top, for anonymous folks
that frequently request minimal scanning, we look for a generic way
first to implement it for everyone?

Patch set 8:Code-Review -1

View Change

To view, visit change 36221. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2073d9f8e9297c2b02530821ebb634ea2a5c758e
Gerrit-Change-Number: 36221
Gerrit-PatchSet: 8
Gerrit-Owner: ron minnich <rminnich@gmail.com>
Gerrit-Reviewer: Aaron Durbin <adurbin@chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Jeremy Soller <jeremy@system76.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki@gmail.com>
Gerrit-Reviewer: Lean Sheng Tan <lean.sheng.tan@intel.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Gerrit-Reviewer: Shelley Chen <shchen@google.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Wed, 23 Oct 2019 13:35:43 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment