pci: pcie_dw_meson: Use dw_pcie_link_set_max_link_width()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 17 Jun 2025 08:16:28 +0000 (10:16 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jun 2025 14:25:56 +0000 (08:25 -0600)
commita83def86152d24cf22601844fc922593ad42492b
treed94c449cfbf7f505a967037ea923a57bd7271269
parent4600b59568339602ef0c95377cc64f561132ebea
pci: pcie_dw_meson: Use dw_pcie_link_set_max_link_width()

Use dw_pcie_link_set_max_link_width() instead of local implementation
of the same functionality. This does change the behavior slightly, as
the dw_pcie_link_set_max_link_width() implementation also programs the
LNKCAP register MLW, this should however be correct and is now aligned
with Linux kernel behavior.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/pci/pcie_dw_meson.c