]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/tgl: Add hpd interrupt handling
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 25 Jul 2019 23:48:11 +0000 (16:48 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 30 Jul 2019 19:31:08 +0000 (12:31 -0700)
commit3434b98baf8065f5e6027bf6183f6296a7661ad8
treeda81695769ff2f3c0fadb19dc75ee04a212a2fdb
parenta86bed3ad7a433db8bc63963b66bd8adf9fbf784
drm/i915/tgl: Add hpd interrupt handling

Add hotdplug detection for all ports on TGP. icp_hpd_detection_setup()
is refactored to be shared with TGP.

While we increase the number of pins, add a BUILD_BUG_ON() to avoid
going over the number of bits allowed.

v2: use BITS_PER_TYPE and correct type for BUILD_BUG_ON() check
    (requested by Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jose Souza <jose.souza@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190725234813.27179-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h