]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bxt: Add DDI hpd handler
authorShashank Sharma <shashank.sharma@intel.com>
Fri, 22 Aug 2014 12:10:41 +0000 (17:40 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Apr 2015 12:53:03 +0000 (14:53 +0200)
commitf0d9d959d07947ef71bf81102986d7230215ccbe
treecebfc0c4f8e4cc9ff21cf4c4ff5ed15e6eb2306d
parentafbf3153b52c5d1f61faa0210303a5efb6565ac0
drm/i915/bxt: Add DDI hpd handler

This patch adds a hot plug interrupt handler function for BXT.
What this function typically does is:
1. Check if hot plug is enabled from hot plug control register.
2. Call hpd_irq_handler with appropriate trigger to detect a
   plug storm and schedule a bottom half.
3. Clear sticky status bits in hot plug control register..

v2: (jani)
- drop redundant unlikely()
- s/Todo/FIXME:/ in code comment
- declare 'found' var in the scope where it's used
- check for IS_BROXTON before handling BXT_DE_PORT_HOTPLUG_MASK

Reviewed-by: Satheeshakrishna M <satheeshakrishna.m@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com> (v1)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c