Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4242a23c authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Linus Torvalds
Browse files

cirrusfb: fix threshold register mask for Laguna chips



Fix threshold register mask for Laguna chips otherwise some 8bpp modes are
garbled after selecting a 24bpp mode.

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 df3aafd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;