public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* Rename Sibyte duart devices?
@ 2007-12-03 13:08 Ralf Baechle
  2007-12-03 14:14 ` Thiemo Seufer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ralf Baechle @ 2007-12-03 13:08 UTC (permalink / raw)
  To: linux-mips, linux-serial

Devices created by udev have been named duart? instead of the common
ttyS?.  This is a nuisance because it requires changes to all sorts of
config files such as /etc/inittab, /etc/securetty etc. to work.  I
suggest to kill the problem by the root by something like the below
patch.  Comments?

  Ralf

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

 drivers/serial/sb1250-duart.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/sb1250-duart.c b/drivers/serial/sb1250-duart.c
index 2d6c08b..0defbd6 100644
--- a/drivers/serial/sb1250-duart.c
+++ b/drivers/serial/sb1250-duart.c
@@ -897,7 +897,7 @@ static int __init sbd_console_setup(struct console *co, char *options)
 
 static struct uart_driver sbd_reg;
 static struct console sbd_console = {
-	.name	= "duart",
+	.name	= "ttyS",
 	.write	= sbd_console_write,
 	.device	= uart_console_device,
 	.setup	= sbd_console_setup,
@@ -925,7 +925,7 @@ console_initcall(sbd_serial_console_init);
 static struct uart_driver sbd_reg = {
 	.owner		= THIS_MODULE,
 	.driver_name	= "serial",
-	.dev_name	= "duart",
+	.dev_name	= "ttyS",
 	.major		= TTY_MAJOR,
 	.minor		= SB1250_DUART_MINOR_BASE,
 	.nr		= DUART_MAX_CHIP * DUART_MAX_SIDE,

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

* Re: Rename Sibyte duart devices?
  2007-12-03 13:08 Rename Sibyte duart devices? Ralf Baechle
@ 2007-12-03 14:14 ` Thiemo Seufer
  2007-12-03 14:30 ` Maciej W. Rozycki
  2007-12-03 21:41 ` Kaz Kylheku
  2 siblings, 0 replies; 4+ messages in thread
From: Thiemo Seufer @ 2007-12-03 14:14 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, linux-serial

Ralf Baechle wrote:
> Devices created by udev have been named duart? instead of the common
> ttyS?.  This is a nuisance because it requires changes to all sorts of
> config files such as /etc/inittab, /etc/securetty etc. to work.  I
> suggest to kill the problem by the root by something like the below
> patch.  Comments?

Debian uses such a patch since forever to avoid all the trouble.


Thiemo

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

* Re: Rename Sibyte duart devices?
  2007-12-03 13:08 Rename Sibyte duart devices? Ralf Baechle
  2007-12-03 14:14 ` Thiemo Seufer
@ 2007-12-03 14:30 ` Maciej W. Rozycki
  2007-12-03 21:41 ` Kaz Kylheku
  2 siblings, 0 replies; 4+ messages in thread
From: Maciej W. Rozycki @ 2007-12-03 14:30 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, linux-serial

On Mon, 3 Dec 2007, Ralf Baechle wrote:

> Devices created by udev have been named duart? instead of the common
> ttyS?.  This is a nuisance because it requires changes to all sorts of
> config files such as /etc/inittab, /etc/securetty etc. to work.  I
> suggest to kill the problem by the root by something like the below
> patch.  Comments?

 Well, there is no problem with naming your device nodes in the filesystem
however you like and the only place that only cares is the "console="
command line option.  I think the root is ttyS devices should really be
only used for 8250-based devices and if you plug a standard PC serial
option card into one of the PCI slots, then all the hell will break loose.
I might be wrong though and the issue I am referring to may have gone now.

 [Sent twice to reach linux-serial.]

  Maciej

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

* RE: Rename Sibyte duart devices?
  2007-12-03 13:08 Rename Sibyte duart devices? Ralf Baechle
  2007-12-03 14:14 ` Thiemo Seufer
  2007-12-03 14:30 ` Maciej W. Rozycki
@ 2007-12-03 21:41 ` Kaz Kylheku
  2 siblings, 0 replies; 4+ messages in thread
From: Kaz Kylheku @ 2007-12-03 21:41 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips, linux-serial

Ralf Baechle wrote:
> Devices created by udev have been named duart? instead of the common
> ttyS?.  This is a nuisance because it requires changes to all sorts of
> config files such as /etc/inittab, /etc/securetty etc. to work.
> suggest to kill the problem by the root by something like the below
> patch.  Comments? 

I can see this kind of a change being somewhat sneaky; some Linux users
on SiByte systems have already worked around for the duart naming not by
patching the kernel but by modifying their text configurations to use
the duart naming. After they figure out why, after upgrading to a new
kernel, their system doesn't work any more, they will still have the
problem that the newer and older kernel require different text
configuration in the file system with respect to the tty devices. It's
nice to be able to pull out an older kernel and boot with it, without
having to remember a list of things to tweak.

To be forward and backward compatible, the kernel should perhaps offer
the device under both aliases: /etc/TTYSx and /etc/duartx.

Kaz "Kompatibility Kurmudgeon" Kylheku

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

end of thread, other threads:[~2007-12-03 21:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 13:08 Rename Sibyte duart devices? Ralf Baechle
2007-12-03 14:14 ` Thiemo Seufer
2007-12-03 14:30 ` Maciej W. Rozycki
2007-12-03 21:41 ` Kaz Kylheku

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