Skip to content

Commit

Permalink
drm/i915: only disable enabled planes on intel_fb_restore_mode
Browse files Browse the repository at this point in the history
We should avoid touching registers that are on the power down well
when we don't need to, because if we touch these registers when the
power well is disabled we'll get tons of "unclaimed register"
messages. This commit fixes some of these messages.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Jan 26, 2013
1 parent fa42e23 commit 56e5a3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/intel_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ void intel_fb_restore_mode(struct drm_device *dev)

/* Be sure to shut off any planes that may be active */
list_for_each_entry(plane, &config->plane_list, head)
plane->funcs->disable_plane(plane);
if (plane->enabled)
plane->funcs->disable_plane(plane);

mutex_unlock(&dev->mode_config.mutex);
}

0 comments on commit 56e5a3f

Please sign in to comment.