summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos/exynos_hdmi.c
diff options
context:
space:
mode:
authorSean Paul2014-04-03 17:11:03 +0200
committerInki Dae2014-06-01 19:07:07 +0200
commit5137c8ca4be8cd54c1bc74bc1f163a57c7871b38 (patch)
treee922f8f6692927dce168c968c4d2d36ee862ff3d /drivers/gpu/drm/exynos/exynos_hdmi.c
parentdrm/exynos: hdmi: remove unnecessary memset (diff)
downloadkernel-qcow2-linux-5137c8ca4be8cd54c1bc74bc1f163a57c7871b38.tar.gz
kernel-qcow2-linux-5137c8ca4be8cd54c1bc74bc1f163a57c7871b38.tar.xz
kernel-qcow2-linux-5137c8ca4be8cd54c1bc74bc1f163a57c7871b38.zip
drm/exynos: Read hpd gpio in is_connected callback
This patch adds a gpio read of hpd during the is_connected callback. This fixes the case where hdmi is off going into suspend and the cable is plugged in while suspended. In this case, the hpd interrupt does not fire and is_connected will return false. Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Rahul Sharma <Rahul.Sharma@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_hdmi.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index f1bdf991111c..13c783a2ee01 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -805,6 +805,8 @@ static enum drm_connector_status hdmi_detect(struct drm_connector *connector,
{
struct hdmi_context *hdata = ctx_from_connector(connector);
+ hdata->hpd = gpio_get_value(hdata->hpd_gpio);
+
return hdata->hpd ? connector_status_connected :
connector_status_disconnected;
}