]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
drm/exynos: Read hpd gpio in is_connected callback
authorSean Paul <seanpaul@chromium.org>
Thu, 3 Apr 2014 15:11:03 +0000 (20:41 +0530)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:07 +0000 (02:07 +0900)
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>
drivers/gpu/drm/exynos/exynos_hdmi.c

index f1bdf991111ca68e87fb521fda0beb400adf0137..13c783a2ee014f1b85ac57b01a1cdde1ef094e5d 100644 (file)
@@ -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;
 }