Poll for HDMI unplugs in Intel driver.
authorStuart Abercrombie <sabercrombie@chromium.org>
Wed, 26 Sep 2012 18:36:14 +0000 (11:36 -0700)
committerGerrit <chrome-bot@google.com>
Thu, 27 Sep 2012 01:00:12 +0000 (18:00 -0700)
commit92a59224ef23e62a797f12dff89042f96539b3bf
tree36d9bacb1da7b238e0fb336a4d8d015bbd84d790
parentc78154edeb625fc25051af2b3d165ab60c979688
Poll for HDMI unplugs in Intel driver.

The driver was relying on a successful EDID read following a hotplug interrupt to indicate HDMI sink presence.  This leads to missing HDMI cable unplug events because the DDC lines can remain up, allowing an EDID read to complete, well after the HPD line goes down during unplugging.

Unfortunately the hardware does not seem to allow querying the HPD line directly.

BUG=chrome-os-partner:13495
TEST=HDMI unplugs are now detected.

Change-Id: I82f33809cdd4fca5cf427902641ba678241f6647
Reviewed-on: https://gerrit.chromium.org/gerrit/34121
Tested-by: Stuart Abercrombie <sabercrombie@chromium.org>
Commit-Ready: Stuart Abercrombie <sabercrombie@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/drm/i915/intel_hdmi.c