Title: [7162] branches/2009R1/drivers/serial/bfin_5xx.c: Bug [#5423], uart transmitter interrupted the dma timeout function and deadlocked on the spin_lock
- Revision
- 7162
- Author
- gyang
- Date
- 2009-08-11 23:31:58 -0400 (Tue, 11 Aug 2009)
Log Message
Bug [#5423], uart transmitter interrupted the dma timeout function and deadlocked on the spin_lock
Modified Paths
Diff
Modified: branches/2009R1/drivers/serial/bfin_5xx.c (7161 => 7162)
--- branches/2009R1/drivers/serial/bfin_5xx.c 2009-08-12 02:18:59 UTC (rev 7161)
+++ branches/2009R1/drivers/serial/bfin_5xx.c 2009-08-12 03:31:58 UTC (rev 7162)
@@ -485,6 +485,7 @@
{
int x_pos, pos;
+ dma_disable_irq(uart->tx_dma_channel);
dma_disable_irq(uart->rx_dma_channel);
spin_lock_bh(&uart->port.lock);
@@ -518,6 +519,7 @@
}
spin_unlock_bh(&uart->port.lock);
+ dma_enable_irq(uart->tx_dma_channel);
dma_enable_irq(uart->rx_dma_channel);
mod_timer(&(uart->rx_dma_timer), jiffies + DMA_RX_FLUSH_JIFFIES);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits