Skip to content

Commit 776d875

Browse files
committed
fbdev: stifb: Fall back to cfb_fillrect() on 32-bit HCRX cards
When the text console is scrolling text upwards it calls the fillrect() function to empty the new line. The current implementation doesn't seem to work correctly on HCRX cards in 32-bit mode and leave garbage in that line instead. Fix it by falling back to standard cfb_fillrect() in that case. Signed-off-by: Helge Deller <[email protected]> Cc: <[email protected]>
1 parent 3c6174f commit 776d875

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/video/fbdev/stifb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,8 @@ stifb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
10551055
{
10561056
struct stifb_info *fb = container_of(info, struct stifb_info, info);
10571057

1058-
if (rect->rop != ROP_COPY)
1058+
if (rect->rop != ROP_COPY ||
1059+
(fb->id == S9000_ID_HCRX && fb->info.var.bits_per_pixel == 32))
10591060
return cfb_fillrect(info, rect);
10601061

10611062
SETUP_HW(fb);

0 commit comments

Comments
 (0)