|
@@ -566,6 +566,11 @@ static void mn10300_serial_transmit_interrupt(struct mn10300_serial_port *port)
|
|
{
|
|
{
|
|
_enter("%s", port->name);
|
|
_enter("%s", port->name);
|
|
|
|
|
|
|
|
+ if (!port->uart.info || !port->uart.info->port.tty) {
|
|
|
|
+ mn10300_serial_dis_tx_intr(port);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (uart_tx_stopped(&port->uart) ||
|
|
if (uart_tx_stopped(&port->uart) ||
|
|
uart_circ_empty(&port->uart.info->xmit))
|
|
uart_circ_empty(&port->uart.info->xmit))
|
|
mn10300_serial_dis_tx_intr(port);
|
|
mn10300_serial_dis_tx_intr(port);
|