]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4fd82a68d6a24fc5c00912003808332ff173d4d
tree6f83b8e279f783a668f5f770aef5760b43ef92ff
parent7f97337451f6ff3ec07fbe18c7f506e1a6e8220a
drm: try to restore previous CRTC config if mode set fails

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>
drivers/gpu/drm/drm_crtc_helper.c