aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/vmd.c
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2023-10-04 16:44:29 +0000
committerKrzysztof Wilczyński <[email protected]>2023-10-14 19:18:36 +0000
commitdc2f2a9d1cf2c505efbb8b7e782a7f22e635f4bf (patch)
tree5176b60995db551f1297c022950ce99133834b57 /drivers/pci/controller/vmd.c
parentPCI: qcom: Use PCIE_SPEED2MBS_ENC() macro for encoding link speed (diff)
downloadkernel-dc2f2a9d1cf2c505efbb8b7e782a7f22e635f4bf.tar.gz
kernel-dc2f2a9d1cf2c505efbb8b7e782a7f22e635f4bf.zip
PCI: qcom-ep: 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 'drivers/pci/controller/vmd.c')
0 files changed, 0 insertions, 0 deletions