All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Theodore Tso <tytso@mit.edu>, "H. Peter Anvin" <hpa@zytor.com>,
	David Miller <davem@davemloft.net>,
	dwmw2@infradead.org, paulus@samba.org, alan@lxorguk.ukuu.org.uk,
	flar@allandria.com, linuxppc-dev@ozlabs.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.
Date: Wed, 4 Apr 2007 19:15:32 +0100	[thread overview]
Message-ID: <20070404181531.GA9388@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20070404174153.GI31973@thunk.org>

On Wed, Apr 04, 2007 at 01:41:53PM -0400, Theodore Tso wrote:
> On Wed, Apr 04, 2007 at 09:16:42AM -0700, H. Peter Anvin wrote:
> > One option would be to move the 8250-based serial ports, to, say, 
> > /dev/ttyN* (for National Semiconductors -- the best I could come up 
> > with) and redefine /dev/ttyS* as a serial port multiplexer which maps in 
> > all the types, for the ones that really want dynamic mapping.
> 
> > Of course, now you have the potential of aliasing, again, which tends to 
> > cause all kinds of headaches w.r.t. locking.  
> 
> That would break the 99.9% of the the world using Intel-based systems
> which only have 8250's, for very little gain. 
> 
> Like it or not, /dev/ttySx and 8250 UART's are to serial ports what
> the PCI is to system buses....

And the simple answer to this (oh I've been here before) is to leave
the existing serial allocations well alone.

Then, you allocate a new major number and device name for the dynamically
assigned space and arrange for the serial layer to map these new chardevs
to the real serial ports.

*However* you still run into the issue that you do not know how many
serial ports you will need to register a tty driver with the tty layer.
Solve that technical problem and the idea of having a single namespace
for chosen serial ports and 8250 ports suddenly becomes realistic.

Continue ignoring that problem and this thread will just grow with zero
real progress.

I'm repeating myself though.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

  reply	other threads:[~2007-04-04 18:15 UTC|newest]

Thread overview: 189+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-03 14:25 [PATCH] Stop pmac_zilog from abusing 8250's device numbers David Woodhouse
2007-04-03 20:37 ` Brad Boyer
2007-04-03 22:58   ` David Woodhouse
2007-04-03 23:14 ` Paul Mackerras
2007-04-03 23:14   ` Paul Mackerras
2007-04-03 23:28   ` David Woodhouse
2007-04-03 23:28     ` David Woodhouse
2007-04-03 21:29     ` Brad Boyer
2007-04-03 21:29       ` Brad Boyer
2007-04-03 23:57       ` David Woodhouse
2007-04-03 23:57         ` David Woodhouse
     [not found]         ` <200704032210 02.GA13210@cynthia.pants.nu>
2007-04-03 22:10         ` Brad Boyer
2007-04-03 22:10           ` Brad Boyer
2007-04-04  0:54           ` David Woodhouse
2007-04-04  0:54             ` David Woodhouse
2007-04-03 23:09             ` Brad Boyer
2007-04-03 23:09               ` Brad Boyer
2007-04-04  1:38               ` Alan Cox
2007-04-04  1:38                 ` Alan Cox
2007-04-04  2:05               ` Chris Adams
2007-04-04  2:10               ` Valdis.Kletnieks
2007-04-04  2:10                 ` Valdis.Kletnieks
2007-04-04  1:57                 ` David Lang
2007-04-04  1:57                   ` David Lang
2007-04-04  8:51               ` Russell King
2007-04-04  8:51                 ` Russell King
2007-04-04  9:48                 ` Geert Uytterhoeven
2007-04-04  9:48                   ` Geert Uytterhoeven
2007-04-04 16:09                   ` H. Peter Anvin
2007-04-04 16:09                     ` H. Peter Anvin
2007-04-04 16:22               ` Linas Vepstas
2007-04-04 16:22                 ` Linas Vepstas
2007-04-04 16:34                 ` David Woodhouse
2007-04-04 16:34                   ` David Woodhouse
2007-04-04 17:38                   ` Linas Vepstas
2007-04-04 17:38                     ` Linas Vepstas
2007-04-04  1:16             ` David Miller
2007-04-04  1:16               ` David Miller
2007-04-04  1:28               ` Alan Cox
2007-04-04  1:28                 ` Alan Cox
2007-04-04  1:07                 ` David Lang
2007-04-04  1:07                   ` David Lang
2007-04-04  1:44                   ` Alan Cox
2007-04-04  1:44                     ` Alan Cox
2007-04-04  1:23                     ` David Lang
2007-04-04  1:23                       ` David Lang
2007-04-04  1:32                       ` David Lang
2007-04-04  1:32                         ` David Lang
2007-04-04 16:07                       ` H. Peter Anvin
2007-04-04 16:07                         ` H. Peter Anvin
2007-04-04 17:50                       ` Linas Vepstas
2007-04-04 17:50                         ` Linas Vepstas
2007-04-04  1:50                     ` David Miller
2007-04-04  1:50                       ` David Miller
2007-04-04 11:14                       ` Alan Cox
2007-04-04 11:14                         ` Alan Cox
2007-04-04 12:20                         ` Olivier Galibert
2007-04-04 12:20                           ` Olivier Galibert
2007-04-04  1:48                   ` David Miller
2007-04-04  1:48                     ` David Miller
2007-04-04  3:07                 ` Gerhard Mack
2007-04-04  3:07                   ` Gerhard Mack
2007-04-11 16:30                   ` Benny Amorsen
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:45                         ` Gerhard Mack
2007-04-13  2:24                         ` David Lang
2007-04-13  2:24                           ` David Lang
2007-04-13  8:09                           ` Geert Uytterhoeven
2007-04-13  8:09                             ` Geert Uytterhoeven
2007-04-04  0:02         ` David Miller
2007-04-04  0:02           ` David Miller
2007-04-04  0:12           ` David Woodhouse
2007-04-04  0:12             ` David Woodhouse
2007-04-03 22:14             ` Brad Boyer
2007-04-03 22:14               ` Brad Boyer
2007-04-04  1:13             ` Benjamin Herrenschmidt
2007-04-04  1:13               ` Benjamin Herrenschmidt
2007-04-04  1:17               ` David Miller
2007-04-04  1:17                 ` David Miller
2007-04-04  1:32                 ` Benjamin Herrenschmidt
2007-04-04  1:32                   ` Benjamin Herrenschmidt
2007-04-04  0:01       ` [PATCH v2] " David Woodhouse
2007-04-04  0:01         ` David Woodhouse
2007-04-04  1:25       ` [PATCH] " Alan Cox
2007-04-04  1:25         ` Alan Cox
2007-04-04  4:20         ` Paul Mackerras
2007-04-04  4:20           ` Paul Mackerras
2007-04-04  5:19           ` David Woodhouse
2007-04-04  5:19             ` David Woodhouse
2007-04-04  5:50             ` David Miller
2007-04-04  5:50               ` David Miller
2007-04-04  7:04               ` Geert Uytterhoeven
2007-04-04  7:04                 ` Geert Uytterhoeven
2007-04-04 13:43                 ` Maciej W. Rozycki
2007-04-04 13:43                   ` Maciej W. Rozycki
2007-04-04  7:52               ` Russell King
2007-04-04  7:52                 ` Russell King
2007-04-04  8:41                 ` David Miller
2007-04-04  8:41                   ` David Miller
2007-04-04  5:53             ` Paul Mackerras
2007-04-04  5:53               ` Paul Mackerras
2007-04-04  6:03               ` David Woodhouse
2007-04-04  6:03                 ` David Woodhouse
2007-04-04  6:31                 ` Paul Mackerras
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 14:19                     ` David Woodhouse
2007-04-04 23:48                     ` Paul Mackerras
2007-04-04 23:48                       ` Paul Mackerras
2007-04-05 12:45                       ` David Woodhouse
2007-04-05 12:45                         ` David Woodhouse
2007-04-05 22:53                         ` Paul Mackerras
2007-04-05 22:53                           ` Paul Mackerras
2007-04-05 22:59                           ` David Woodhouse
2007-04-05 22:59                             ` David Woodhouse
2007-04-05 14:31                     ` Atsushi Nemoto
2007-04-05 14:31                       ` Atsushi Nemoto
2007-04-05 14:47                       ` David Woodhouse
2007-04-05 14:47                         ` David Woodhouse
2007-04-05 15:09                         ` Atsushi Nemoto
2007-04-05 15:09                           ` Atsushi Nemoto
2007-04-05 15:18                           ` David Woodhouse
2007-04-05 15:18                             ` David Woodhouse
2007-04-05 15:49                             ` Atsushi Nemoto
2007-04-05 15:49                               ` Atsushi Nemoto
2007-04-05 15:56                         ` Geert Uytterhoeven
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:12                   ` David Miller
2007-04-04  8:38                   ` Russell King
2007-04-04  8:38                     ` Russell King
2007-04-04  8:43                     ` David Miller
2007-04-04  8:43                       ` David Miller
2007-04-04  9:00                       ` Russell King
2007-04-04  9:00                         ` Russell King
2007-04-04 19:58                         ` David Miller
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 16:25                           ` Alan Cox
2007-04-04 17:41                         ` Theodore Tso
2007-04-04 17:41                           ` Theodore Tso
2007-04-04 18:15                           ` Russell King [this message]
2007-04-04 19:50                             ` David Woodhouse
2007-04-04 19:50                               ` David Woodhouse
2007-04-05  6:05                               ` Paul Mackerras
2007-04-05  6:05                                 ` Paul Mackerras
2007-04-05  8:50                                 ` Russell King
2007-04-05  8:50                                   ` Russell King
2007-04-05 16:15                             ` Olivier Galibert
2007-04-05 21:41                 ` Pavel Machek
2007-04-05 21:41                   ` Pavel Machek
2007-04-03 23:56     ` David Miller
2007-04-03 23:56       ` David Miller
2007-04-04  1:13       ` Benjamin Herrenschmidt
2007-04-04  1:13         ` Benjamin Herrenschmidt
2007-04-04  6:58     ` Paul Mackerras
2007-04-04  6:58       ` Paul Mackerras
2007-04-04 14:16       ` David Woodhouse
2007-04-04 14:16         ` David Woodhouse
2007-04-03 23:55   ` David Miller
2007-04-03 23:55     ` David Miller
2007-04-04  1:19     ` Alan Cox
2007-04-04  1:19       ` Alan Cox
2007-04-04  1:21       ` David Miller
2007-04-04  1:21         ` David Miller
2007-04-04  1:36         ` Alan Cox
2007-04-04  1:36           ` Alan Cox
2007-04-04  1:47           ` David Miller
2007-04-04  1:47             ` David Miller
2007-04-04  7:47         ` Russell King
2007-04-04  7:47           ` Russell King
2007-04-04  9:55           ` Paul Mackerras
2007-04-04  9:55             ` Paul Mackerras
2007-04-04 16:06             ` Russell King
2007-04-04 16:06               ` Russell King
2007-04-04  6:58     ` Geert Uytterhoeven
2007-04-04  6:58       ` Geert Uytterhoeven
2007-08-14 11:49   ` Olaf Hering
2007-08-14 11:49     ` Olaf Hering
2007-08-14 11:53     ` David Woodhouse
2007-08-14 11:53       ` David Woodhouse
2007-08-14 16:24       ` Olaf Hering
2007-08-14 16:24         ` Olaf Hering
2007-04-04  7:55 ` 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=20070404181531.GA9388@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davem@davemloft.net \
    --cc=dwmw2@infradead.org \
    --cc=flar@allandria.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=tytso@mit.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.