]> Pileus Git - ~andy/linux/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)
commitc5006cfe2f5fc3cc03ebe2342aaca83d051d99e0
tree6f83b8e279f783a668f5f770aef5760b43ef92ff
parent091264f0bc12419560ac64fcef4567809d611658
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