]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: fix transcoder state readout
authorJani Nikula <jani.nikula@intel.com>
Tue, 4 Dec 2018 10:19:26 +0000 (12:19 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 4 Dec 2018 17:05:51 +0000 (19:05 +0200)
commit627871296b1dd240657b4ce100dff7f18341bd70
tree18edd3aa820771aab8091653f6d023395fef48b5
parent2297a07fe1689fcea63de56901d8b8145c3cc4ce
drm/i915/icl: fix transcoder state readout

Commit ac1907f271fe ("drm/i915/icl: Consider DSI for getting transcoder
state") clobbers the previously read TRANS_DDI_FUNC_CTL_EDP register
contents with TRANS_DDI_FUNC_CTL_DSI0 contents. Fix the state readout,
and handle DSI 1 while at it.

Use a bitmask for iterating and logging transcoders, because the allowed
combinations are a bit funky.

Fixes: ac1907f271fe ("drm/i915/icl: Consider DSI for getting transcoder state")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108928
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Madhav Chauhan <madhav.chauhan@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181204101926.17174-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_display.c