]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: dts: qcom: kodiak: Fix PCIe1 PHY ref clock voting
authorKrishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Fri, 23 Jan 2026 12:12:27 +0000 (17:42 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 4 Mar 2026 19:40:26 +0000 (13:40 -0600)
commit30e8b6d42e8988eaaf0c2efd8c3797cb3884faea
treeedc8c370652f4997969ea9e1b5a1a14195fc9222
parentde8eed3597598f68387626e1bceaa9df12af0bc4
arm64: dts: qcom: kodiak: Fix PCIe1 PHY ref clock voting

GCC_PCIE_CLKREF_EN controls a repeater that provides the reference clock
only to the PCIe0 PHY. PCIe1 PHY receives its refclk directly from the CXO
source.

If the PCIe1 driver in HLOS votes for or against GCC_PCIE_CLKREF_EN, it
will inadvertently modify the refclk to PCIe0 as well. Since PCIe0 is
managed by WPSS while PCIe1 is managed in HLOS, there is no mechanism to
coordinate these votes. As a result, HLOS may disable this repeater
during suspend and cut off the PCIe0 PHY refclk while PCIe0 is still
active.

Replace the unused GCC_PCIE_CLKREF_EN clock entry with RPMH_CXO_CLK to
reflect the actual hardware wiring and prevent unintended changes to
PCIe0 clocking.

Fixes: 92e0ee9f83b3 ("arm64: dts: qcom: sc7280: Add PCIe and PHY related nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260123-fix_pcie1_phy_clk-v1-1-38f82ea01792@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/kodiak.dtsi