Skip to contentSkip to conversation

drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()

PATCH New [email protected] 1 participant 1 message Nov 19, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()

From: Alex Deucher <[email protected]>

The save struct is not initialized previously so explicitly mark the crtcs as not used when they are not in use.

---
 drivers/gpu/drm/radeon/evergreen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +2 -0
index af31f82..219942c 100644
@@ -1330,6 +1330,8 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav
 					break;
 				udelay(1);
 			}
+		} else {
+			save->crtc_enabled[i] = false;
 		}
 	}
 
Signature · 1 line
1.7.7.5