mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: qcom: sdm660: keep USB across suspend, give mdss_axi_clk its parent
@ 2026-09-28 17:41 Fabricio Akio via B4 Relay
  2026-09-28 17:41 ` [PATCH 1/2] clk: qcom: gcc-sdm660: Keep the USB GDSC in retention Fabricio Akio via B4 Relay
  2026-09-28 17:41 ` [PATCH 2/2] clk: qcom: mmcc-sdm660: set num_parents on mdss_axi_clk Fabricio Akio via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Fabricio Akio via B4 Relay @ 2026-09-28 17:41 UTC (permalink / raw)
  To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
	Jerome Brunet, Konrad Dybcio, AngeloGioacchino Del Regno,
	Martin Botka
  Cc: linux-arm-msm, linux-clk, linux-kernel, Fabricio Akio

Two independent fixes to the SDM660 clock controllers, found while
bringing up the Motorola Moto X4 (payton, SDM630).

The first keeps the USB GDSC in retention across system suspend, as
msm8996, msm8998 and sm6375 already do. Switching it off loses the
DWC3 glue's QSCRATCH configuration, and USB does not come back after
resume.

The second sets num_parents on mdss_axi_clk. Without it the branch is
registered with no parent, reports 0 Hz, and enabling it takes no
reference on axi_clk_src.

Tested on a Motorola Moto X4 (XT1900-6) with the sdm660-mainline 7.2.3
tree, where its board file lives. Without the first patch the USB
gadget is gone after an RTC-woken suspend; with it, it re-enumerates
over repeated cycles. With the second, clk_summary shows mdss_axi_clk
at 384 MHz under axi_clk_src instead of 0 Hz with no parent. Both
apply unchanged to next-20260928.

---
Fabricio Akio (2):
      clk: qcom: gcc-sdm660: Keep the USB GDSC in retention
      clk: qcom: mmcc-sdm660: set num_parents on mdss_axi_clk

 drivers/clk/qcom/gcc-sdm660.c  | 3 ++-
 drivers/clk/qcom/mmcc-sdm660.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
---
base-commit: 6375e61c01e93e35ee7acd336a689ac1fae4b509
change-id: 20260928-sdm660-clk-fixes-985d73f9d083

Best regards,
--  
Fabricio Akio <fabricioakio@gmail.com>



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

end of thread, other threads:[~2026-09-28 17:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 17:41 [PATCH 0/2] clk: qcom: sdm660: keep USB across suspend, give mdss_axi_clk its parent Fabricio Akio via B4 Relay
2026-09-28 17:41 ` [PATCH 1/2] clk: qcom: gcc-sdm660: Keep the USB GDSC in retention Fabricio Akio via B4 Relay
2026-09-28 17:41 ` [PATCH 2/2] clk: qcom: mmcc-sdm660: set num_parents on mdss_axi_clk Fabricio Akio via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®