phy: tegra: xusb: Explicitly configure HS_DISCON_LEVEL to 0x7

The USB2 Bias Pad Control register manages analog parameters for signal
detection. Previously, the HS_DISCON_LEVEL relied on hardware reset
values, which may lead to the detection failure.

Explicitly configure HS_DISCON_LEVEL to 0x7. This ensures the disconnect
threshold is sufficient to guarantee reliable detection.

Fixes: bbf711682cd5 ("phy: tegra: xusb: Add Tegra186 support")
Cc: stable@vger.kernel.org
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Link: https://patch.msgid.link/20251212032116.768307-1-waynec@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by Wayne Chang and committed by Vinod Koul b246caa6 7d8f725b

+3
+3
drivers/phy/tegra/xusb-tegra186.c
··· 84 #define XUSB_PADCTL_USB2_BIAS_PAD_CTL0 0x284 85 #define BIAS_PAD_PD BIT(11) 86 #define HS_SQUELCH_LEVEL(x) (((x) & 0x7) << 0) 87 88 #define XUSB_PADCTL_USB2_BIAS_PAD_CTL1 0x288 89 #define USB2_TRK_START_TIMER(x) (((x) & 0x7f) << 12) ··· 624 value &= ~BIAS_PAD_PD; 625 value &= ~HS_SQUELCH_LEVEL(~0); 626 value |= HS_SQUELCH_LEVEL(priv->calib.hs_squelch); 627 padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL0); 628 629 udelay(1);
··· 84 #define XUSB_PADCTL_USB2_BIAS_PAD_CTL0 0x284 85 #define BIAS_PAD_PD BIT(11) 86 #define HS_SQUELCH_LEVEL(x) (((x) & 0x7) << 0) 87 + #define HS_DISCON_LEVEL(x) (((x) & 0x7) << 3) 88 89 #define XUSB_PADCTL_USB2_BIAS_PAD_CTL1 0x288 90 #define USB2_TRK_START_TIMER(x) (((x) & 0x7f) << 12) ··· 623 value &= ~BIAS_PAD_PD; 624 value &= ~HS_SQUELCH_LEVEL(~0); 625 value |= HS_SQUELCH_LEVEL(priv->calib.hs_squelch); 626 + value &= ~HS_DISCON_LEVEL(~0); 627 + value |= HS_DISCON_LEVEL(0x7); 628 padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL0); 629 630 udelay(1);