]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: dw-rockchip: Fix PHY function call sequence in rockchip_pcie_phy_deinit()
authorDiederik de Haas <didi.debian@cknow.org>
Thu, 17 Apr 2025 14:21:18 +0000 (16:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:31 +0000 (11:07 +0100)
commitd598d95ca407c41f637e7caa4a2c4c8d8ed34be7
treef9d5613995bfdbfc93f930d99d70a4f8a71cf4e2
parent412127a24b1eeebee1fc3a15e5914acbc4552bf2
PCI: dw-rockchip: Fix PHY function call sequence in rockchip_pcie_phy_deinit()

commit 286ed198b899739862456f451eda884558526a9d upstream.

The documentation for the phy_power_off() function explicitly says that it
must be called before phy_exit().

Hence, follow the same rule in rockchip_pcie_phy_deinit().

Fixes: 0e898eb8df4e ("PCI: rockchip-dwc: Add Rockchip RK356X host controller driver")
Signed-off-by: Diederik de Haas <didi.debian@cknow.org>
[mani: commit message change]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
Cc: stable@vger.kernel.org # v5.15+
Link: https://patch.msgid.link/20250417142138.1377451-1-didi.debian@cknow.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/dwc/pcie-dw-rockchip.c