diff options
author | Pali Rohár <[email protected]> | 2021-11-30 18:29:13 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2021-12-02 09:55:49 +0000 |
commit | fdbbe242c15a8f2cd0e3ad8a56cd0a447b771d0d (patch) | |
tree | 0d43924254088153a3c917813a4a2013ae3bfc35 | |
parent | 759dec2e3dfdbd261c41d2279f04f2351c971a49 (diff) |
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/[email protected]
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Marek Behún <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
-rw-r--r-- | drivers/pci/controller/pci-aardvark.c | 3 |
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; } |