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

phy: qcom: m31-eusb2: Update init sequence to set PHY_ENABLE

Certain platforms may not have the PHY_ENABLE bit set on power on reset.
Update the current sequence to explicitly write to enable the PHY_ENABLE
bit. This ensures that regardless of the platform, the PHY is properly
enabled.

Signed-off-by: Ronak Raheja <ronak.raheja@oss.qualcomm.com>
Signed-off-by: Wesley Cheng <wesley.cheng@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20250920032158.242725-1-wesley.cheng@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Ronak Raheja and committed by
Vinod Koul
7044ed67 f842daf7

+2
+2
drivers/phy/qualcomm/phy-qcom-m31-eusb2.c
··· 25 25 #define POR BIT(1) 26 26 27 27 #define USB_PHY_HS_PHY_CTRL_COMMON0 (0x54) 28 + #define PHY_ENABLE BIT(0) 28 29 #define SIDDQ_SEL BIT(1) 29 30 #define SIDDQ BIT(2) 30 31 #define FSEL GENMASK(6, 4) ··· 82 81 static const struct m31_phy_tbl_entry m31_eusb2_setup_tbl[] = { 83 82 M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG0, UTMI_PHY_CMN_CTRL_OVERRIDE_EN, 1), 84 83 M31_EUSB_PHY_INIT_CFG(USB_PHY_UTMI_CTRL5, POR, 1), 84 + M31_EUSB_PHY_INIT_CFG(USB_PHY_HS_PHY_CTRL_COMMON0, PHY_ENABLE, 1), 85 85 M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG1, PLL_EN, 1), 86 86 M31_EUSB_PHY_INIT_CFG(USB_PHY_FSEL_SEL, FSEL_SEL, 1), 87 87 };