Reiplace HDMI unplug polling with HPD line reading.
authorStuart Abercrombie <sabercrombie@chromium.org>
Thu, 17 Jan 2013 00:52:17 +0000 (16:52 -0800)
committerChromeBot <chrome-bot@google.com>
Thu, 17 Jan 2013 02:31:52 +0000 (18:31 -0800)
commit50808ae2944766d243f41050118baf8f531f51ff
tree3bf03645cb6ecc36d10494403212b9b74f7e02c8
parenteeca2cc8bf30f660f423dc16dc0b229530589cdf
Reiplace HDMI unplug polling with HPD line reading.

It looked as if this didn't work at the HW level, but it actually does.
Polling cost us about 100mW if an HDMI monitor was attached.
This also responds more quickly to unplugging.

Based on upstream change:
http://lists.freedesktop.org/archives/intel-gfx/2012-December/023314.html

BUG=chromium-os:37674
TEST=HDMI hotplug works and responds immediately
Change-Id: I9e88671b1ac0e6204feda2666608f30427c8bb79
Reviewed-on: https://gerrit.chromium.org/gerrit/41474
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Stuart Abercrombie <sabercrombie@chromium.org>
Commit-Queue: Stuart Abercrombie <sabercrombie@chromium.org>
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/i915/intel_hdmi.c
include/drm/drm_crtc.h