drm/i915: Reset power sequencer pipe tracking when disp2d is off
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 4 Sep 2014 11:54:56 +0000 (14:54 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Sep 2014 12:55:45 +0000 (14:55 +0200)
commit773538e86081d146e0020435d614f4b96996c1f9
treea66261d8da4c2221de3ef6082c9a04f42e94a82b
parenta4a5d2f8a96e09844a91469e889f15bd5e927399
drm/i915: Reset power sequencer pipe tracking when disp2d is off

The power sequencer loses its state when the disp2d power well is down.
Clear the dev_priv->pps_pipe tracking so that the power sequencer state
gets reinitialized the next time it's needed.

v2: Fix the pps_mutex vs. power_domain mutex deadlock by taking power
    domain reference first
v3: Rename from edp_pps_(un)lock() to just pps_(un)lock() for the future,
    update due to backlight code changes

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/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c