Merge 3.9-rc7 intp tty-next
[firefly-linux-kernel-4.4.55.git] / drivers / tty / mxser.c
index 302909ccf18383831e5f6091f167be354b4db989..71d6eb2c93b1c6335ba123cc9ac3c17a2af0d805 100644 (file)
@@ -1084,6 +1084,10 @@ static void mxser_close(struct tty_struct *tty, struct file *filp)
        mutex_lock(&port->mutex);
        mxser_close_port(port);
        mxser_flush_buffer(tty);
+       if (test_bit(ASYNCB_INITIALIZED, &port->flags)) {
+               if (C_HUPCL(tty))
+                       tty_port_lower_dtr_rts(port);
+       }
        mxser_shutdown_port(port);
        clear_bit(ASYNCB_INITIALIZED, &port->flags);
        mutex_unlock(&port->mutex);