Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141804
b: refs/heads/master
c: 8e706c4
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ma authored and Haavard Skinnemoen committed Apr 1, 2009
1 parent d1b682d commit 22eaad3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: bf4861cf3e7df123c0c62f00ae2c301c292f669c
refs/heads/master: 8e706c4d0dab214c625a2df84a0ca69a76bae65d
9 changes: 8 additions & 1 deletion trunk/drivers/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,8 @@ static void atmel_set_termios(struct uart_port *port, struct ktermios *termios,

/* Get current mode register */
mode = UART_GET_MR(port) & ~(ATMEL_US_USCLKS | ATMEL_US_CHRL
| ATMEL_US_NBSTOP | ATMEL_US_PAR);
| ATMEL_US_NBSTOP | ATMEL_US_PAR
| ATMEL_US_USMODE);

baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
quot = uart_get_divisor(port, baud);
Expand Down Expand Up @@ -1065,6 +1066,12 @@ static void atmel_set_termios(struct uart_port *port, struct ktermios *termios,
} else
mode |= ATMEL_US_PAR_NONE;

/* hardware handshake (RTS/CTS) */
if (termios->c_cflag & CRTSCTS)
mode |= ATMEL_US_USMODE_HWHS;
else
mode |= ATMEL_US_USMODE_NORMAL;

spin_lock_irqsave(&port->lock, flags);

port->read_status_mask = ATMEL_US_OVRE;
Expand Down

0 comments on commit 22eaad3

Please sign in to comment.