]> Gentwo Git Trees - linux/.git/commitdiff
fbdev: s3fb: Revert mclk stop in suspend
authorZsolt Kajtar <soci@c64.rulez.org>
Wed, 3 Sep 2025 19:14:15 +0000 (21:14 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 30 Sep 2025 21:21:34 +0000 (23:21 +0200)
There are systems which want to wait for as long as it takes for the
stopped video memory to answer. Mapping it out helps to avoid that
while the system is running but standby still hangs somehow. So just
leave the memory on in standby same as it was before my change.

Signed-off-by: Zsolt Kajtar <soci@c64.rulez.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/s3fb.c

index a6cfed0a87fad11debc561d48a1dfd8f76effc86..ba30e5568cabc2ab7ca4acb8dc694eeaa923144c 100644 (file)
@@ -1510,7 +1510,7 @@ static int __maybe_unused s3_pci_suspend(struct device *dev)
 
        fb_set_suspend(info, 1);
        svga_wseq_mask(par->state.vgabase, 0x18, 0x20, 0x20);
-       svga_wseq_mask(par->state.vgabase, 0x14, 0x03, 0x03);
+       svga_wseq_mask(par->state.vgabase, 0x14, 0x01, 0x01);
 
        mutex_unlock(&(par->open_lock));
        console_unlock();
@@ -1539,7 +1539,7 @@ static int __maybe_unused s3_pci_resume(struct device *dev)
 
        vga_wseq(par->state.vgabase, 0x08, 0x06);
        svga_wseq_mask(par->state.vgabase, 0x18, 0x00, 0x20);
-       svga_wseq_mask(par->state.vgabase, 0x14, 0x00, 0x03);
+       svga_wseq_mask(par->state.vgabase, 0x14, 0x00, 0x01);
        s3fb_set_par(info);
        fb_set_suspend(info, 0);