OSDN Git Service

drm/i915: Avoid taking the PPS lock for non-eDP/VLV/CHV
authorImre Deak <imre.deak@intel.com>
Thu, 9 May 2019 17:34:45 +0000 (20:34 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 14 May 2019 11:06:30 +0000 (14:06 +0300)
commitb4c7ea6354750bbece1650813ada28310e94c92e
tree1dc61e1a17436d045b8ca25041ef2ca377a03f24
parent08d8e17005a34f773f55005a153edc28fc5ab5e3
drm/i915: Avoid taking the PPS lock for non-eDP/VLV/CHV

On ICL we have to make sure that we enable the AUX power domain in a
controlled way (corresponding to the port's actual TypeC mode). Since
the PPS lock - which takes an AUX power ref - is only needed on
eDP on all platforms and eDP/DP on VLV/CHV avoid taking it in all
other cases.

v2:
- Clarify commit log about the condition for taking the PPS lock.
  (Ville)

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190509173446.31095-11-imre.deak@intel.com
drivers/gpu/drm/i915/intel_dp.c