File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
14141418static 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}
24082409EXPORT_SYMBOL_GPL (serial8250_do_shutdown );
You can’t perform that action at this time.
0 commit comments