Skip to content
Commit 56c1af46 authored by Wong Vee Khee's avatar Wong Vee Khee Committed by Bjorn Helgaas
Browse files

PCI: Add sysfs max_link_speed/width, current_link_speed/width, etc



Expose PCIe bridges attributes such as secondary bus number, subordinate
bus number, max link speed and link width, current link speed and link
width via sysfs in /sys/bus/pci/devices/...

This information is available via lspci, but that requires root privilege.

Signed-off-by: default avatarWong Vee Khee <vee.khee.wong@ni.com>
Signed-off-by: default avatarHui Chun Ong <hui.chun.ong@ni.com>
[bhelgaas: changelog, return errors early to unindent usual case, return
errors with same style throughout]
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 99b3c58f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment