1 Index: linux-2.6.21.7/drivers/serial/pxa.c
2 ===================================================================
3 --- linux-2.6.21.7.orig/drivers/serial/pxa.c
4 +++ linux-2.6.21.7/drivers/serial/pxa.c
6 #include <linux/platform_device.h>
8 #include <linux/tty_flip.h>
9 +#include <linux/serial.h>
10 #include <linux/serial_core.h>
13 @@ -577,8 +578,16 @@ static void serial_pxa_config_port(struc
15 serial_pxa_verify_port(struct uart_port *port, struct serial_struct *ser)
17 - /* we don't want the core code to modify any port params */
19 + struct uart_pxa_port *up = (struct uart_pxa_port *)port;
22 + if (up->port.uartclk / 16 != ser->baud_base)
24 + else if (((up->port.line & 1) == 0) && ser->baud_base > 230400) /* Max baud rate for STUART and FFUART */
26 + else if (((up->port.line & 1) != 0) && ser->baud_base > 921600) /* Max baud rate for HWUART and BTUART */