Skip to contentSkip to conversation

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

PATCH Applied Wesley Cheng 4 participants 4 messages Sep 20, 2025 – Nov 20, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

From: Ronak Raheja <[email protected]>

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.

---
 drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/phy/qualcomm/phy-qcom-m31-eusb2.c +2 -0
index bf32572566c4..fbf5e999ca7a 100644
@@ -25,6 +25,7 @@
 #define POR				BIT(1)
 
 #define USB_PHY_HS_PHY_CTRL_COMMON0	(0x54)
+#define PHY_ENABLE			BIT(0)
 #define SIDDQ_SEL			BIT(1)
 #define SIDDQ				BIT(2)
 #define FSEL				GENMASK(6, 4)
@@ -81,6 +82,7 @@ struct m31_eusb2_priv_data {
 static const struct m31_phy_tbl_entry m31_eusb2_setup_tbl[] = {
 	M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG0, UTMI_PHY_CMN_CTRL_OVERRIDE_EN, 1),
 	M31_EUSB_PHY_INIT_CFG(USB_PHY_UTMI_CTRL5, POR, 1),
+	M31_EUSB_PHY_INIT_CFG(USB_PHY_HS_PHY_CTRL_COMMON0, PHY_ENABLE, 1),
 	M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG1, PLL_EN, 1),
 	M31_EUSB_PHY_INIT_CFG(USB_PHY_FSEL_SEL, FSEL_SEL, 1),
 };
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Wesley Cheng

From: Ronak Raheja <[email protected]>

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.

Quoted 6 lines
---
 drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 2 lines
With best wishes
Dmitry
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Wesley Cheng
Quoted 26 lines · Wesley Cheng

From: Ronak Raheja <[email protected]>

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.

---
  drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/phy/qualcomm/phy-qcom-m31-eusb2.c +1 -0
index bf32572566c4..fbf5e999ca7a 100644
@@ -25,6 +25,7 @@
  #define POR				BIT(1)
 
  #define USB_PHY_HS_PHY_CTRL_COMMON0	(0x54)
+#define PHY_ENABLE			BIT(0)
  #define SIDDQ_SEL			BIT(1)
  #define SIDDQ				BIT(2)
  #define FSEL				GENMASK(6, 4)

drivers/phy/qualcomm/phy-qcom-m31-eusb2.c struct m31_eusb2_priv_data { · line 88

Quoted 7 lines
drivers/phy/qualcomm/phy-qcom-m31-eusb2.c +1 -0
@@ -81,6 +82,7 @@ struct m31_eusb2_priv_data {
  static const struct m31_phy_tbl_entry m31_eusb2_setup_tbl[] = {
  	M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG0, UTMI_PHY_CMN_CTRL_OVERRIDE_EN, 1),
  	M31_EUSB_PHY_INIT_CFG(USB_PHY_UTMI_CTRL5, POR, 1),
+	M31_EUSB_PHY_INIT_CFG(USB_PHY_HS_PHY_CTRL_COMMON0, PHY_ENABLE, 1),
  	M31_EUSB_PHY_INIT_CFG(USB_PHY_CFG1, PLL_EN, 1),
  	M31_EUSB_PHY_INIT_CFG(USB_PHY_FSEL_SEL, FSEL_SEL, 1),
  };
maintainer Applied
#3 lore raw
In reply to Wesley Cheng
Quoted 6 lines · Wesley Cheng

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.

Applied, thanks!

[1/1] phy: qcom: m31-eusb2: Update init sequence to set PHY_ENABLE

      commit: 7044ed6749c8a7d49e67b2f07f42da2f29d26be6

Best regards,

Signature · 1 line
~Vinod