lkml.org 
[lkml]   [1998]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: ttyS0x
> > Serial driver version 4.26 with no serial options enabled
> > ttyS00 at 0x03f8 (irq = 4) is a 16550A
> > ttyS01 at 0x02f8 (irq = 3) is a 16550A
> > ttyS02 at 0x03e8 (irq = 4) is a 16550A
>
> That's a bug. The kernel doesn't know device names.
>
> -hpa

diff -ru linux-2.1.118.orig/drivers/char/ChangeLog linux/drivers/char/ChangeLog
--- linux-2.1.118.orig/drivers/char/ChangeLog Wed Jun 24 14:30:09 1998
+++ linux/drivers/char/ChangeLog Thu Aug 27 12:48:59 1998
@@ -1,3 +1,8 @@
+Thu Aug 27 12:39:50 1998 Trevor Johnson <trevor@jpj.net>
+
+ * mac_SCC.c and serial.c: Print messages about "port 00" instead of
+ "ttyS00" so users don't assume /dev/ttyS00 and so on.
+
Thu Feb 19 14:24:08 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>

* tty_io.c (tty_name): Remove the non-reentrant (and non-SMP safe)
diff -ru linux-2.1.118.orig/drivers/char/mac_SCC.c linux/drivers/char/mac_SCC.c
--- linux-2.1.118.orig/drivers/char/mac_SCC.c Sat Jun 13 13:44:30 1998
+++ linux/drivers/char/mac_SCC.c Thu Aug 27 12:50:16 1998
@@ -604,7 +604,7 @@
save_flags(flags); cli();

#ifdef SERIAL_DEBUG_OPEN
- printk("starting up ttyS%d (irq %d)...", info->line, info->irq);
+ printk("mac_SCC: starting port %d (IRQ %d)...", info->line, info->irq);
#endif

/*
diff -ru linux-2.1.118.orig/drivers/char/serial.c linux/drivers/char/serial.c
--- linux-2.1.118.orig/drivers/char/serial.c Tue Jun 30 22:27:48 1998
+++ linux/drivers/char/serial.c Thu Aug 27 12:51:16 1998
@@ -3155,7 +3155,7 @@
&& (state->flags & ASYNC_AUTO_IRQ)
&& (state->port != 0))
state->irq = detect_uart_irq(state);
- printk(KERN_INFO "ttyS%02d%s at 0x%04x (irq = %d) is a %s\n",
+ printk(KERN_INFO "serial: port %02d%s (at 0x%04x, IRQ %d) is a %s\n",
state->line,
(state->flags & ASYNC_FOURPORT) ? " FourPort" : "",
state->port, state->irq,
__
Trevor Johnson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2011 Jasper Spaans