mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
ODROID-C5: drm: report HDMI connected until first HPD
Prevent display managers from failing during HDMI-less boot by keeping the HDMI connector logically connected until the first real HPD high event. After that, use normal HPD based detection for disconnect/reconnect. Signed-off-by: YoungSoo Shin <shinys000114@gmail.com> Change-Id: If1d9c62d4c8ddbb42fd918ffb11871075115560c
This commit is contained in:
@@ -764,6 +764,13 @@ static enum drm_connector_status am_hdmitx_connector_detect
|
||||
int hpdstat = hdmitx_get_hpd_state(tx_comm);
|
||||
|
||||
DRM_DEBUG_KMS("am_hdmi_connector_detect [%d]\n", hpdstat);
|
||||
#ifdef CONFIG_ARCH_MESON_ODROID_COMMON
|
||||
if (hpdstat)
|
||||
am_hdmi->odroid_hpd_seen = true;
|
||||
|
||||
if (!am_hdmi->odroid_hpd_seen)
|
||||
return connector_status_connected;
|
||||
#endif
|
||||
return hpdstat == 1 ?
|
||||
connector_status_connected : connector_status_disconnected;
|
||||
}
|
||||
@@ -2710,6 +2717,10 @@ static void meson_hdmitx_hpd_cb(void *data)
|
||||
#endif
|
||||
|
||||
DRM_INFO("drm hdmitx hpd notify\n");
|
||||
#ifdef CONFIG_ARCH_MESON_ODROID_COMMON
|
||||
if (hdmitx_get_hpd_state(tx_comm))
|
||||
am_hdmi->odroid_hpd_seen = true;
|
||||
#endif
|
||||
if (!hdmitx_get_hpd_state(tx_comm) && !am_hdmi->android_path) {
|
||||
drm_modeset_lock(mode_lock, NULL);
|
||||
meson_hdmitx_disconnect_hdcp(am_hdmi);
|
||||
|
||||
@@ -76,6 +76,7 @@ struct am_hdmi_tx {
|
||||
* programmed normally again.
|
||||
*/
|
||||
bool uboot_reuse_consumed;
|
||||
bool odroid_hpd_seen;
|
||||
#endif
|
||||
|
||||
int min_vfreq;
|
||||
|
||||
Reference in New Issue
Block a user