]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/lspcon: Enable AUX interrupts for resume time initialization
authorImre Deak <imre.deak@intel.com>
Tue, 29 Nov 2016 19:40:29 +0000 (21:40 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 1 Dec 2016 13:22:50 +0000 (15:22 +0200)
commite3e51e9f833c63bbdacf00030cb417e1dd4d170a
tree377dc7e06c2063d717064fb42a9989dec5162456
parentffb7ad44e134ee89d2c752a42758ad6c7e91a81e
drm/i915/lspcon: Enable AUX interrupts for resume time initialization

For LSPCON initialization during system resume we need AUX
functionality, but we call the corresponding encoder reset hook with all
interrupts disabled. Without interrupts we'll do a poll-wait for AUX
transfer completions, which adds a significant delay if the transfers
timeout/need to be retried for some reason.

Fix this by enabling interrupts before calling the reset hooks. Note
that while this will enable AUX interrupts it will keep HPD interrupts
disabled, in a similar way to the init time output setup code.

This issue existed since LSPCON support was added.

v2:
- Rebased on drm-tip.

Cc: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: David Weinehall <david.weinehall@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1480448429-27739-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_drv.c