public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Serial Driver Name Question (kernels 2.4.x)
@ 2002-01-03  2:07 Ivan Passos
  2002-01-03  4:40 ` Andrew Morton
  0 siblings, 1 reply; 21+ messages in thread
From: Ivan Passos @ 2002-01-03  2:07 UTC (permalink / raw)
  To: linux-kernel


(Please CC your answer to me, as I'm not a subscriber of this list.)

Hello,

By looking at tty_io.c:_tty_make_name(), it seems that the TTY 
subsystem in the Linux 2.4.x kernel series expects driver.name to be 
in the form "ttyX%d", even if you're not using devfs. I say that 
because as of now the definition in serial.c for this variable is:

#if defined(CONFIG_DEVFS_FS)
        serial_driver.name = "tts/%d";
#else
        serial_driver.name = "ttyS";
#endif


, when it seems it should be:

#if defined(CONFIG_DEVFS_FS)
        serial_driver.name = "tts/%d";
#else
        serial_driver.name = "ttyS%d";
#endif

to work properly with the _tty_make_name() function (otherwise, in 
case you're not using devfs, it'll just print "ttyS" without any 
reference to the port number the msg is referring to).

This was spotted by a Cyclades customer who was getting overrun msgs 
as:

ttyC: 1 input overrun(s)

After he changed the driver.name to be "ttyC%d", he started to get 
properly formatted msgs, such as:

ttyC39: 1 input overrun(s)


This problem would happen on any msg that used the function 
tty_name() to get the TTY name, and after the change the problem 
disappeared completely.

After checking the kernel code, I believe that he's found a bug that 
should be fixed in all drivers that define driver.name.

Please advise so that we may change the Cyclades driver to behave 
properly. 

Regards,
-- 
Ivan Passos							 -o)
Integration Manager, Cyclades	- http://www.cyclades.com	 /\\
Project Leader, NetLinOS	- http://www.netlinos.org	_\_V
--------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2002-01-10  9:15 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-03  2:07 Serial Driver Name Question (kernels 2.4.x) Ivan Passos
2002-01-03  4:40 ` Andrew Morton
2002-01-03  6:37   ` Richard Gooch
2002-01-03  7:03     ` Andrew Morton
2002-01-06 20:12       ` Richard Gooch
2002-01-06 20:36         ` Alan Cox
2002-01-06 20:27           ` Richard Gooch
2002-01-06 21:05         ` Andrew Morton
2002-01-07  6:36           ` Richard Gooch
2002-01-07  7:20             ` Andrew Morton
2002-01-08  5:03             ` Andrew Morton
2002-01-08  6:15               ` David Weinehall
2002-01-08  6:23                 ` Andrew Morton
2002-01-08 18:54                   ` Ivan Passos
2002-01-08 21:58                   ` Michael H. Warfield
2002-01-08 22:11                     ` Andrew Morton
2002-01-08 23:33                       ` Ivan Passos
2002-01-09 16:36                         ` Richard Gooch
2002-01-10  9:14                           ` Nick Craig-Wood
2002-01-08 18:47               ` Ivan Passos
2002-01-03 16:32   ` Ivan Passos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox