diff options
| author | Hans Zhang <18255117159@163.com> | 2026-04-07 21:04:50 +0800 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2026-07-15 15:14:48 +0200 |
| commit | 6fc5fcd8ec1bdba3123b8a662410cf70bffc40f0 (patch) | |
| tree | 59d0ca411dcbcd89e065dddf0d7b85c56e3df227 /scripts/Makefile.thinlto | |
| parent | a03c77abaa802433210f193617000a3c1edd20be (diff) | |
| download | linux-stable-6fc5fcd8ec1bdba3123b8a662410cf70bffc40f0.tar.gz linux-stable-6fc5fcd8ec1bdba3123b8a662410cf70bffc40f0.zip | |
PCI: dwc: Use common speed conversion function
Replace the private switch-based speed conversion in
dw_pcie_link_set_max_speed() with the public pci_bus_speed2lnkctl2()
function.
This eliminates duplicate conversion logic and ensures consistency with
other PCIe drivers, while handling invalid speeds by falling back to
hardware capabilities.
Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260407130450.1489318-4-18255117159@163.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
