linux-phy.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] phy: qcom: qmp-pcie: Add PCIe PHY no_csr reset support
@ 2025-01-21  9:41 Wenbin Yao
  2025-01-21  9:41 ` [PATCH 1/2] phy: qcom: pcie: Determine has_nocsr_reset dynamically Wenbin Yao
  2025-01-21  9:41 ` [PATCH 2/2] phy: qcom: qmp-pcie: Add PHY register retention support Wenbin Yao
  0 siblings, 2 replies; 17+ messages in thread
From: Wenbin Yao @ 2025-01-21  9:41 UTC (permalink / raw)
  To: vkoul, kishon, p.zabel, dmitry.baryshkov, abel.vesa, quic_qianyu,
	neil.armstrong, manivannan.sadhasivam, quic_devipriy,
	konrad.dybcio, linux-arm-msm, linux-phy, linux-kernel
  Cc: quic_wenbyao

The series aims to skip phy register programming and drive PCIe PHY with
register setting programmed in bootloader by simply toggling no_csr reset,
which once togglled, PHY hardware will be reset while PHY registers are
retained.

First, determine whether PHY setting can be skipped by checking
QPHY_START_CTRL register and the existence of nocsr reset. If it is
programmed and no_csr reset is supported, do no_csr reset and skip BCR
reset which will reset entire PHY.

This series also remove has_nocsr_reset flag in qmp_phy_cfg structure and
decide whether the PHY supports nocsr reset by checking the existence of
nocsr reset in device tree.

The series are tested on X1E80100-QCP and HDK8550.

Wenbin Yao (2):
  phy: qcom: pcie: Determine has_nocsr_reset dynamically
  phy: qcom: qmp-pcie: Add PHY register retention support

 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 109 ++++++++++++++---------
 1 file changed, 65 insertions(+), 44 deletions(-)


base-commit: bcf2acd8f64b0a5783deeeb5fd70c6163ec5acd7
-- 
2.34.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

end of thread, other threads:[~2025-02-08  2:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-21  9:41 [PATCH 0/2] phy: qcom: qmp-pcie: Add PCIe PHY no_csr reset support Wenbin Yao
2025-01-21  9:41 ` [PATCH 1/2] phy: qcom: pcie: Determine has_nocsr_reset dynamically Wenbin Yao
2025-01-21  9:55   ` Abel Vesa
2025-01-24  7:10   ` Manivannan Sadhasivam
2025-01-21  9:41 ` [PATCH 2/2] phy: qcom: qmp-pcie: Add PHY register retention support Wenbin Yao
2025-01-21 10:36   ` Dmitry Baryshkov
2025-01-22  7:17     ` Wenbin Yao (Consultant)
2025-01-22  9:43       ` Dmitry Baryshkov
2025-01-24  6:22         ` Qiang Yu
2025-01-24  7:08           ` Manivannan Sadhasivam
2025-01-25 13:10             ` Konrad Dybcio
2025-01-29  8:29               ` neil.armstrong
2025-01-29 11:29                 ` Konrad Dybcio
2025-01-29 13:41                   ` neil.armstrong
2025-01-29 13:55                     ` Konrad Dybcio
2025-01-29 14:19                       ` neil.armstrong
2025-02-08  2:24                         ` Konrad Dybcio

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).