[PATCH 0/4] phy: qcom: extract common clock-handling code

Dmitry Baryshkov posted 4 patches 1 day ago
drivers/phy/qualcomm/Kconfig                     |   8 +
drivers/phy/qualcomm/Makefile                    |   1 +
drivers/phy/qualcomm/phy-qcom-dp-common.c        | 164 +++++++++++++++
drivers/phy/qualcomm/phy-qcom-dp-common.h        |  22 ++
drivers/phy/qualcomm/phy-qcom-edp.c              | 181 ++---------------
drivers/phy/qualcomm/phy-qcom-qmp-combo.c        | 244 +++--------------------
drivers/phy/qualcomm/phy-qcom-qmp-common.h       |  67 +++++++
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c |  62 +-----
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c         |  83 ++------
drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c   | 124 +-----------
drivers/phy/qualcomm/phy-qcom-qmp-usb.c          |  60 +-----
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c         |  60 +-----
12 files changed, 334 insertions(+), 742 deletions(-)
[PATCH 0/4] phy: qcom: extract common clock-handling code
Posted by Dmitry Baryshkov 1 day ago
QMP PHY drivers share code to register PIPE clock and to handle DP link
and pixel clocks. While the amount of share code is not that big, it's
still better to extract it to common helpers, reducing code duplication.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Dmitry Baryshkov (4):
      phy: qcom: qmp-usb-legacy: switch to common helpers
      phy: qcom: qmp: extract common PIPE clock helpers
      phy: qcom: qmp-pcie: simplify AUX clock registration
      phy: qcom: extract common code for DP clocks

 drivers/phy/qualcomm/Kconfig                     |   8 +
 drivers/phy/qualcomm/Makefile                    |   1 +
 drivers/phy/qualcomm/phy-qcom-dp-common.c        | 164 +++++++++++++++
 drivers/phy/qualcomm/phy-qcom-dp-common.h        |  22 ++
 drivers/phy/qualcomm/phy-qcom-edp.c              | 181 ++---------------
 drivers/phy/qualcomm/phy-qcom-qmp-combo.c        | 244 +++--------------------
 drivers/phy/qualcomm/phy-qcom-qmp-common.h       |  67 +++++++
 drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c |  62 +-----
 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c         |  83 ++------
 drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c   | 124 +-----------
 drivers/phy/qualcomm/phy-qcom-qmp-usb.c          |  60 +-----
 drivers/phy/qualcomm/phy-qcom-qmp-usbc.c         |  60 +-----
 12 files changed, 334 insertions(+), 742 deletions(-)
---
base-commit: be5d4872e528796df9d7425f2bd9b3893eb3a42c
change-id: 20250907-qcom-dp-phy-8e94929431e1

Best regards,
-- 
With best wishes
Dmitry