[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220405070427.523167527@linuxfoundation.org>
Date: Tue, 5 Apr 2022 09:23:45 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Richard Zhu <hongxing.zhu@....com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Lucas Stach <l.stach@...gutronix.de>,
Sasha Levin <sashal@...nel.org>
Subject: [PATCH 5.17 0678/1126] PCI: imx6: Invoke the PHY exit function after PHY power off
From: Richard Zhu <hongxing.zhu@....com>
[ Upstream commit deaf7a2c2e4b5072a743633bf37c45f34426a093 ]
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 <hongxing.zhu@....com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
Reviewed-by: Lucas Stach <l.stach@...gutronix.de>
Signed-off-by: Sasha Levin <sashal@...nel.org>
---
drivers/pci/controller/dwc/pci-imx6.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -977,6 +977,7 @@ static int imx6_pcie_suspend_noirq(struc
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;
Powered by blists - more mailing lists