summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 0a6fc3e9bf..bf64c08b7c 100644
--- a/common/console.c
+++ b/common/console.c
@@ -73,6 +73,9 @@ int console_set_active(struct console_device *cdev, unsigned flag)
cdev->setbrg(cdev, cdev->baudrate);
}
+ if (!flag && cdev->f_active && cdev->flush)
+ cdev->flush(cdev);
+
if (cdev->set_active) {
ret = cdev->set_active(cdev, flag);
if (ret)