• Ville Syrjälä's avatar
    drm/i915: Fix edp vdd locking · e39b999a
    Ville Syrjälä authored
    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: default avatarImre Deak <imre.deak@intel.com>
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    e39b999a
intel_dp.c 140 KB