Skip to content

Commit 7044ed6

Browse files
Ronak Rahejavinodkoul
authored andcommitted
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>
1 parent f842daf commit 7044ed6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/phy/qualcomm/phy-qcom-m31-eusb2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define POR BIT(1)
2626

2727
#define USB_PHY_HS_PHY_CTRL_COMMON0 (0x54)
28+
#define PHY_ENABLE BIT(0)
2829
#define SIDDQ_SEL BIT(1)
2930
#define SIDDQ BIT(2)
3031
#define FSEL GENMASK(6, 4)
@@ -81,6 +82,7 @@ struct m31_eusb2_priv_data {
8182
static const struct m31_phy_tbl_entry m31_eusb2_setup_tbl[] = {
8283
M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG0, UTMI_PHY_CMN_CTRL_OVERRIDE_EN, 1),
8384
M31_EUSB_PHY_INIT_CFG(USB_PHY_UTMI_CTRL5, POR, 1),
85+
M31_EUSB_PHY_INIT_CFG(USB_PHY_HS_PHY_CTRL_COMMON0, PHY_ENABLE, 1),
8486
M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG1, PLL_EN, 1),
8587
M31_EUSB_PHY_INIT_CFG(USB_PHY_FSEL_SEL, FSEL_SEL, 1),
8688
};

0 commit comments

Comments
 (0)