/* This routines are called before setting or resetting tty->stopped. They enable or disable transmitter interrupts, as necessary.  */
static void mxser_stop(struct tty_struct *tty)
/* This routines are called before setting or resetting tty->stopped. They enable or disable transmitter interrupts, as necessary.  */
static void mxser_stop(struct tty_struct *tty)
{
	struct mxser_port *info = tty->driver_data;
	unsigned long flags;
	spin_lock_irqsave(&info->slock, flags);
	if (info->IER & UART_IER_THRI) {
		info->IER &= ~UART_IER_THRI;
		outb(info->IER, info->ioaddr + UART_IER);
	}
	spin_unlock_irqrestore(&info->slock, flags);
}