Skip to content

Commit

Permalink
PCI: aardvark: Disable common PHY when unbinding driver
Browse files Browse the repository at this point in the history
commit fdbbe24 upstream.

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>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
pali authored and gregkh committed May 12, 2022
1 parent a346d08 commit ac76c36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/pci/controller/pci-aardvark.c
Expand Up @@ -1734,6 +1734,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;
}

Expand Down

0 comments on commit ac76c36

Please sign in to comment.