]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: qcom: edp: Make the number of clocks flexible
authorAbel Vesa <abel.vesa@linaro.org>
Wed, 24 Dec 2025 10:53:28 +0000 (12:53 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 1 Jan 2026 11:02:59 +0000 (16:32 +0530)
commit7d51b709262c5aa31d2b9cd31444112c1b2dae03
tree7c2ec06d1fc526fa28a44916f55ba2901c0ae8bb
parent6b99eeacf6abb1ff2d6463c84e490343f39cf11a
phy: qcom: edp: Make the number of clocks flexible

On X Elite, the DP PHY needs another clock called ref, while all other
platforms do not.

The current X Elite devices supported upstream work fine without this
clock, because the boot firmware leaves this clock enabled. But we should
not rely on that. Also, even though this change breaks the ABI, it is
needed in order to make the driver disables this clock along with the
other ones, for a proper bring-down of the entire PHY.

So in order to handle these clocks on different platforms, make the driver
get all the clocks regardless of how many there are provided.

Cc: stable@vger.kernel.org # v6.10
Fixes: db83c107dc29 ("phy: qcom: edp: Add v6 specific ops and X1E80100 platform support")
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://patch.msgid.link/20251224-phy-qcom-edp-add-missing-refclk-v5-2-3f45d349b5ac@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-edp.c