Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338411
b: refs/heads/master
c: 9642dbe
h: refs/heads/master
i:
  338409: 4fd9180
  338407: 7fcf335
v: v3
  • Loading branch information
Steven Miao authored and Greg Kroah-Hartman committed Nov 16, 2012
1 parent 84982e5 commit df5b15d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a876b39b5bc94f67e8a3a7adfd270b8c21fc762
refs/heads/master: 9642dbe73c8a3b55a812253fcb9add9eeed4ca81
7 changes: 3 additions & 4 deletions trunk/drivers/tty/serial/bfin_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,9 @@ static void bfin_serial_dma_rx_chars(struct bfin_serial_port *uart)
void bfin_serial_rx_dma_timeout(struct bfin_serial_port *uart)
{
int x_pos, pos;
unsigned long flags;

dma_disable_irq_nosync(uart->rx_dma_channel);
spin_lock_bh(&uart->rx_lock);
spin_lock_irqsave(&uart->rx_lock, flags);

/* 2D DMA RX buffer ring is used. Because curr_y_count and
* curr_x_count can't be read as an atomic operation,
Expand Down Expand Up @@ -510,8 +510,7 @@ void bfin_serial_rx_dma_timeout(struct bfin_serial_port *uart)
uart->rx_dma_buf.tail = uart->rx_dma_buf.head;
}

spin_unlock_bh(&uart->rx_lock);
dma_enable_irq(uart->rx_dma_channel);
spin_unlock_irqrestore(&uart->rx_lock, flags);

mod_timer(&(uart->rx_dma_timer), jiffies + DMA_RX_FLUSH_JIFFIES);
}
Expand Down

0 comments on commit df5b15d

Please sign in to comment.