Commit 627f7675 authored by Keith Packard's avatar Keith Packard

drm/i915: Use mode_config.mutex in ironlake_panel_vdd_work

Use of the struct_mutex is not correct for locking in mode setting paths.
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent c5e62bdd
......@@ -971,9 +971,9 @@ static void ironlake_panel_vdd_work(struct work_struct *__work)
struct intel_dp, panel_vdd_work);
struct drm_device *dev = intel_dp->base.base.dev;
mutex_lock(&dev->struct_mutex);
mutex_lock(&dev->mode_config.mutex);
ironlake_panel_vdd_off_sync(intel_dp);
mutex_unlock(&dev->struct_mutex);
mutex_unlock(&dev->mode_config.mutex);
}
static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment