drm: cirrus: add power management support
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / cirrus / cirrus_mode.c
index 379a47ea99f6cc7e4df9e16c3452f0cd9e94ab72..b86f68d8b7262fcc96b2bbd6aaf0fc4b7f9680c5 100644 (file)
@@ -308,6 +308,9 @@ static int cirrus_crtc_mode_set(struct drm_crtc *crtc,
 
        WREG_HDR(hdr);
        cirrus_crtc_do_set_base(crtc, old_fb, x, y, 0);
+
+       /* Unblank (needed on S3 resume, vgabios doesn't do it then) */
+       outb(0x20, 0x3c0);
        return 0;
 }