Skip to content

Commit 754bb7a

Browse files
marcanLorenzo Pieralisi
authored andcommitted
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/20211117141916.197192-1-marcan@marcan.st Tested-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Hector Martin <marcan@marcan.st> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Marc Zyngier <maz@kernel.org>
1 parent fa55b7d commit 754bb7a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/pci/controller/pcie-apple.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ static int apple_pcie_setup_port(struct apple_pcie *pcie,
553553
return ret;
554554
}
555555

556+
rmw_clear(PORT_REFCLK_CGDIS, port->base + PORT_REFCLK);
557+
rmw_clear(PORT_APPCLK_CGDIS, port->base + PORT_APPCLK);
558+
556559
ret = apple_pcie_port_setup_irq(port);
557560
if (ret)
558561
return ret;

0 commit comments

Comments
 (0)