]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add pci_speed_string()
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 28 Feb 2020 21:02:03 +0000 (15:02 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Mar 2020 19:05:33 +0000 (14:05 -0500)
commit007550fe25bcd9bea1c4e594780227f1dedc8447
tree03fd38f1c0d9a0a6ff28022ecd4907768368075f
parent215ddfb00008b7dbd1104682ee1b43e4537f0288
PCI: Add pci_speed_string()

Add pci_speed_string() to return a text description of the supplied bus or
link speed.  The slot code previously used the private
pci_bus_speed_strings[] array for this purpose, but adding this interface
will enable us to consolidate similar code elsewhere.

Export pcie_link_speed[] and pci_speed_string() so they can be used by
modules.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h
drivers/pci/probe.c
drivers/pci/slot.c
include/linux/pci.h