[Toybox] [PATCH] lspci fixes for multi-controller hosts
Rob Landley
rob at landley.net
Sun Jun 16 06:45:31 PDT 2024
On 6/14/24 08:51, Dmitry Buzdyk wrote:
> Couple of patches for the systems with multiple PCIe controllers.
> In my case it has 2 controllers and output of the lspci (with patches applied)
> looks like this:
>
> 0000:00:00.0 [060400]: [17cb:0113]
> 0000:01:00.0 [0c0330]: [1912:0014] (rev 03) xhci_hcd
> 0001:00:00.0 [060400]: [17cb:0113]
> 0001:01:00.0 [060400]: [1179:0623]
> 0001:02:01.0 [060400]: [1179:0623]
> 0001:02:02.0 [060400]: [1179:0623]
> 0001:02:03.0 [060400]: [1179:0623]
> 0001:03:00.0 [040000]: [17cd:0202]
> 0001:04:00.0 [0c0330]: [1912:0014] (rev 03) xhci_hcd
> 0001:05:00.0 [020000]: [1179:0220] tc956x_pci-eth
> 0001:05:00.1 [020000]: [1179:0220] tc956x_pci-eth
>
>
> 1. Fix "lspci -x" taking into account full PCI_PATH_NAME
> 2. Print full PCI_PATH_NAME to the output.
I applied the first one, but #2 changes the output to not match what debian's
lspci is doing. Is there a rule about when to print the extra info here? (If
there's more than one controller?)
Rob
More information about the Toybox
mailing list