Skip to content

Commit

Permalink
cirrusfb: fix threshold register mask for Laguna chips
Browse files Browse the repository at this point in the history
Fix threshold register mask for Laguna chips otherwise some 8bpp modes are
garbled after selecting a 24bpp mode.

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 Helt authored and Linus Torvalds committed Apr 1, 2009
1 parent df3aafd commit 4242a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/cirrusfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ static int cirrusfb_set_par_foo(struct fb_info *info)
threshold = fb_readw(cinfo->laguna_mmio + 0xea);
control &= ~0x6800;
format = 0;
threshold &= 0xffe0 & 0x3fbf;
threshold &= 0xffc0 & 0x3fbf;
}
if (nom) {
tmp = den << 1;
Expand Down

0 comments on commit 4242a23

Please sign in to comment.