Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92347
b: refs/heads/master
c: 0a27842
h: refs/heads/master
i:
  92345: ae437ad
  92343: fcc7b44
v: v3
  • Loading branch information
Sonic Zhang authored and Bryan Wu committed Apr 24, 2008
1 parent 520fd85 commit 04ddeb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 50e2e15afaac59c955f43d78d0a1e53cf8a76370
refs/heads/master: 0a2784233785226fe5882c8af15118476f89e98e
7 changes: 2 additions & 5 deletions trunk/drivers/serial/bfin_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ void bfin_serial_rx_dma_timeout(struct bfin_serial_port *uart)
uart->rx_dma_buf.tail = uart->rx_dma_buf.head;
}

uart->rx_dma_timer.expires = jiffies + DMA_RX_FLUSH_JIFFIES;
add_timer(&(uart->rx_dma_timer));
mod_timer(&(uart->rx_dma_timer), jiffies + DMA_RX_FLUSH_JIFFIES);
}

static irqreturn_t bfin_serial_dma_tx_int(int irq, void *dev_id)
Expand Down Expand Up @@ -550,9 +549,7 @@ static irqreturn_t bfin_serial_dma_rx_int(int irq, void *dev_id)
clear_dma_irqstat(uart->rx_dma_channel);
spin_unlock(&uart->port.lock);

del_timer(&(uart->rx_dma_timer));
uart->rx_dma_timer.expires = jiffies;
add_timer(&(uart->rx_dma_timer));
mod_timer(&(uart->rx_dma_timer), jiffies);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit 04ddeb2

Please sign in to comment.