phy/rockchip: samsung-hdptx: make deskew fifo works on shared pointer

the deskew fifo works on its own pointers may cause inter-lane skew
to exceed the vesa standard, this poses a risk of errors in dp sink
parsing MSA packet which inserted in data stream

Change-Id: Ia3bdfaed8696c8f7f21f39f0b55d18b1dce7761f
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
This commit is contained in:
Guochun Huang
2023-08-02 06:19:29 +00:00
committed by 黄国椿
parent ed5a9690cf
commit c19bda6df3

View File

@@ -318,6 +318,7 @@
/* lane_reg031E */
#define LN_POLARITY_INV BIT(2)
#define LN_LANE_MODE BIT(1)
#define LANE_REG(lane, offset) (0x400 * (lane) + (offset))
@@ -1059,8 +1060,9 @@ static int rockchip_hdptx_phy_power_on(struct phy *phy)
u32 invert = hdptx->lane_polarity_invert[lane];
regmap_update_bits(hdptx->regmap, LANE_REG(lane, 0x0c78),
LN_POLARITY_INV,
FIELD_PREP(LN_POLARITY_INV, invert));
LN_POLARITY_INV | LN_LANE_MODE,
FIELD_PREP(LN_POLARITY_INV, invert) |
FIELD_PREP(LN_LANE_MODE, 1));
}
if (mode == PHY_MODE_DP) {