drm/i915/dp: Restore PPS HW state from the encoder resume hook
authorImre Deak <imre.deak@intel.com>
Wed, 10 Aug 2016 11:07:32 +0000 (14:07 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 10 Aug 2016 13:00:59 +0000 (16:00 +0300)
commit335f752ba948f30e8ebbf3c4217e1714a885be44
treeb54ca8bd4bad3e5ed563261570e8b2d610bbf2c3
parented6143b8f7537db98e94feeb50e7b7f698c7cb05
drm/i915/dp: Restore PPS HW state from the encoder resume hook

Similarly to the previous patch, initialize the PPS from the DP
encoder's resume hook. Note that as opposed to LVDS we can't do this
during encoder enabling, since we need the PPS for DP detection as well.
The PPS init code is now the same for init and resume, so factor out a
new intel_dp_pps_init() helper for this.

v2:
- Factor out intel_dp_pps_init() (Ville).

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/1470827254-21954-4-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_dp.c