summaryrefslogtreecommitdiffstats
path: root/target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-28 20:33:27 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-28 20:33:27 +0000
commita10df15d383758ace440e487b2e7e705c330f548 (patch)
tree08ab11f8963f62243e4cbfd9bedc992b2852acc2 /target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch
parent1bad7fd57341aff8386f48725812ffd306d70e56 (diff)
add second tty to initab again. kernel patch verified to work on asus wl500gx.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1995 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch')
-rw-r--r--target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch b/target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch
new file mode 100644
index 000000000..630dc0497
--- /dev/null
+++ b/target/linux/linux-2.4/patches/generic/210-fix-irq-serial.patch
@@ -0,0 +1,21 @@
+--- linux-2.4.30/drivers/char/serial.c 2005-06-29 20:44:46.000000000 +0200
++++ linux-2.4.30.serial/drivers/char/serial.c 2005-06-29 21:15:12.000000000 +0200
+@@ -5455,18 +5455,6 @@
+ sizeof(struct rs_multiport_struct));
+ #endif
+ }
+-#ifdef CONFIG_SERIAL_CONSOLE
+- /*
+- * The interrupt of the serial console port
+- * can't be shared.
+- */
+- if (sercons.flags & CON_CONSDEV) {
+- for(i = 0; i < NR_PORTS; i++)
+- if (i != sercons.index &&
+- rs_table[i].irq == rs_table[sercons.index].irq)
+- rs_table[i].irq = 0;
+- }
+-#endif
+ show_serial_version();
+
+ /* Initialize the tty_driver structure */