/* This routines are called before setting or resetting tty->stopped.  */
static void rs_stop(struct tty_struct *tty)
/* This routines are called before setting or resetting tty->stopped.  */
static void rs_stop(struct tty_struct *tty)
{
	struct async_struct *info = tty->driver_data;
	unsigned long flags;
	if (serial_paranoia_check(info, tty->name, "rs_stop"))
		return;
	local_irq_save(flags);
	if (info->IER & UART_IER_THRI) {
		info->IER &= ~UART_IER_THRI;
		custom.intena = IF_TBE;
		mb();
		custom.intreq = IF_TBE;
		mb();
	}
	local_irq_restore(flags);
}