drm: bridge: synopsys: update mc_clkdis in dw_hdmi_bind

If vop return error when showing kernel logo, connector atomic flush
will not be call, and mc_clkdis can not be updated.

This patch update mc_clkdis in the dw_hdmi_bind, when phy clock is
locked and HPD is connected.

Change-Id: I1498d787a993961fe75236c309ecc3c898d611a4
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2019-08-08 10:31:34 +08:00
committed by Tao Huang
parent 5975fbc62e
commit fccc5e8d9c

View File

@@ -3100,6 +3100,10 @@ __dw_hdmi_probe(struct platform_device *pdev,
prod_id1 & HDMI_PRODUCT_ID1_HDCP ? "with" : "without",
hdmi->phy.name);
ret = hdmi_readb(hdmi, HDMI_PHY_STAT0);
if (ret & (HDMI_PHY_TX_PHY_LOCK | HDMI_PHY_HPD))
hdmi->mc_clkdis = hdmi_readb(hdmi, HDMI_MC_CLKDIS);
init_hpd_work(hdmi);
initialize_hdmi_ih_mutes(hdmi);