Re: [PATCH v3 6/6] video: Call video_sync in video_clear()

2020-12-18 Thread Simon Glass
On Tue, 15 Dec 2020 at 07:19, Michal Simek  wrote:
>
> There is a need to call sync when anybody asking for clearing display.
> For example via cls command.
>
> Signed-off-by: Michal Simek 
> ---
>
> Changes in v3:
> - new patch in this series
>
>  drivers/video/video-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass 


[PATCH v3 6/6] video: Call video_sync in video_clear()

2020-12-15 Thread Michal Simek
There is a need to call sync when anybody asking for clearing display.
For example via cls command.

Signed-off-by: Michal Simek 
---

Changes in v3:
- new patch in this series

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

diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 938e7d371311..21452a1cda97 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -143,7 +143,7 @@ int video_clear(struct udevice *dev)
if (ret)
return ret;
 
-   return 0;
+   return video_sync(dev, false);
 }
 
 void video_set_default_colors(struct udevice *dev, bool invert)
-- 
2.29.2