From 2141f96c8c71f5779fe5b2a1198e6820d3a7cd8a Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Wed, 16 Mar 2022 09:34:51 +0800 Subject: [PATCH] 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 Change-Id: I9f1ade5ce6f744b1d9590f72b95bc18c58b6d12b --- drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c index 4ea9ba07b432..a6d58cb35fa8 100644 --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c @@ -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);