]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dsi: fix CHV dsi encoder hardware state readout on port C
authorJani Nikula <jani.nikula@intel.com>
Fri, 15 Apr 2016 12:47:31 +0000 (15:47 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 18 Apr 2016 09:20:56 +0000 (12:20 +0300)
commit631f4896eb8a4ca30e2884a37b53f0ec9b02df90
tree1796aaf572cb988e6816f70c23b17b601138528d
parent5c48b6ad922f210898551b305a185a2fb2a0f5e9
drm/i915/dsi: fix CHV dsi encoder hardware state readout on port C

Due to "some hardware limitation" the DPI enable bit in port C control
register does not get set on VLV. As a workaround we check the status in
pipe B conf register instead. The workaround was added in

commit a936c429b04468c8191d0808e6d280c9346df708
Author: Gaurav K Singh <gaurav.k.singh@intel.com>
Date:   Tue Dec 9 10:59:20 2014 +0530

    drm/i915: Software workaround for getting the HW status of DSI Port C on BYT

Empirical evidence (on Surface 3 with DSI on port C per VBT) shows that
this is the case also on CHV, so extend the workaround to CHV. We still
have the device ready register check in place, so this should not get
confused with e.g. HDMI on pipe B.

This fixes a number of state checker warnings on CHV DSI port C.

Cc: stable@vger.kernel.org
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460724451-13810-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dsi.c