diff mbox

[U-Boot,v2,02/23] dm: video: Flush the cache after a puts()

Message ID 1454197082-1312-3-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Tom Warren
Headers show

Commit Message

Simon Glass Jan. 30, 2016, 11:37 p.m. UTC
This helps keep the display consistent. puts() is used when printing the
prompt, so is a useful way to make sure the current display contents is
visible.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 drivers/video/vidconsole-uclass.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Anatolij Gustschin Jan. 31, 2016, 6:14 p.m. UTC | #1
Hi Simon,

On Sat, 30 Jan 2016 16:37:41 -0700
Simon Glass sjg@chromium.org wrote:

> This helps keep the display consistent. puts() is used when printing the
> prompt, so is a useful way to make sure the current display contents is
> visible.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> Changes in v2: None
> 
>  drivers/video/vidconsole-uclass.c | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Anatolij Gustschin <agust@denx.de>
diff mbox

Patch

diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index 706a189..a4c919e 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -139,6 +139,7 @@  static void vidconsole_puts(struct stdio_dev *sdev, const char *s)
 
 	while (*s)
 		vidconsole_put_char(dev, *s++);
+	video_sync(dev->parent);
 }
 
 /* Set up the number of rows and colours (rotated drivers override this) */