drm/i915/lspcon: Fix resume time initialization due to unasserted HPD
authorImre Deak <imre.deak@intel.com>
Fri, 27 Jan 2017 09:39:19 +0000 (11:39 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 16 Feb 2017 09:59:10 +0000 (11:59 +0200)
commit4b84b4a5507913ee0da27b1f1b27671937839de6
tree2117d1c452bc6fefe10030a72daf8dbb4c352e4b
parent2a57d9cce1c08578097d965468e37f06d71fa495
drm/i915/lspcon: Fix resume time initialization due to unasserted HPD

During system resume time initialization the HPD level on LSPCON ports
can stay low for an extended amount of time, leading to failed AUX
transfers and LSPCON initialization. Fix this by waiting for HPD to get
asserted.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99178
Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: <stable@vger.kernel.org> # v4.9+
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1485509961-9010-3-git-send-email-imre.deak@intel.com
(cherry picked from commit 390b4e00241ce14ca3967c4698c8f6a158c5a674)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lspcon.c