]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Fix edp vdd locking
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 4 Sep 2014 11:53:14 +0000 (14:53 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Sep 2014 12:47:48 +0000 (14:47 +0200)
commite39b999a6f229386ea6c58cb1c10ce9dc912869b
tree5c2b3be1a2901a7817f69be2591d244103ac5538
parent95468892fdfeef6d1004b524e35957629efdbe00
drm/i915: Fix edp vdd locking

Introduce a new mutex (pps_mutex) to protect the power sequencer
state. For now this state includes want_panel_vdd as well as the
power sequencer registers.

We need a single mutex (as opposed to per port) because later on we
will need to deal with VLV/CHV which have multiple power sequencer
which can be reassigned to different ports.

v2: Add the locking to intel_dp_encoder_suspend too (Imre)
v3: Take care intel_edp_backlight_power() and
    _intel_edp_backlight_on/off(), deal with reboot notifier
    vlv_power_sequencer_pipe() call (Imre)

Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c