Skip to content

Commit

Permalink
savagefb: fix blanking mode on CRT display
Browse files Browse the repository at this point in the history
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: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof-H authored and torvalds committed Nov 12, 2009
1 parent f5c15d0 commit b9f9d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/savage/savagefb_driver.c
Expand Up @@ -1565,7 +1565,7 @@ static int savagefb_blank(int blank, struct fb_info *info)
vga_out8(0x3c5, sr8, par);
vga_out8(0x3c4, 0x0d, par);
srd = vga_in8(0x3c5, par);
srd &= 0x03;
srd &= 0x50;

switch (blank) {
case FB_BLANK_UNBLANK:
Expand Down

0 comments on commit b9f9d47

Please sign in to comment.