]> git.ipfire.org Git - thirdparty/pciutils.git/commit
Add device-tree node path to the verbose output
authorOliver O'Halloran <oohall@gmail.com>
Tue, 15 May 2018 05:39:05 +0000 (15:39 +1000)
committerMartin Mares <mj@ucw.cz>
Tue, 26 Jun 2018 09:31:42 +0000 (11:31 +0200)
commit6d701ce33eb2a420ce196be731ddf11d2d1fcc7f
tree67bd54a4f52bae97e041eb1deb03b44b28665cf9
parente7b120d034bf725fac695aa61799251a862ae994
Add device-tree node path to the verbose output

Adds the path of the device-tree node of a PCI device to the lspci -v
output, like so:

0021:00:00.0 PCI bridge: IBM Device 03dc (prog-if 00 [Normal decode])
DT Node: /sys/firmware/devicetree/base/pciex@3fffe41100000/pci@0

This is added as a generic property to struct pci_device and populated
by the sysfs backend. Other platforms may find it useful though.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
lib/access.c
lib/pci.h
lib/sysfs.c
lspci.c