]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: video: Sync display on backspace
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:36 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
We should sync the display (e.g. flush cache) when backspace is pressed
to ensure that the character is erased correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1

drivers/video/vidconsole-uclass.c

index e9a90b1b9bc375137cb93d4bdb1efa1ad6f66e4f..b5afd72227c7a6460cc5c5c0a268d93f84d990b0 100644 (file)
@@ -77,6 +77,7 @@ static int vidconsole_back(struct udevice *dev)
                if (priv->ycur < 0)
                        priv->ycur = 0;
        }
+       video_sync(dev->parent);
 
        return 0;
 }