serial: samsung: wait serial FIFO before entering SICD
authorPark Bumgyu <bumgyu.park@samsung.com>
Fri, 23 Feb 2018 04:02:27 +0000 (13:02 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: I9580f8897592dca908e95780b39853f87b34d0f1
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
drivers/tty/serial/samsung.c

index b8e98d27d4ee6f692df7eff5b3ab94420e4f425c..036500aee7aa241d675e0ab11ff6f08815e8d2b4 100644 (file)
@@ -1551,6 +1551,8 @@ static int s3c24xx_serial_notifier(struct notifier_block *self,
                        if (ourport->rts_control)
                                change_uart_gpio(RTS_PINCTRL, ourport);
                }
+
+               s3c24xx_serial_fifo_wait();
                break;
 
        case SICD_EXIT: