aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/mpc52xx_uart.c3
-rw-r--r--drivers/serial/serial_core.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
index 6459edc7f5c5..1b2cdc91c228 100644
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -728,8 +728,7 @@ mpc52xx_uart_probe(struct platform_device *dev)
728 728
729 spin_lock_init(&port->lock); 729 spin_lock_init(&port->lock);
730 port->uartclk = __res.bi_ipbfreq / 2; /* Look at CTLR doc */ 730 port->uartclk = __res.bi_ipbfreq / 2; /* Look at CTLR doc */
731 port->fifosize = 255; /* Should be 512 ! But it can't be */ 731 port->fifosize = 512;
732 /* stored in a unsigned char */
733 port->iotype = UPIO_MEM; 732 port->iotype = UPIO_MEM;
734 port->flags = UPF_BOOT_AUTOCONF | 733 port->flags = UPF_BOOT_AUTOCONF |
735 ( uart_console(port) ? 0 : UPF_IOREMAP ); 734 ( uart_console(port) ? 0 : UPF_IOREMAP );
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 17839e753e4c..3805f467b2f5 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -691,7 +691,8 @@ static int uart_set_info(struct uart_state *state,
691 (new_serial.baud_base != port->uartclk / 16) || 691 (new_serial.baud_base != port->uartclk / 16) ||
692 (close_delay != state->close_delay) || 692 (close_delay != state->close_delay) ||
693 (closing_wait != state->closing_wait) || 693 (closing_wait != state->closing_wait) ||
694 (new_serial.xmit_fifo_size != port->fifosize) || 694 (new_serial.xmit_fifo_size &&
695 new_serial.xmit_fifo_size != port->fifosize) ||
695 (((new_flags ^ old_flags) & ~UPF_USR_MASK) != 0)) 696 (((new_flags ^ old_flags) & ~UPF_USR_MASK) != 0))
696 goto exit; 697 goto exit;
697 port->flags = ((port->flags & ~UPF_USR_MASK) | 698 port->flags = ((port->flags & ~UPF_USR_MASK) |
@@ -796,7 +797,8 @@ static int uart_set_info(struct uart_state *state,
796 port->custom_divisor = new_serial.custom_divisor; 797 port->custom_divisor = new_serial.custom_divisor;
797 state->close_delay = close_delay; 798 state->close_delay = close_delay;
798 state->closing_wait = closing_wait; 799 state->closing_wait = closing_wait;
799 port->fifosize = new_serial.xmit_fifo_size; 800 if (new_serial.xmit_fifo_size)
801 port->fifosize = new_serial.xmit_fifo_size;
800 if (state->info->tty) 802 if (state->info->tty)
801 state->info->tty->low_latency = 803 state->info->tty->low_latency =
802 (port->flags & UPF_LOW_LATENCY) ? 1 : 0; 804 (port->flags & UPF_LOW_LATENCY) ? 1 : 0;