]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't use HPD_PORT_A as an alias for HPD_NONE
authorImre Deak <imre.deak@intel.com>
Tue, 21 Jul 2015 22:32:45 +0000 (15:32 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Jul 2015 08:44:51 +0000 (10:44 +0200)
commit85175317c693a04f6bfbfff613c6d7158b2b28e5
tree88a7236a26793b1666c1a54398e81e458e34c927
parent380a2c88dee31363fa8dde3ad8697445b02131d0
drm/i915: don't use HPD_PORT_A as an alias for HPD_NONE

Currently HPD_PORT_A is used as an alias for HPD_NONE to mean that the
given port doesn't support long/short HPD pulse detection. SDVO and CRT
ports are like this and for these ports we only want to know whether an
hot plug event was detected on the corresponding pin. Since at least on
BXT we need long/short pulse detection on PORT A as well (added by the
next patch) remove this aliasing of HPD_PORT_A/HPD_NONE and let the
return value of intel_hpd_pin_to_port() show whether long/short pulse
detection is supported on the passed in pin.

No functional change.

v2:
- rebase on top of -nightly (Daniel)
- make the check for intel_hpd_pin_to_port() return value more readable
  (Sivakumar)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Sonika Jindal <sonika.jindal@intel.com>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_hotplug.c