]> Gentwo Git Trees - linux/.git/commit
phy: qcom: qmp-pcie: restore compatibility with existing DTs
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 14 Jun 2024 10:18:24 +0000 (13:18 +0300)
committerVinod Koul <vkoul@kernel.org>
Sat, 15 Jun 2024 11:31:16 +0000 (17:01 +0530)
commit912cee11c14376a6f707d72fcaf343a40bff48e8
tree3e0493f57182a9c1993a93dff963a02835a5bb69
parent8e97ddd586148fe8852c388eb7c9bba70223da5f
phy: qcom: qmp-pcie: restore compatibility with existing DTs

Existing device trees specify only a single clock-output-name for the
PCIe PHYs. The function phy_aux_clk_register() expects a second entry in
that property. When it doesn't find it, it returns an error, thus
failing the probe of the PHY and thus breaking support for the
corresponding PCIe host.

Follow the approach of the combo USB+DT PHY and generate the name for
the AUX clocks instead of requiring it in DT.

Fixes: 583ca9ccfa80 ("phy: qcom: qmp-pcie: register second optional PHY AUX clock")
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240614-fix-pcie-phy-compat-v3-1-730d1811acf4@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c