Skip to content

Commit 4f2808f

Browse files
committed
fixup! serial: 8250: Add NOMSI bug for bcm2835aux
1 parent 32a1956 commit 4f2808f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/tty/serial/8250/8250_port.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ static void serial8250_stop_tx(struct uart_port *port)
13991399
{
14001400
struct uart_8250_port *up = up_to_u8250p(port);
14011401

1402-
guard(serial8250_rpm)(up);
1402+
serial8250_rpm_get(up);
14031403
__stop_tx(up);
14041404

14051405
/*
@@ -1409,6 +1409,10 @@ static void serial8250_stop_tx(struct uart_port *port)
14091409
up->acr |= UART_ACR_TXDIS;
14101410
serial_icr_write(up, UART_ACR, up->acr);
14111411
}
1412+
serial8250_rpm_put(up);
1413+
1414+
if (port->hw_stopped && (up->bugs & UART_BUG_NOMSI))
1415+
mod_timer(&up->timer, jiffies + 1);
14121416
}
14131417

14141418
static inline void __start_tx(struct uart_port *port)
@@ -2400,9 +2404,6 @@ void serial8250_do_shutdown(struct uart_port *port)
24002404
serial_port_in(port, UART_RX);
24012405
serial8250_rpm_put(up);
24022406

2403-
if (port->hw_stopped && (up->bugs & UART_BUG_NOMSI))
2404-
mod_timer(&up->timer, jiffies + 1);
2405-
24062407
up->ops->release_irq(up);
24072408
}
24082409
EXPORT_SYMBOL_GPL(serial8250_do_shutdown);

0 commit comments

Comments
 (0)