Commit 02497622 authored by Bruce D. Elliott's avatar Bruce D. Elliott Committed by Ben Collins

[SPARC64]: Fix transmit handling in sunsab.c serial driver.

parent 8a36b98f
......@@ -231,8 +231,10 @@ static void transmit_chars(struct uart_sunsab_port *up,
set_bit(SAB82532_ALLS, &up->irqflags);
}
#if 0 /* bde@nwlink.com says this check causes problems */
if (!(stat->sreg.isr1 & SAB82532_ISR1_XPR))
return;
#endif
if (!(readb(&up->regs->r.star) & SAB82532_STAR_XFW))
return;
......@@ -242,6 +244,7 @@ static void transmit_chars(struct uart_sunsab_port *up,
if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) {
up->interrupt_mask1 |= SAB82532_IMR1_XPR;
writeb(up->interrupt_mask1, &up->regs->w.imr1);
uart_write_wakeup(&up->port);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment