Skip to content

Commit deaf7a2

Browse files
Richard ZhuLorenzo Pieralisi
authored andcommitted
PCI: imx6: Invoke the PHY exit function after PHY power off
To balance phy->init_count, invoke the phy_exit() after phy_power_off(). Link: https://lore.kernel.org/r/1646289275-17813-1-git-send-email-hongxing.zhu@nxp.com Fixes: 178e244 ("PCI: imx: Add the imx8mm pcie support") Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
1 parent f81dd04 commit deaf7a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pci/controller/dwc/pci-imx6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ static int imx6_pcie_suspend_noirq(struct device *dev)
978978
case IMX8MM:
979979
if (phy_power_off(imx6_pcie->phy))
980980
dev_err(dev, "unable to power off PHY\n");
981+
phy_exit(imx6_pcie->phy);
981982
break;
982983
default:
983984
break;

0 commit comments

Comments
 (0)