Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267359
b: refs/heads/master
c: 588edbf
h: refs/heads/master
i:
  267357: 055b420
  267355: b577265
  267351: 4092c01
  267343: 996cc22
  267327: 5dca773
v: v3
  • Loading branch information
Nicolas Ferre authored and Greg Kroah-Hartman committed Oct 18, 2011
1 parent 179df45 commit d37ab36
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 1acfc7eca664783ee20d951683ed229eaa64f573
refs/heads/master: 588edbf3b8948d94a52da5d6b45c9bb7307d1f01
9 changes: 5 additions & 4 deletions trunk/drivers/tty/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1433,10 +1433,10 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,

memset(&atmel_port->rx_ring, 0, sizeof(atmel_port->rx_ring));

if (pdata->regs)
if (pdata->regs) {
/* Already mapped by setup code */
port->membase = pdata->regs;
else {
} else {
port->flags |= UPF_IOREMAP;
port->membase = NULL;
}
Expand All @@ -1450,9 +1450,10 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
/* only enable clock when USART is in use */
}

atmel_port->use_dma_rx = pdata->use_dma_rx;
atmel_port->use_dma_tx = pdata->use_dma_tx;
atmel_port->use_dma_rx = pdata->use_dma_rx;
atmel_port->use_dma_tx = pdata->use_dma_tx;
atmel_port->rs485 = pdata->rs485;

/* Use TXEMPTY for interrupt when rs485 else TXRDY or ENDTX|TXBUFE */
if (atmel_port->rs485.flags & SER_RS485_ENABLED)
atmel_port->tx_done_mask = ATMEL_US_TXEMPTY;
Expand Down

0 comments on commit d37ab36

Please sign in to comment.