drm/radeon/kms: reorder display resume to avoid problems
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 20 Dec 2010 16:22:29 +0000 (11:22 -0500)
committerDave Airlie <airlied@redhat.com>
Tue, 21 Dec 2010 02:53:34 +0000 (12:53 +1000)
commita93f344d3c04e4b84490c65f2a574387c593be40
treef5dcff82b77841d5e44130c0765f77d99ae66733
parent86f5c9edbb3bac37cc8cee6528a929005ba72aad
drm/radeon/kms: reorder display resume to avoid problems

On resume, we were attemping to unblank the displays before the
timing and plls had be reprogrammed which led to atom timeouts
waiting for things that are not yet programmed.  Re-program
the mode first, then reset the dpms state.

This fixes the infamous atombios timeouts on resume.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/radeon_device.c