phy: freescale: imx8m-pcie: Fix the wrong order of phy_init() and phy_power_on()
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 5 Sep 2022 02:23:03 +0000 (10:23 +0800)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Mon, 3 Oct 2022 08:34:46 +0000 (10:34 +0200)
commitcbcf8722b523dcf0970ab67dc3d5ced1ea7b334e
tree46917549d5d445841bef06027e0f647a881fbbfd
parent3db1e531e444290f0f54dd794b5cc22cf189930a
phy: freescale: imx8m-pcie: Fix the wrong order of phy_init() and phy_power_on()

Refer to phy_core driver, phy_init() must be called before phy_power_on().
Fix the wrong order of phy_init() and phy_power_on() here.

Link: https://lore.kernel.org/r/1662344583-18874-1-git-send-email-hongxing.zhu@nxp.com
Fixes: 1aa97b002258 ("phy: freescale: pcie: Initialize the imx8 pcie standalone phy driver")
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
drivers/pci/controller/dwc/pci-imx6.c
drivers/phy/freescale/phy-fsl-imx8m-pcie.c