Skip to content

Commit fdbbe24

Browse files
paliLorenzo Pieralisi
authored andcommitted
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>
1 parent 759dec2 commit fdbbe24

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/pci/controller/pci-aardvark.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,9 @@ static int advk_pcie_remove(struct platform_device *pdev)
17501750
for (i = 0; i < OB_WIN_COUNT; i++)
17511751
advk_pcie_disable_ob_win(pcie, i);
17521752

1753+
/* Disable phy */
1754+
advk_pcie_disable_phy(pcie);
1755+
17531756
return 0;
17541757
}
17551758

0 commit comments

Comments
 (0)