From nobody Sun Feb 8 02:21:45 2026 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91F152030A for ; Fri, 9 Jan 2026 04:53:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767934383; cv=none; b=VsnkSMoTMQ3HehyTOItBh9NKnkPBxYq/3DONHNfyv1sgmPorX8hcpAJ6epGVi6Rt3s4h0+8t17utLrJrCP28na+3b7V6SGUGhSLZ0l13jUC1DJPH4iHG0+D6iqe6qyt9RN4ex35ueTIq3RXN92YLLVlauI7/UHvxmc6js2HKo54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767934383; c=relaxed/simple; bh=Ub/3B+5s6x/ZliFSYWzeUUQFbBFzzPcvDp5hBVKLFNI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SMx4LlaHdQtjQcTKh4RNIaOZAvkPg8d0XG2Hd18C9H3Rw6dodvDuFPEqEQarF8VH6kF43MPSgrrDcCoCX/6Z4ziO1JWXuipbzNBi7p7aX6V5WkeRWjQvzkXPkk3inwQM22vpgx7IKBWeMrfsSTwBZPgpLjRgg83p+H8Zl8SysKI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=QsQyL8jz; arc=none smtp.client-ip=91.218.175.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="QsQyL8jz" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1767934369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0sT/VZ1CSwla233JrqBYhiBuZRpeUu4pgJTS5UY//NI=; b=QsQyL8jzlaFe6wLdYzHyHRY39UomvJmyvsHYEWLwjdra/NwAJqUiO/UC0z3PGy0vjwVOR3 oq7Q3AmJQ78j4uDAR1uESizPzWtmhwW3fZuvLAxApF/kSnERyHbye8y5//r6cvlWbZbJgZ 4fSwjcNKTtVHMmQRIz8LLYMxpfRYGQtpGiEFn2WKqW8Z7tl5CFEVj8o4tgkcERCupFj9s5 3mHS+XoXrgApF2oECi6pVJPbNGNB1ANGsv3tThCo/6ppu/brV3zqRPQCXNXjUudjzK1SBg 43UOv5wt418MBZJm/IUT/Q+ThG/H2QeRPVcYVO247/ZA17zI4hDZyPenaKRqCA== From: Val Packett To: Vinod Koul , Neil Armstrong , Abel Vesa , Dmitry Baryshkov Cc: Val Packett , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] phy: qcom: edp: Fix NULL pointer dereference for phy v6 (x1e80100) Date: Fri, 9 Jan 2026 01:50:28 -0300 Message-ID: <20260109045214.5983-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" 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") Signed-off-by: Val Packett Reviewed-by: Abel Vesa --- drivers/phy/qualcomm/phy-qcom-edp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy= -qcom-edp.c index 13feab99feec..a17492db21d8 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -613,6 +613,11 @@ static int qcom_edp_phy_com_resetsm_cntrl_v6(const str= uct qcom_edp *edp) val, val & BIT(0), 500, 10000); } =20 +static int qcom_edp_com_clk_fwd_cfg_v6(const struct qcom_edp *edp) +{ + return 0; +} + static int qcom_edp_com_bias_en_clkbuflr_v6(const struct qcom_edp *edp) { /* Turn on BIAS current for PHY/PLL */ @@ -758,6 +763,7 @@ static const struct phy_ver_ops qcom_edp_phy_ops_v6 =3D= { .com_power_on =3D qcom_edp_phy_power_on_v6, .com_resetsm_cntrl =3D qcom_edp_phy_com_resetsm_cntrl_v6, .com_bias_en_clkbuflr =3D qcom_edp_com_bias_en_clkbuflr_v6, + .com_clk_fwd_cfg =3D qcom_edp_com_clk_fwd_cfg_v6, .com_configure_pll =3D qcom_edp_com_configure_pll_v6, .com_configure_ssc =3D qcom_edp_com_configure_ssc_v6, }; --=20 2.51.2