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

Configure Feed

Select the types of activity you want to include in your feed.

phy: uniphier-pcie: Set VCOPLL clamp mode in PHY register

Set VCOPLL clamp mode to mode 0 to avoid hardware unstable issue.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1635503947-18250-6-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Kunihiko Hayashi and committed by
Vinod Koul
25bba42f 1c1597c8

+5
+5
drivers/phy/socionext/phy-uniphier-pcie.c
··· 51 51 #define PCL_PHY_R26 26 52 52 #define VCO_CTRL GENMASK(7, 4) /* Tx VCO adjustment value */ 53 53 #define VCO_CTRL_INIT_VAL 5 54 + #define PCL_PHY_R28 28 55 + #define VCOPLL_CLMP GENMASK(3, 2) /* Tx VCOPLL clamp mode */ 56 + #define VCOPLL_CLMP_VAL 0 54 57 55 58 struct uniphier_pciephy_priv { 56 59 void __iomem *base; ··· 161 158 FIELD_PREP(RX_EQ_ADJ, RX_EQ_ADJ_VAL)); 162 159 uniphier_pciephy_set_param(priv, PCL_PHY_R26, VCO_CTRL, 163 160 FIELD_PREP(VCO_CTRL, VCO_CTRL_INIT_VAL)); 161 + uniphier_pciephy_set_param(priv, PCL_PHY_R28, VCOPLL_CLMP, 162 + FIELD_PREP(VCOPLL_CLMP, VCOPLL_CLMP_VAL)); 164 163 usleep_range(1, 10); 165 164 166 165 uniphier_pciephy_deassert(priv);