linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add edp reference clock for lemans
@ 2025-10-13 10:48 Ritesh Kumar
  2025-10-13 10:48 ` [PATCH v2 1/3] dt-bindings: phy: qcom-edp: Add edp ref clk for sa8775p Ritesh Kumar
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Ritesh Kumar @ 2025-10-13 10:48 UTC (permalink / raw)
  To: robin.clark, lumag, abhinav.kumar, jessica.zhang, sean,
	marijn.suijten, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, robh, krzk+dt, conor+dt, quic_mahap, andersson,
	konradybcio, mani, James.Bottomley, martin.petersen, vkoul,
	kishon, cros-qcom-dts-watchers
  Cc: Ritesh Kumar, linux-phy, linux-arm-msm, dri-devel, freedreno,
	devicetree, linux-kernel, linux-scsi, quic_vproddut

On lemans chipset, edp reference clock is being voted by ufs mem phy
(ufs_mem_phy: phy@1d87000). But after commit 77d2fa54a9457
("scsi: ufs: qcom : Refactor phy_power_on/off calls") edp reference
clock is getting turned off, leading to below phy poweron failure on
lemans edp phy.

[   19.830220] phy phy-aec2a00.phy.10: phy poweron failed --> -110
[   19.842112] mdss_0_disp_cc_mdss_dptx0_link_clk status stuck at 'off'
[   19.842131] WARNING: CPU: 2 PID: 371 at drivers/clk/qcom/clk-branch.c:87 clk_branch_toggle+0x174/0x18c
[   19.984356] Hardware name: Qualcomm QCS9100 Ride (DT)
[   19.989548] pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   19.996697] pc : clk_branch_toggle+0x174/0x18c
[   20.001267] lr : clk_branch_toggle+0x174/0x18c
[   20.005833] sp : ffff8000863ebbc0
[   20.009251] x29: ffff8000863ebbd0 x28: 0000000000000000 x27: 0000000000000000
[   20.016579] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000001
[   20.023915] x23: ffff0000c53de980 x22: 0000000000000001 x21: ffffb4b57fd8d710
[   20.031245] x20: ffffb4b5bb238b88 x19: 0000000000000000 x18: ffffffffffff7198
[   20.038584] x17: 0000000000000014 x16: ffffb4b5bb1e2330 x15: 0000000000000048
[   20.045926] x14: 0000000000000000 x13: ffffb4b5bd386a48 x12: 0000000000000dfb
[   20.053263] x11: 00000000000004a9 x10: ffffb4b5bd3e5a20 x9 : ffffb4b5bd386a48
[   20.060600] x8 : 00000000ffffefff x7 : ffffb4b5bd3dea48 x6 : 00000000000004a9
[   20.067934] x5 : ffff000eb7d38408 x4 : 40000000fffff4a9 x3 : ffff4b58fb2b7000
[   20.075269] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000ec4fc3480
[   20.082601] Call trace:
[   20.085127]  clk_branch_toggle+0x174/0x18c (P)
[   20.089705]  clk_branch2_enable+0x1c/0x28
[   20.093829]  clk_core_enable+0x6c/0xac
[   20.097687]  clk_enable+0x2c/0x4c
[   20.101104]  clk_bulk_enable+0x4c/0xd8
[   20.104964]  msm_dp_ctrl_enable_mainlink_clocks+0x184/0x24c [msm]
[   20.111294]  msm_dp_ctrl_on_link+0xb0/0x400 [msm]
[   20.116178]  msm_dp_display_process_hpd_high+0x110/0x190 [msm]
[   20.122209]  msm_dp_hpd_plug_handle.isra.0+0xac/0x1c4 [msm]
[   20.127983]  hpd_event_thread+0x320/0x5cc [msm]
[   20.132680]  kthread+0x12c/0x204
[   20.136011]  ret_from_fork+0x10/0x20
[   20.139699] ---[ end trace 0000000000000000 ]---
[   20.144489] Failed to enable clk 'ctrl_link': -16
[   20.149340] [drm:msm_dp_ctrl_enable_mainlink_clocks [msm]] *ERROR* Unable to start link clocks. ret=-16

This series adds support for voting the clock from lemans edp phy driver.

---
This series is dependent on below series:
https://lore.kernel.org/all/20250909-phy-qcom-edp-add-missing-refclk-v3-0-4ec55a0512ab@linaro.org/

Change in v2:
- Rebase on top of above series. [Krzysztof]
- Remove duplicate patches and make changes limited to lemans.
- Link to v1: https://lore.kernel.org/all/20251009071127.26026-1-quic_riteshk@quicinc.com/

---
Ritesh Kumar (3):
  dt-bindings: phy: qcom-edp: Add missing clock for sa8775p
  dt-bindings: display/msm: qcom,sa8775p-mdss: update edp phy example
  arm64: dts: qcom: lemans: Add edp reference clock for edp phy

 .../bindings/display/msm/qcom,sa8775p-mdss.yaml      |  6 ++++--
 .../devicetree/bindings/phy/qcom,edp-phy.yaml        |  1 +
 arch/arm64/boot/dts/qcom/lemans.dtsi                 | 12 ++++++++----
 3 files changed, 13 insertions(+), 6 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2025-10-28 10:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-13 10:48 [PATCH v2 0/3] Add edp reference clock for lemans Ritesh Kumar
2025-10-13 10:48 ` [PATCH v2 1/3] dt-bindings: phy: qcom-edp: Add edp ref clk for sa8775p Ritesh Kumar
2025-10-13 12:34   ` Dmitry Baryshkov
2025-10-28  9:54     ` Ritesh Kumar
2025-10-13 12:37   ` Dmitry Baryshkov
2025-10-15 14:43     ` Rob Herring
2025-10-28  9:57       ` Ritesh Kumar
2025-10-27 17:05   ` Bjorn Andersson
2025-10-28 10:16     ` Ritesh Kumar
2025-10-13 10:48 ` [PATCH v2 2/3] dt-bindings: display/msm: qcom,sa8775p-mdss: update edp phy example Ritesh Kumar
2025-10-13 12:35   ` [PATCH v2 2/3] dt-bindings: display/msm: qcom, sa8775p-mdss: " Dmitry Baryshkov
2025-10-13 10:48 ` [PATCH v2 3/3] arm64: dts: qcom: lemans: Add edp reference clock for edp phy Ritesh Kumar
2025-10-13 12:35   ` Dmitry Baryshkov
2025-10-28 10:17     ` Ritesh Kumar
2025-10-13 12:34 ` [PATCH v2 0/3] Add edp reference clock for lemans Dmitry Baryshkov
2025-10-15  9:19   ` Ritesh Kumar
2025-10-19 12:14     ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).