drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2012 14:11:27 +0000 (09:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 18:59:39 +0000 (10:59 -0800)
commit 804cc4a0ad3a896ca295f771a28c6eb36ced7903 upstream.

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

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/evergreen.c

index 497c265a93b4a3d245428152374703af174bdb22..4a1d8f3457ccf84d3bdaa23a70bbc4b4033542e5 100644 (file)
@@ -1164,6 +1164,8 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav
                                        break;
                                udelay(1);
                        }
+               } else {
+                       save->crtc_enabled[i] = false;
                }
        }