From: Richard Zhu Date: Thu, 3 Mar 2022 06:34:35 +0000 (+0800) Subject: PCI: imx6: Invoke the PHY exit function after PHY power off X-Git-Tag: v6.1-rc5~1724^2~6^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=deaf7a2c2e4b5072a743633bf37c45f34426a093;p=platform%2Fkernel%2Flinux-starfive.git 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: 178e244cb6e2 ("PCI: imx: Add the imx8mm pcie support") Signed-off-by: Richard Zhu Signed-off-by: Lorenzo Pieralisi Reviewed-by: Lucas Stach --- diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 5fd33e4..7035c69 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -978,6 +978,7 @@ static int imx6_pcie_suspend_noirq(struct device *dev) case IMX8MM: if (phy_power_off(imx6_pcie->phy)) dev_err(dev, "unable to power off PHY\n"); + phy_exit(imx6_pcie->phy); break; default: break;