]> git.ipfire.org Git - thirdparty/pciutils.git/commit - lspci.c
lspci: Build tree based on PCI_FILL_PARENT information
authorPali Rohár <pali@kernel.org>
Tue, 28 Dec 2021 19:14:47 +0000 (20:14 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 10 Feb 2022 12:49:35 +0000 (13:49 +0100)
commit67954c8b6514859a0e115538200187f3a1ffd366
tree0e74cc2b7c3b384146340eb52fa069d698345f8a
parente9e7fab13d16067658f02d47094a949f56aef596
lspci: Build tree based on PCI_FILL_PARENT information

Topology reported by system (libpci provider) may be different from
topology built based on primary/secondary/subordinate numbers from PCI
bridges by lspci.

This happens for example when some non-compliant PCI-to-PCI bridge
with Type 0 header (e.g. Marvell one) is available in the system.

So add additional edges reported by libpci when building tree in lspci.
ls-tree.c
lspci.c