]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Bring the PCIe speed to MBps logic to new pcie_dev_speed_mbps()
authorKrishna chaitanya chundru <quic_krichai@quicinc.com>
Wed, 19 Jun 2024 15:11:12 +0000 (20:41 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Jul 2024 21:56:36 +0000 (16:56 -0500)
commit100ae5d77f07f9f046106e228778c7aa1c6d3af3
tree8f2f8f8ffcfd45b7149b08ef778eff576170e87b
parent980136d1c2b95644b96df6c7ec00ca5d7c87f37f
PCI: Bring the PCIe speed to MBps logic to new pcie_dev_speed_mbps()

Bring the switch case in pcie_link_speed_mbps() to new function to
the header file so that it can be used in other places like
in controller driver.

Link: https://lore.kernel.org/linux-pci/20240619-opp_support-v15-3-aa769a2173a3@quicinc.com
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/pci.c
drivers/pci/pci.h