]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: deconflate PPS unlock from divisor register
authorJani Nikula <jani.nikula@intel.com>
Tue, 5 Mar 2019 13:52:14 +0000 (15:52 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 8 Mar 2019 11:25:31 +0000 (13:25 +0200)
commit660ef1bce69cf2b0f8f3456c27caa8c0030f9458
tree6ac0727027ded0118d3f9d6a43cca36ebd588476
parentc13632415340c47c61c2e480d29bbfa546e644fa
drm/i915/dp: deconflate PPS unlock from divisor register

PPS locking is a thing on pre-DDI, up to and including CPT and PPT.

The PPS divisor register exists up to gen 9 BC, replaced by a field in
the control register starting from gen 9 LP, i.e. BXT, GLK, and CNP on.

Commit 8498d8a8bdc3 ("drm/i915/bxt: eDP Panel Power sequencing") stopped
using the divisor register, but inadvertently conflated the PPS unlock
in the change. No longer doing the unlocking was the right thing to do,
however we should've stopped already at LPT (or DDI platforms).

Deconflate the two.

Arguably this could be moved away from here altogether, but this is the
minimally intrusive change for now.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190305135215.29862-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c