phy: rockchip-samsung-hdptx-hdmi: Reset phy when disable phy

Phy must be reset or GRF_HDPTX_STATUS will always show phy
is locked.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I9f1ade5ce6f744b1d9590f72b95bc18c58b6d12b
This commit is contained in:
Algea Cao
2022-03-16 09:34:51 +08:00
parent 2f4d9c9d83
commit 2141f96c8c

View File

@@ -1022,6 +1022,10 @@ static void hdptx_phy_disable(struct rockchip_hdptx_phy *hdptx)
{
u32 val;
reset_control_assert(hdptx->phy_reset);
udelay(20);
reset_control_deassert(hdptx->phy_reset);
hdptx_write(hdptx, LANE_REG0300, 0x82);
hdptx_write(hdptx, SB_REG010F, 0xc1);
hdptx_write(hdptx, SB_REG0110, 0x1);