Skip to content

Commit

Permalink
drm/i915: Fix HSW power well control state read
Browse files Browse the repository at this point in the history
Fix power well control state by reading real register offset.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Zhenyu Wang authored and Daniel Vetter committed Nov 11, 2012
1 parent 14f8614 commit 263b30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3842,7 +3842,7 @@ void intel_init_power_wells(struct drm_device *dev)

if ((well & HSW_PWR_WELL_STATE) == 0) {
I915_WRITE(power_wells[i], well & HSW_PWR_WELL_ENABLE);
if (wait_for(I915_READ(power_wells[i] & HSW_PWR_WELL_STATE), 20))
if (wait_for((I915_READ(power_wells[i]) & HSW_PWR_WELL_STATE), 20))
DRM_ERROR("Error enabling power well %lx\n", power_wells[i]);
}
}
Expand Down

0 comments on commit 263b30d

Please sign in to comment.