drm: try to restore previous CRTC config if mode set fails
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 7 Nov 2011 18:39:57 +0000 (10:39 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 11:07:36 +0000 (11:07 +0000)
We restore the CRTC, encoder, and connector configurations, but if the
mode set failed, the attached display may have been turned off, so we
need to try set_config again to restore things to the way they were.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found