]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Refactor .hpd_irq_setup() calls a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Oct 2020 18:58:09 +0000 (21:58 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Oct 2020 17:18:53 +0000 (20:18 +0300)
commit28a9cc1e97c5ebdfeb360a1b2cfbcdf17b3d2ea7
tree0485b030bca2146a71865dd78c8f206e1499074b
parentc8a1f59c0c997f4f2b68b38f0fcd3c46fd4c5e3e
drm/i915: Refactor .hpd_irq_setup() calls a bit

Add a small wrapper for .hpd_irq_setup() which does the
"do we even have the hook?" and "are display interrupts enabled?"
checks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201006185809.4655-3-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_hotplug.c