Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304233
b: refs/heads/master
c: 59bd234
h: refs/heads/master
i:
  304231: 139246e
v: v3
  • Loading branch information
Sonic Zhang authored and Greg Kroah-Hartman committed May 17, 2012
1 parent f25c56d commit 505dbfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 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: 3c2d0ed221a22ce2c1c9fe1e2d6142374917642e
refs/heads/master: 59bd234b72fc29887839d792b7d6c7e8d2a577a6
20 changes: 4 additions & 16 deletions trunk/drivers/tty/serial/bfin_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static unsigned int bfin_serial_tx_empty(struct uart_port *port)
static void bfin_serial_break_ctl(struct uart_port *port, int break_state)
{
struct bfin_serial_port *uart = (struct bfin_serial_port *)port;
u16 lcr = UART_GET_LCR(uart);
u32 lcr = UART_GET_LCR(uart);
if (break_state)
lcr |= SB;
else
Expand Down Expand Up @@ -1068,7 +1068,7 @@ bfin_serial_console_get_options(struct bfin_serial_port *uart, int *baud,
status = UART_GET_IER(uart) & (ERBFI | ETBEI);
if (status == (ERBFI | ETBEI)) {
/* ok, the port was enabled */
u16 lcr, clk;
u32 lcr, clk;

lcr = UART_GET_LCR(uart);

Expand All @@ -1079,20 +1079,8 @@ bfin_serial_console_get_options(struct bfin_serial_port *uart, int *baud,
else
*parity = 'o';
}
switch (lcr & 0x03) {
case 0:
*bits = 5;
break;
case 1:
*bits = 6;
break;
case 2:
*bits = 7;
break;
case 3:
*bits = 8;
break;
}
*bits = ((lcr & WLS_MASK) >> WLS_OFFSET) + 5;

/* Set DLAB in LCR to Access CLK */
UART_SET_DLAB(uart);

Expand Down

0 comments on commit 505dbfd

Please sign in to comment.