PCI: apple: Enable clock gating
PATCH 1/1 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.
Signed-off-by Hector Martin <[email protected]>
--- drivers/pci/controller/pcie-apple.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/pci/controller/pcie-apple.c +3 -0
@@ -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;
Signature · 1 line
2.33.0
Quoted 27 lines · Hector Martin
These pokes are not required to make the PCIe port work, but it sounds like this should save some power at least.
Signed-off-by Hector Martin <[email protected]>--- drivers/pci/controller/pcie-apple.c | 3 +++ 1 file changed, 3 insertions(+)drivers/pci/controller/pcie-apple.c +3
-0@@ -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;Signature · 1 line
2.33.0
Acked-by Marc Zyngier <[email protected]>
Tested-by Marc Zyngier <[email protected]>
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Lorenzo Pieralisi
AppliedQuoted 4 lines · Hector Martin
These pokes are not required to make the PCIe port work, but it sounds like this should save some power at least.
Applied to pci/apple, thanks!
[1/1] PCI: apple: Enable clock gating
https://git.kernel.org/lpieralisi/pci/c/754bb7ad29
Thanks,
Lorenzo