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:
2026-06-05 12:47:31 +09:00
parent df484b6546
commit 34daba993d
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -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);
+1
View File
@@ -76,6 +76,7 @@ struct am_hdmi_tx {
* programmed normally again.
*/
bool uboot_reuse_consumed;
bool odroid_hpd_seen;
#endif
int min_vfreq;