Skip to contentSkip to conversation

drm/i915: Remove duplicate intel_uncore_forcewake_reset.

PATCH Superseded [email protected] 2 participants 2 messages Dec 8, 2013 – Dec 9, 2013

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 drm/i915: Remove duplicate intel_uncore_forcewake_reset.

From: Deepak S <[email protected]>

Since early sanitize and uncore sanitize are called one after the other, I think, we can remove second forcewake reset which was are calling twice in both the functions.

---
 drivers/gpu/drm/i915/intel_uncore.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/intel_uncore.c +0 -2
index 0db5472..fede73d 100644
@@ -333,8 +333,6 @@ void intel_uncore_sanitize(struct drm_device *dev)
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	u32 reg_val;
 
-	intel_uncore_forcewake_reset(dev);
-
 	/* BIOS often leaves RC6 enabled, but disable it for hw init */
 	intel_disable_gt_powersave(dev);
 
Signature · 1 line
1.8.4.2
#1 lore raw
Quoted 7 lines · On Sun, Dec 08, 2013 at 01:52:59PM +0530, [email protected] wrote:

From: Deepak S <[email protected]>

Since early sanitize and uncore sanitize are called one after the other, I think, we can remove second forcewake reset which was are calling twice in both the functions.

This is a merge artifact, I've amend the commit message with the explanation. git blame is really good for figuring this stuff out. Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch