From: Brad Boyer <flar@allandria.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>,
linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.
Date: Tue, 3 Apr 2007 16:09:08 -0700 [thread overview]
Message-ID: <20070403230908.GA13471@cynthia.pants.nu> (raw)
In-Reply-To: <1175648051.10567.61.camel@shinybook.infradead.org>
On Tue, Apr 03, 2007 at 08:54:10PM -0400, David Woodhouse wrote:
> But why? There's nothing special and magical about the number 64 and the
> letters 't' 't' 'y' and 'S'. And if you have broken software which only
> works with ttyS[0123] then you can still create device nodes or symlinks
> to work around that.
I never claimed there was anything magical about those particular values
and I don't intend to do that in the future. The issue is one of
standardization. As an example, Solaris does use the same device names
for both Zilog 8530 and 8250 ports in spite of naming ethernet devices
based on the hardware type. I just checked the man pages on a Solaris 9
system to be sure. The issue is that the naming should be consistent. I
shouldn't need to know what the hardware is to use what is fundamentally
an abstraction of "serial port" as far as the user is concerned. On
Solaris, I can say "/dev/term/a" and know that I will get the first
serial port if it is available without needing to care if it is the
zs, se or asy driver talking to the hardware.
Note that I'm not suggesting we should do what Solaris does because
Sun decided it was the way to do it. I'm just pointing out an example.
> If you're on a platform where 8250 serial ports _cannot_ exist, then
> abusing the 8250 driver's numbers would perhaps be workable, if a little
> strange -- but 8250 ports are ubiquitous. You can attach them to just
> about anything, of any architecture, that Linux runs on. Except perhaps
> S390.
The availability of the specific chip in question is a red herring in
my opinion. I do understand that 8250 compatible chips are very common
and are the most likely serial chips to be used with Linux. However, I
will point out that the define is TTY_MAJOR, not 8250_MAJOR. It seems
to me that whoever named it was thinking in more generic terms.
> Yes, it would be theoretically possible to come up with a way to share
> minor numbers so we can use 'ttyS0' for the first serial port regardless
> of what type of port it is. We could take the arch-specific hack that
> SPARC has and try to move it to generic code. But what's the point?
The point is that people are used to having "ttyS0" mean the first
onboard serial port. I firmly believe that the user-space programs
should need to know as little as possible about the hardware, and it
would be nice to abstract that away from the end user as well. We've
moved toward commonality and standarization in other areas, and I
think we should here as well.
Brad Boyer
flar@allandria.com
next prev parent reply other threads:[~2007-04-04 1:24 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1175610345.2665.15.camel@shinybook.infradead.org>
2007-04-03 23:14 ` Paul Mackerras
2007-04-03 23:28 ` David Woodhouse
2007-04-03 21:29 ` Brad Boyer
2007-04-03 23:57 ` David Woodhouse
[not found] ` <200704032210 02.GA13210@cynthia.pants.nu>
2007-04-03 22:10 ` Brad Boyer
2007-04-04 0:54 ` David Woodhouse
2007-04-03 23:09 ` Brad Boyer [this message]
2007-04-04 1:38 ` Alan Cox
2007-04-04 2:05 ` Chris Adams
2007-04-04 2:10 ` Valdis.Kletnieks
2007-04-04 1:57 ` David Lang
2007-04-04 8:51 ` Russell King
2007-04-04 9:48 ` Geert Uytterhoeven
2007-04-04 16:09 ` H. Peter Anvin
2007-04-04 16:22 ` Linas Vepstas
2007-04-04 16:34 ` David Woodhouse
2007-04-04 17:38 ` Linas Vepstas
2007-04-04 1:16 ` David Miller
2007-04-04 1:28 ` Alan Cox
2007-04-04 1:07 ` David Lang
2007-04-04 1:44 ` Alan Cox
2007-04-04 1:23 ` David Lang
2007-04-04 1:32 ` David Lang
2007-04-04 16:07 ` H. Peter Anvin
2007-04-04 17:50 ` Linas Vepstas
2007-04-04 1:50 ` David Miller
2007-04-04 11:14 ` Alan Cox
2007-04-04 12:20 ` Olivier Galibert
2007-04-04 1:48 ` David Miller
2007-04-04 3:07 ` Gerhard Mack
2007-04-11 16:30 ` Benny Amorsen
2007-04-12 15:34 ` Roland Dreier
2007-04-13 2:45 ` Gerhard Mack
2007-04-13 2:24 ` David Lang
2007-04-13 8:09 ` Geert Uytterhoeven
2007-04-04 0:02 ` David Miller
2007-04-04 0:12 ` David Woodhouse
2007-04-03 22:14 ` Brad Boyer
2007-04-04 1:13 ` Benjamin Herrenschmidt
2007-04-04 1:17 ` David Miller
2007-04-04 1:32 ` Benjamin Herrenschmidt
2007-04-04 0:01 ` [PATCH v2] " David Woodhouse
2007-04-04 1:25 ` [PATCH] " Alan Cox
2007-04-04 4:20 ` Paul Mackerras
2007-04-04 5:19 ` David Woodhouse
2007-04-04 5:50 ` David Miller
2007-04-04 7:04 ` Geert Uytterhoeven
2007-04-04 13:43 ` Maciej W. Rozycki
2007-04-04 7:52 ` Russell King
2007-04-04 8:41 ` David Miller
2007-04-04 5:53 ` Paul Mackerras
2007-04-04 6:03 ` David Woodhouse
2007-04-04 6:31 ` Paul Mackerras
2007-04-04 14:19 ` [PATCH v3] Stop pmac_zilog from abusing 8250's device numbers; optionally David Woodhouse
2007-04-04 23:48 ` Paul Mackerras
2007-04-05 12:45 ` David Woodhouse
2007-04-05 22:53 ` Paul Mackerras
2007-04-05 22:59 ` David Woodhouse
2007-04-05 14:31 ` Atsushi Nemoto
2007-04-05 14:47 ` David Woodhouse
2007-04-05 15:09 ` Atsushi Nemoto
2007-04-05 15:18 ` David Woodhouse
2007-04-05 15:49 ` Atsushi Nemoto
2007-04-05 15:56 ` Geert Uytterhoeven
2007-04-04 8:12 ` [PATCH] Stop pmac_zilog from abusing 8250's device numbers David Miller
2007-04-04 8:38 ` Russell King
2007-04-04 8:43 ` David Miller
2007-04-04 9:00 ` Russell King
2007-04-04 19:58 ` David Miller
2007-04-04 12:21 ` Theodore Tso
2007-04-04 16:10 ` Russell King
2007-04-04 16:16 ` H. Peter Anvin
2007-04-04 16:25 ` Alan Cox
2007-04-04 17:41 ` Theodore Tso
2007-04-04 18:15 ` Russell King
2007-04-04 19:50 ` David Woodhouse
2007-04-05 6:05 ` Paul Mackerras
2007-04-05 8:50 ` Russell King
2007-04-05 16:15 ` Olivier Galibert
2007-04-05 21:41 ` Pavel Machek
2007-04-03 23:56 ` David Miller
2007-04-04 1:13 ` Benjamin Herrenschmidt
2007-04-04 6:58 ` Paul Mackerras
2007-04-04 14:16 ` David Woodhouse
2007-04-03 23:55 ` David Miller
2007-04-04 1:19 ` Alan Cox
2007-04-04 1:21 ` David Miller
2007-04-04 1:36 ` Alan Cox
2007-04-04 1:47 ` David Miller
2007-04-04 7:47 ` Russell King
2007-04-04 9:55 ` Paul Mackerras
2007-04-04 16:06 ` Russell King
2007-04-04 6:58 ` Geert Uytterhoeven
2007-08-14 11:49 ` Olaf Hering
2007-08-14 11:53 ` David Woodhouse
2007-08-14 16:24 ` Olaf Hering
[not found] <fa.RNOVtHsCnerNJiCxv9p57P7pZcA@ifi.uio.no>
[not found] ` <fa.dSkcKtgkzrihvFnFz6eHJ4FfEqo@ifi.uio.no>
[not found] ` <fa.QUe06itDHMey7lWZGdbZCBEo+KI@ifi.uio.no>
[not found] ` <fa.Hc/xBcsQlAMlaXgROFi/tmfDmUc@ifi.uio.no>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070403230908.GA13471@cynthia.pants.nu \
--to=flar@allandria.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®