Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom: edp: Fix NULL pointer dereference for phy v6 (x1e80100)

For Glymur SoC support, the com_clk_fwd_cfg callback was added, and a
stub implementation was added for the v4 of the hardware. However it
was omitted for the v6, causing a NULL pointer dereference oops on
Hamoa/Purwa (X1E/X1P) SoC devices. Fix by adding the appropriate stub.

Fixes: add66a6673bc ("phy: qcom: edp: Add Glymur platform support")
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Val Packett <val@packett.cool>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tested-by: Yijie Yang <yijie.yang@oss.qualcomm.com> # Purwa-IoT-EVK
Link: https://patch.msgid.link/20260111083317.604754-1-val@packett.cool
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Val Packett and committed by
Vinod Koul
70812056 a6998089

+1
+1
drivers/phy/qualcomm/phy-qcom-edp.c
··· 758 758 .com_power_on = qcom_edp_phy_power_on_v6, 759 759 .com_resetsm_cntrl = qcom_edp_phy_com_resetsm_cntrl_v6, 760 760 .com_bias_en_clkbuflr = qcom_edp_com_bias_en_clkbuflr_v6, 761 + .com_clk_fwd_cfg = qcom_edp_com_clk_fwd_cfg_v4, 761 762 .com_configure_pll = qcom_edp_com_configure_pll_v6, 762 763 .com_configure_ssc = qcom_edp_com_configure_ssc_v6, 763 764 };