fbdev: stifb: Fall back to cfb_fillrect() on 32-bit HCRX cards
authorHelge Deller <deller@gmx.de>
Fri, 14 Oct 2022 18:01:17 +0000 (20:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:14:21 +0000 (18:14 +0100)
commitec54104febdcf4342cac8d718f16202484c6bf2b
tree1a9cc2aee995c3ef10efb98d08bfea8b97238be5
parentf8c86d7829525e1b0ea4ee232b967661cf7de4cb
fbdev: stifb: Fall back to cfb_fillrect() on 32-bit HCRX cards

[ Upstream commit 776d875fd4cbb3884860ea7f63c3958f02b0c80e ]

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 <deller@gmx.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/stifb.c