lkml.org 
[lkml]   [2004]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectPATCH: Minor fix to serial debug option in 2.4.25
Date
I work for a PC/104 embedded hardware company and I'm trying to get IRQ 
sharing working for our serial boards and CPU boards with serial ports.

I'm having some trouble with set_multiport and discovered
SERIAL_DEBUG_INTR in serial.c as a helpful option. When I enabled it I
found a bug in one of the debug statements. I've attached a patch for
2.4.25 which fixes the bug.

I'm not on this list so please CC me if you have any questions or
comments. Thanks.
diff -Naur linux-2.4.25-orig/drivers/char/serial.c linux-2.4.25/drivers/char/serial.c
--- linux-2.4.25-orig/drivers/char/serial.c 2004-02-18 05:36:31.000000000 -0800
+++ linux-2.4.25/drivers/char/serial.c 2004-03-26 18:36:25.000000000 -0800
@@ -924,7 +924,7 @@
transmit_chars(info, 0);
#endif
if (pass_counter++ > RS_ISR_PASS_LIMIT) {
-#if SERIAL_DEBUG_INTR
+#ifdef SERIAL_DEBUG_INTR
printk("rs_single loop break.\n");
#endif
break;
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.021 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site