]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: qcom: edp: Fix NULL pointer dereference for phy v6 (x1e80100)
authorVal Packett <val@packett.cool>
Sun, 11 Jan 2026 08:25:59 +0000 (05:25 -0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jan 2026 13:37:30 +0000 (19:07 +0530)
commit70812056fbfb9348788e35b7641ff959b711840e
treefd4376c1dc1104e541e7bcb1f62dd0612a7f8c8a
parenta699808928937000e550a7cd5355db93ef99e236
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>
drivers/phy/qualcomm/phy-qcom-edp.c