diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2010-02-09 00:11:50 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2010-02-09 00:11:50 +0000 |
commit | 40ba15806fcd52982135c367f49a8ac3ce85913f (patch) | |
tree | 09f98f7bcc5053c972d2be6bb9192a79a40d7fdb /target/linux/pxa/patches-2.6.21/030-serial-divisor.patch | |
parent | 7c8f9f56301c4d6a6e3bcfc89e407dc5289f5b42 (diff) | |
download | upstream-40ba15806fcd52982135c367f49a8ac3ce85913f.tar.gz upstream-40ba15806fcd52982135c367f49a8ac3ce85913f.tar.bz2 upstream-40ba15806fcd52982135c367f49a8ac3ce85913f.zip |
upgrade to 2.6.32.7, switch to squashfs, remove broken flag
SVN-Revision: 19562
Diffstat (limited to 'target/linux/pxa/patches-2.6.21/030-serial-divisor.patch')
-rw-r--r-- | target/linux/pxa/patches-2.6.21/030-serial-divisor.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/pxa/patches-2.6.21/030-serial-divisor.patch b/target/linux/pxa/patches-2.6.21/030-serial-divisor.patch deleted file mode 100644 index 5f9e386d5b..0000000000 --- a/target/linux/pxa/patches-2.6.21/030-serial-divisor.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/drivers/serial/pxa.c -+++ b/drivers/serial/pxa.c -@@ -41,6 +41,7 @@ - #include <linux/platform_device.h> - #include <linux/tty.h> - #include <linux/tty_flip.h> -+#include <linux/serial.h> - #include <linux/serial_core.h> - - #include <asm/io.h> -@@ -577,8 +578,16 @@ static void serial_pxa_config_port(struc - static int - serial_pxa_verify_port(struct uart_port *port, struct serial_struct *ser) - { -- /* we don't want the core code to modify any port params */ -- return -EINVAL; -+ struct uart_pxa_port *up = (struct uart_pxa_port *)port; -+ int ret = 0; -+ -+ if (up->port.uartclk / 16 != ser->baud_base) -+ ret = -EINVAL; -+ else if (((up->port.line & 1) == 0) && ser->baud_base > 230400) /* Max baud rate for STUART and FFUART */ -+ ret = -EINVAL; -+ else if (((up->port.line & 1) != 0) && ser->baud_base > 921600) /* Max baud rate for HWUART and BTUART */ -+ ret = -EINVAL; -+ return ret; - } - - static const char * |