All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] PCI: qcom: pipe_clk_src fixes for pcie-qcom driver
@ 2021-12-18 14:02 Dmitry Baryshkov
  2021-12-18 14:02 ` [PATCH 1/3] PCI: qcom: Balance pm_runtime_foo() calls Dmitry Baryshkov
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Dmitry Baryshkov @ 2021-12-18 14:02 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Bjorn Helgaas
  Cc: linux-arm-msm, linux-pci, Prasad Malisetty, Stephen Boyd

After comparing upstream and downstream Qualcomm PCIe drivers, change
the way the driver works with the pipe_clk_src multiplexing.

The clock should be switched to using ref_clk (TCXO) as a parent before
turning the PCIE_x_GDSC power domain off and can be switched to using
PHY's pipe_clk after this power domain is turned on.

Downstream driver uses regulators for the GDSC, so current approach also
(incorrectly) uses them. However upstream driver uses power-domain and
so GDSC is maintained using pm_runtime_foo() calls. Change order of
operations to implement these requirements.

----------------------------------------------------------------
Dmitry Baryshkov (3):
      PCI: qcom: Balance pm_runtime_foo() calls
      PCI: qcom: Fix pipe_clk_src reparenting
      PCI: qcom: Remove unnecessary pipe_clk handling

 drivers/pci/controller/dwc/pcie-qcom.c | 122 +++++++--------------------------
 1 file changed, 25 insertions(+), 97 deletions(-)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-11 17:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-18 14:02 [PATCH 0/3] PCI: qcom: pipe_clk_src fixes for pcie-qcom driver Dmitry Baryshkov
2021-12-18 14:02 ` [PATCH 1/3] PCI: qcom: Balance pm_runtime_foo() calls Dmitry Baryshkov
2021-12-18 14:02 ` [PATCH 2/3] PCI: qcom: Fix pipe_clk_src reparenting Dmitry Baryshkov
2022-02-04  4:03   ` Bjorn Andersson
2022-02-04  8:36     ` Dmitry Baryshkov
2021-12-18 14:02 ` [PATCH 3/3] PCI: qcom: Remove unnecessary pipe_clk handling Dmitry Baryshkov
2022-02-02  4:37 ` [PATCH 0/3] PCI: qcom: pipe_clk_src fixes for pcie-qcom driver Vinod Koul
2022-02-03 21:11 ` Stephen Boyd
2022-02-11 17:57   ` Lorenzo Pieralisi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.