]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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 19:13:10 +0000 (11:13 -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 10b34b82cc59e5b9fb27060a310d6d9326e075d5..5528feaf6fb631d3b63808df5d0c2751e4410c03 100644 (file)
@@ -1276,6 +1276,8 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav
                                        break;
                                udelay(1);
                        }
+               } else {
+                       save->crtc_enabled[i] = false;
                }
        }