]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/lspcon: Switch back to PCON mode after output replug
authorImre Deak <imre.deak@intel.com>
Wed, 22 Feb 2017 15:10:52 +0000 (17:10 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 24 Feb 2017 13:57:49 +0000 (15:57 +0200)
commit8eb08ffb953bd0523f26c090a5a641f2dd87d991
tree83462c9f86231c365a7987f822de949aa29c7ece
parentfbdf20665598a5e5da316da5a80546f40e76de21
drm/i915/lspcon: Switch back to PCON mode after output replug

At least a ParadTech PS175 LSPCON chip/firmware uses long instead of
short pulses to signal output unplug/plug events. This is contrary to
how branch devices normally work which use short HPD signaling. This
chip will also switch to LS mode after an unplug event, which could be
the consequence of the long HPD signaling semantics and an effort to
save power automatically. Because of this we'll fail to do AUX and
detect the output after a replug event.

To fix this make sure we are in PCON mode during connector detection.

v2:
- Switch the mode in the proper spot.

Cc: raptorteak@gmail.com
Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98912
Reported-and-tested-by: raptorteak@gmail.com
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1487776252-6288-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_dp.c