提交 ba019a3e 编写于 作者: R Robert Baldyga 提交者: Greg Kroah-Hartman

serial: samsung: remove redundant interrupt enabling

Function s3c24xx_serial_start_tx_pio() enables interrupts if needed,
so we don't have to (or even we shouldn't) enable them before.
Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 632f32e2
...@@ -358,15 +358,8 @@ void s3c24xx_serial_start_tx(struct uart_port *port) ...@@ -358,15 +358,8 @@ void s3c24xx_serial_start_tx(struct uart_port *port)
s3c24xx_serial_rx_disable(port); s3c24xx_serial_rx_disable(port);
tx_enabled(port) = 1; tx_enabled(port) = 1;
if (!ourport->dma || !ourport->dma->tx_chan) { if (!ourport->dma || !ourport->dma->tx_chan)
if (s3c24xx_serial_has_interrupt_mask(port))
__clear_bit(S3C64XX_UINTM_TXD,
portaddrl(port, S3C64XX_UINTM));
else
enable_irq(ourport->tx_irq);
s3c24xx_serial_start_tx_pio(ourport); s3c24xx_serial_start_tx_pio(ourport);
}
} }
if (ourport->dma && ourport->dma->tx_chan) { if (ourport->dma && ourport->dma->tx_chan) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册