]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add pcie_get_speed_cap() to find max supported link speed
authorTal Gilboa <talgi@mellanox.com>
Fri, 30 Mar 2018 12:44:05 +0000 (07:44 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Mar 2018 20:33:38 +0000 (15:33 -0500)
commit90e21f8e6c06d8c041ff74a9dfd7bbb03218efce
tree6a139948424dfd0d349b2baf06bdcd4370285427
parenteae470f9bc19b8a4eec24f6a4974aed2c08eb4b4
PCI: Add pcie_get_speed_cap() to find max supported link speed

Add pcie_get_speed_cap() to find the max link speed supported by a device.
Change max_link_speed_show() to use pcie_get_speed_cap().

Signed-off-by: Tal Gilboa <talgi@mellanox.com>
[bhelgaas: return speed directly instead of error and *speed, don't export
outside drivers/pci]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
drivers/pci/pci-sysfs.c
drivers/pci/pci.c
drivers/pci/pci.h