diff options
author | Manivannan Sadhasivam <[email protected]> | 2023-10-04 22:14:28 +0530 |
---|---|---|
committer | Krzysztof Wilczyński <[email protected]> | 2023-10-14 19:16:06 +0000 |
commit | 8da2e9af0bb5217361f4ddde0d9b820b45c185e8 (patch) | |
tree | f3e6ed516ba5134490c2004edadb36f9249cd15f /tools/perf/scripts | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) |
PCI: qcom: Use PCIE_SPEED2MBS_ENC() macro for encoding link speed
Instead of hardcoding the link speed in MBps, use existing
PCIE_SPEED2MBS_ENC() macro that does the encoding of the link speed for
us. Also, let's Wrap it with QCOM_PCIE_LINK_SPEED_TO_BW() macro to do
the conversion to ICC speed.
This eliminates the need for a switch case in qcom_pcie_icc_update() and
also works for future Gen speeds without any code modifications.
Suggested-by: Bjorn Helgaas <[email protected]>
Link: https://lore.kernel.org/linux-pci/[email protected]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions