Commit b9f9d470 authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Linus Torvalds

savagefb: fix blanking mode on CRT display

Fix wrong bit mask for blanking register.  Due to the error a CRT monitor
blanks off due to wrong frequency (out of range) instead of PM signal
(vertical and horizontal frequencies cut off).

Just compare the mask with bits set in the switch(blank) clause below the
changed line.
Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f5c15d0b
...@@ -1565,7 +1565,7 @@ static int savagefb_blank(int blank, struct fb_info *info) ...@@ -1565,7 +1565,7 @@ static int savagefb_blank(int blank, struct fb_info *info)
vga_out8(0x3c5, sr8, par); vga_out8(0x3c5, sr8, par);
vga_out8(0x3c4, 0x0d, par); vga_out8(0x3c4, 0x0d, par);
srd = vga_in8(0x3c5, par); srd = vga_in8(0x3c5, par);
srd &= 0x03; srd &= 0x50;
switch (blank) { switch (blank) {
case FB_BLANK_UNBLANK: case FB_BLANK_UNBLANK:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment