/* The port lock protects the port counts */
spin_lock_irqsave(&port->lock, flags);
/* The port lock protects the port counts */
spin_lock_irqsave(&port->lock, flags);
/* Check for a hangup or uninitialised port. Return accordingly */
if (tty_hung_up_p(filp) || !(port->flags & ASYNC_INITIALIZED)) {
if (port->flags & ASYNC_HUP_NOTIFY)
/* Check for a hangup or uninitialised port. Return accordingly */
if (tty_hung_up_p(filp) || !(port->flags & ASYNC_INITIALIZED)) {
if (port->flags & ASYNC_HUP_NOTIFY)
/* Update counts. A parallel hangup will have set count to zero and
we must not mess that up further */
/* Update counts. A parallel hangup will have set count to zero and
we must not mess that up further */