drm/bridge: synopsys: dw-hdmi: disable phy in dw_hdmi_bind

If hdmi is enabled in uboot and pluged out when booting kernel,
the hdmi phy is still enabled. It's better to disable it to
match the real status.

Change-Id: Ia1c5ede6499ee277d08c35a85c50e3257305f90f
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2018-03-01 14:24:33 +08:00
committed by Tao Huang
parent b87d97a99c
commit 955745bc12

View File

@@ -3614,6 +3614,8 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
hdmi->disabled = false;
hdmi->bridge_is_on = true;
hdmi->phy.enabled = true;
} else if (ret & HDMI_PHY_TX_PHY_LOCK) {
hdmi->phy.ops->disable(hdmi, hdmi->phy.data);
}
init_hpd_work(hdmi);
initialize_hdmi_ih_mutes(hdmi);