drm/i915: Handle HPD when it has actually occurred
authorSonika Jindal <sonika.jindal@intel.com>
Wed, 8 Jul 2015 11:37:47 +0000 (17:07 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Jul 2015 15:18:18 +0000 (17:18 +0200)
commitaaf5ec2e51ab1d9c5e962b4728a1107ed3ff7a3e
treea4d11edf09698542f5323773257cac80168568ff
parent8df5dd57fd2f4e7f02793457a3bd61e5d4a644d5
drm/i915: Handle HPD when it has actually occurred

Writing to PCH_PORT_HOTPLUG for each interrupt is not required.
Handle it only if hpd has actually occurred like we handle other
interrupts.
v2: Make few variables local to if block (Ville)
v3: Add check for ibx/cpt both (Ville).
    While at it, remove the redundant check for hotplug_trigger from
    pch_get_hpd_pins
v4: Indentation (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c