]> 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)
commitf5797a28b0661efb3798e18ba4a2dcb072bf6d05
tree6f83b8e279f783a668f5f770aef5760b43ef92ff
parent2de1ad81416e8eeda40e4efd6c0c17dd49160284
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