sandbox: Drop video-sync in serial driver
authorSimon Glass <sjg@chromium.org>
Wed, 31 Jul 2024 14:44:12 +0000 (08:44 -0600)
committerAnatolij Gustschin <agust@denx.de>
Wed, 31 Jul 2024 14:56:06 +0000 (16:56 +0200)
With sandbox, when U-Boot is waiting for input it syncs the video
display, since presumably the user has finished typing.

Now that cyclic is used for video syncing, we can drop this. Cyclic
will automatically call the video_idle() function when idle.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/sandbox.c

index ec0068e..77a1558 100644 (file)
@@ -138,8 +138,6 @@ static int sandbox_serial_pending(struct udevice *dev, bool input)
                return 0;
 
        os_usleep(100);
-       if (IS_ENABLED(CONFIG_VIDEO) && !IS_ENABLED(CONFIG_SPL_BUILD))
-               video_sync_all();
        avail = membuff_putraw(&priv->buf, 100, false, &data);
        if (!avail)
                return 1;       /* buffer full */