Skip to content

Commit

Permalink
drm/exynos: Read hpd gpio in is_connected callback
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Rahul Sharma <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
  • Loading branch information
atseanpaul authored and daeinki committed Jun 1, 2014
1 parent 47d173f commit 5137c8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5137c8c

Please sign in to comment.