summaryrefslogtreecommitdiff
path: root/drivers/pci/controller
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-11-30 20:29:13 +0300
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2021-12-02 12:55:49 +0300
commitfdbbe242c15a8f2cd0e3ad8a56cd0a447b771d0d (patch)
tree0d43924254088153a3c917813a4a2013ae3bfc35 /drivers/pci/controller
parent759dec2e3dfdbd261c41d2279f04f2351c971a49 (diff)
downloadlinux-fdbbe242c15a8f2cd0e3ad8a56cd0a447b771d0d.tar.xz
PCI: aardvark: Disable common PHY when unbinding driver
Disable the PCIe PHY when unbinding driver. This should save some power. Link: https://lore.kernel.org/r/20211130172913.9727-12-kabel@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r--drivers/pci/controller/pci-aardvark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c
index e5c88f1c177b..2a82c4652c28 100644
--- a/drivers/pci/controller/pci-aardvark.c
+++ b/drivers/pci/controller/pci-aardvark.c
@@ -1750,6 +1750,9 @@ static int advk_pcie_remove(struct platform_device *pdev)
for (i = 0; i < OB_WIN_COUNT; i++)
advk_pcie_disable_ob_win(pcie, i);
+ /* Disable phy */
+ advk_pcie_disable_phy(pcie);
+
return 0;
}