aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHector Martin <[email protected]>2021-11-17 23:19:16 +0900
committerLorenzo Pieralisi <[email protected]>2021-11-30 16:43:15 +0000
commit754bb7ad29566b2789cafb6b378b788266d1f131 (patch)
tree2efc4c018bbf9efe8f8aa4cc8fd50bb193639b72
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff)
PCI: apple: Enable clock gating
These pokes are not required to make the PCIe port work, but it sounds like this should save some power at least. Link: https://lore.kernel.org/r/[email protected] Tested-by: Marc Zyngier <[email protected]> Signed-off-by: Hector Martin <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Marc Zyngier <[email protected]>
-rw-r--r--drivers/pci/controller/pcie-apple.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/controller/pcie-apple.c b/drivers/pci/controller/pcie-apple.c
index 1bf4d75b61be..fa5e9c31d80b 100644
--- a/drivers/pci/controller/pcie-apple.c
+++ b/drivers/pci/controller/pcie-apple.c
@@ -553,6 +553,9 @@ static int apple_pcie_setup_port(struct apple_pcie *pcie,
return ret;
}
+ rmw_clear(PORT_REFCLK_CGDIS, port->base + PORT_REFCLK);
+ rmw_clear(PORT_APPCLK_CGDIS, port->base + PORT_APPCLK);
+
ret = apple_pcie_port_setup_irq(port);
if (ret)
return ret;