From: Simon Glass Date: Thu, 14 Jan 2016 11:28:14 -0700 Subject: [U-Boot] [PATCH 02/23] dm: video: Flush the cache after a puts() In-Reply-To: <1452796115-21076-1-git-send-email-sjg@chromium.org> References: <1452796115-21076-1-git-send-email-sjg@chromium.org> Message-ID: <1452796115-21076-3-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/video/vidconsole-uclass.c | 1 + 1 file changed, 1 insertion(+) 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) */ -- 2.6.0.rc2.230.g3dd15c0