]> git.ipfire.org Git - thirdparty/pciutils.git/commit
ls-tree: Fix parsing devices on multidomain PCI system
authorPali Rohár <pali@kernel.org>
Sat, 22 Apr 2023 09:47:24 +0000 (11:47 +0200)
committerPali Rohár <pali@kernel.org>
Sat, 29 Apr 2023 12:23:04 +0000 (14:23 +0200)
commit7eb8744984a8b7ed52d35a291ff5ed6373e93499
tree217068a56187d9ae7e5b88416697b3c87822cff2
parent5b0411aa38c04782fd99469263ae3f04eb79ca34
ls-tree: Fix parsing devices on multidomain PCI system

Represent each domain as domain bridge under the &host_bridge and put root
bus of each domain under the domain bridge.

With this change lspci in tree view does not show zero bus on domain 0 in
the output if this bus does not exist at all. Root bus in PCIe hierarchy
does not have to be zero and on Freescale PowerPC systems it is common.

Also with this change are separate domain showed in the output separately.
ls-tree.c