hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
....@@ -318,6 +318,7 @@
318318
319319 /* lane_reg031E */
320320 #define LN_POLARITY_INV BIT(2)
321
+#define LN_LANE_MODE BIT(1)
321322
322323 #define LANE_REG(lane, offset) (0x400 * (lane) + (offset))
323324
....@@ -1059,8 +1060,9 @@
10591060 u32 invert = hdptx->lane_polarity_invert[lane];
10601061
10611062 regmap_update_bits(hdptx->regmap, LANE_REG(lane, 0x0c78),
1062
- LN_POLARITY_INV,
1063
- FIELD_PREP(LN_POLARITY_INV, invert));
1063
+ LN_POLARITY_INV | LN_LANE_MODE,
1064
+ FIELD_PREP(LN_POLARITY_INV, invert) |
1065
+ FIELD_PREP(LN_LANE_MODE, 1));
10641066 }
10651067
10661068 if (mode == PHY_MODE_DP) {