From 8aad83b839164c1d8456bb2a63ac2a1e339f7872 Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Wed, 26 Dec 2018 10:02:20 +0800 Subject: [PATCH] drm/bridge: synopsys: dw-hdmi: Remove hpd_state judgment of atomic_begin and atomic_flush There is no need to judge hpd status in atomic_begin and atomic_flush. And this judgment may cause display error if TV make hpd status change frequently. Change-Id: I2ed87ef42b78a8faadc4bcc5b6b16d9390644903 Signed-off-by: Algea Cao --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 6b8f334d5de9..521223914de9 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2578,7 +2578,7 @@ dw_hdmi_connector_atomic_begin(struct drm_connector *connector, unsigned int enc_in_encoding; unsigned int enc_out_encoding; - if (!hdmi->hpd_state || !conn_state->crtc) + if (!conn_state->crtc) return; if (!hdmi->hdmi_data.video_mode.mpixelclock) @@ -2629,7 +2629,7 @@ dw_hdmi_connector_atomic_flush(struct drm_connector *connector, unsigned int out_bus_format = hdmi->hdmi_data.enc_out_bus_format; - if (!hdmi->hpd_state || !conn_state->crtc) + if (!conn_state->crtc) return; DRM_DEBUG("%s\n", __func__);