Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-08-14 Thread Olaf Hering
On Tue, Aug 14, David Woodhouse wrote: > On Tue, 2007-08-14 at 13:49 +0200, Olaf Hering wrote: > > On Wed, Apr 04, Paul Mackerras wrote: > > > > > David Woodhouse writes: > > > > > > > There are proper device numbers registered for pmac_zilog now. Use them. > > > > Which numbers? > > shinybook

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-08-14 Thread David Woodhouse
On Tue, 2007-08-14 at 13:49 +0200, Olaf Hering wrote: > On Wed, Apr 04, Paul Mackerras wrote: > > > David Woodhouse writes: > > > > > There are proper device numbers registered for pmac_zilog now. Use them. > > Which numbers? shinybook /shiny/git/mtd-utils $ ls -l /dev/ttyPZ* crw-rw 1 root

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-08-14 Thread Olaf Hering
On Wed, Apr 04, Paul Mackerras wrote: > David Woodhouse writes: > > > There are proper device numbers registered for pmac_zilog now. Use them. Which numbers? > Sigh. I guess this is inevitable, but IMNSHO this exposes a weakness > in our serial subsystem. So, when will the name of pmac_zilog

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-13 Thread Geert Uytterhoeven
On Thu, 12 Apr 2007, David Lang wrote: > On Thu, 12 Apr 2007, Gerhard Mack wrote: > > Sometimes it's not the speed it's the cost.. The best I've ever done is > > 5.5 interfaces per u/ Although with a better motherboard and case it might > > have been different. > > I have a bunch of servers from r

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-12 Thread David Lang
h port it's ip range and blocks any address not assigned to that port) On Thu, 12 Apr 2007, Roland Dreier wrote: Date: Thu, 12 Apr 2007 08:34:40 -0700 From: Roland Dreier <[EMAIL PROTECTED]> To: Benny Amorsen <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-12 Thread Gerhard Mack
ress not assigned to that port) On Thu, 12 Apr 2007, Roland Dreier wrote: > Date: Thu, 12 Apr 2007 08:34:40 -0700 > From: Roland Dreier <[EMAIL PROTECTED]> > To: Benny Amorsen <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: Re: [PATCH] Sto

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-12 Thread Roland Dreier
> Indeed, port density is disappointingly poor in modern servers. Do you > know any with more than 14 ports per U? (That's an MBX 1U server with > 8 on-board and a 6-port expansion). If you really need a ton of ports you could probably build a 1U server with 2 * 2-port 10gig NICs, and use VLAN-

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-11 Thread Benny Amorsen
> "GM" == Gerhard Mack <[EMAIL PROTECTED]> writes: GM> On Wed, 4 Apr 2007, Alan Cox wrote: >> You don't get machines with 64 ethernet ports on add-in cards. >> There are good reasons for the naming schemes in use. GM> If they made them I'd build one. Indeed, port density is disappointingly p

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-06 Thread Pavel Machek
Hi! > > > Why? What's so special about the name 'ttyS'? > > > > It's the name that users of Linux expect built-in serial ports to have. > > Not really. The norm under Linux is for non-8250 ports to use > properly-registered device numbers and names. There's not many which are > still broken in t

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-05 Thread Olivier Galibert
On Wed, Apr 04, 2007 at 07:15:32PM +0100, Russell King wrote: > *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

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-05 Thread Russell King
On Thu, Apr 05, 2007 at 04:05:31PM +1000, Paul Mackerras wrote: > David Woodhouse writes: > > > And you always will be. The amount of pain involved in implementing > > this, just so that people can call their serial port 'ttyS0', is _far_ > > more than it's worth. It could be done, but it's a comp

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-05 Thread Paul Mackerras
David Woodhouse writes: > And you always will be. The amount of pain involved in implementing > this, just so that people can call their serial port 'ttyS0', is _far_ > more than it's worth. It could be done, but it's a completely pointless > waste of time and effort. Avoiding breaking userspace

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Miller
From: Russell King <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 10:00:16 +0100 > On Wed, Apr 04, 2007 at 01:43:30AM -0700, David Miller wrote: > > Well the "bad hack" we use on sparc gives usable serial ports, > > properly ordered and using /dev/ttyS0, with a proper matching > > console selection. >

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Woodhouse
On Wed, 2007-04-04 at 19:15 +0100, Russell King wrote: > 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 laye

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
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

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Linas Vepstas
On Tue, Apr 03, 2007 at 06:23:07PM -0700, David Lang wrote: > > people working with ~50 serial ports or ethernet ports aren't useing stock > distros anyway. ??? For "big servers", Suse SLES and RedHat RHEL are the defacto choices, with Ubuntu a rising star. It doesn't get much more stock than

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Theodore Tso
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, fo

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Linas Vepstas
On Wed, Apr 04, 2007 at 12:34:53PM -0400, David Woodhouse wrote: > On Wed, 2007-04-04 at 11:22 -0500, Linas Vepstas wrote: > > The biggest problem would seem to be that the assignment would > > depend on the detection order; there don't seem to be unique > > id's that would help udev consistently

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Woodhouse
On Wed, 2007-04-04 at 11:22 -0500, Linas Vepstas wrote: > The biggest problem would seem to be that the assignment would > depend on the detection order; there don't seem to be unique > id's that would help udev consistently assign device names in > consistent order. Of course there are. The di

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread H. Peter Anvin
Theodore Tso wrote: The other thing I would probably do if I were to do it all over again is allow serial devices to be named independent of /dev/ttySx interface, these days probably using /sysfs, so that you could easily query to figure out what serial controllers/cards were on the system, and

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Linas Vepstas
On Tue, Apr 03, 2007 at 04:09:08PM -0700, Brad Boyer wrote: > 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

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Alan Cox
> 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. I think this makes

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Wed, Apr 04, 2007 at 08:21:54AM -0400, Theodore Tso wrote: > So if we're going to do the "Worse is Better" thing, what I'd suggest > doing is that someone simply submit a hack so that pmac_zilog can > steal minor numbers and use /dev/ttyS0. I accepted the patch way back > when I was serial main

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread H. Peter Anvin
Geert Uytterhoeven wrote: Oh, and I always thought PTYs were moved to free up more minors for our zillions of serial ports... No, PTYs were moved because 64 ptys were woefully inadequate. 256 ptys were enough of a shortage for many users. The use of 16-bit Minix device numbers was a major

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread H. Peter Anvin
David Lang wrote: On Wed, 4 Apr 2007, Alan Cox wrote: You don't get machines with 64 ethernet ports on add-in cards. There are good reasons for the naming schemes in use. I've seen machines offering up to 48, what's the magic number that makes you need to chagne nameing schemes? Have you

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Wed, Apr 04, 2007 at 07:55:30PM +1000, Paul Mackerras wrote: > Russell King writes: > > FACT: there is no way to know at any particular driver registration time > > how many "generic" serial ports will be available - as required for the > > chardev and tty layers. > > I think the thing that d

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Woodhouse
On Wed, 2007-04-04 at 16:58 +1000, Paul Mackerras wrote: > David Woodhouse writes: > > > A GUI PPP dialer should be > > listing the available serial ports in the system whatever their names > > are. > > How do you propose they do that? Neither kppp nor gnome-ppp seem to > be able to do that curr

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Maciej W. Rozycki
On Wed, 4 Apr 2007, Geert Uytterhoeven wrote: > > > I don't see why that 'should' be the case. Certainly it _isn't_ the case > > > on most supported platforms -- we have separate device numbers, and > > > names, for most types of ports. There's only one or two drivers which > > > abuse ttySn for a

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Theodore Tso
On Wed, Apr 04, 2007 at 09:38:03AM +0100, Russell King wrote: > I think your perception is more wrong than you could ever think. > Montavista would absolutely love all serial ports to be under the > ttyS* naming, especially on ARM where there is a wide variety of > different possibilities - ttyAM,

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Olivier Galibert
On Wed, Apr 04, 2007 at 12:14:34PM +0100, Alan Cox wrote: > > If you want hierarchy, create it: > > > > /sys/blah/serial/controllerX/portY > > > > and keeping them all under the ttyS? major keeps the simple > > cases working sanely too. > > Currently yes you could do that, but that would break a

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Alan Cox
> If you want hierarchy, create it: > > /sys/blah/serial/controllerX/portY > > and keeping them all under the ttyS? major keeps the simple > cases working sanely too. Currently yes you could do that, but that would break all the back compatibility. - To unsubscribe from this list: send the line

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Paul Mackerras
Russell King writes: > FACT: you can only have one struct console with one name. That could be solved by having the struct console at the generic serial driver level rather than in the individual port drivers. > FACT: there is no way to know at any particular driver registration time > how many

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Geert Uytterhoeven
On Wed, 4 Apr 2007, Russell King wrote: > On Tue, Apr 03, 2007 at 04:09:08PM -0700, Brad Boyer wrote: > > 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 u

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Wed, Apr 04, 2007 at 01:43:30AM -0700, David Miller wrote: > From: Russell King <[EMAIL PROTECTED]> > Date: Wed, 4 Apr 2007 09:38:03 +0100 > > > However, despite people pressing for it, there's yet to be a *sane* > > *technical* *solution* to the problem. All I've seen so far is one > > bad ha

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Tue, Apr 03, 2007 at 04:09:08PM -0700, Brad Boyer wrote: > 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

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Miller
From: Russell King <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 09:38:03 +0100 > However, despite people pressing for it, there's yet to be a *sane* > *technical* *solution* to the problem. All I've seen so far is one > bad hack. Well the "bad hack" we use on sparc gives usable serial ports, proper

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Miller
From: Russell King <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 08:52:44 +0100 > On Tue, Apr 03, 2007 at 10:50:06PM -0700, David Miller wrote: > > From: David Woodhouse <[EMAIL PROTECTED]> > > Date: Wed, 04 Apr 2007 01:19:59 -0400 > > > > > I don't see why that 'should' be the case. Certainly it _is

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Wed, Apr 04, 2007 at 01:12:08AM -0700, David Miller wrote: > Your ARM example holds zero water because that platform has all kinds > of weird devices so people there are used to all kinds of non-standard > conventions and naming. I think your perception is more wrong than you could ever think.

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread David Miller
From: David Woodhouse <[EMAIL PROTECTED]> Date: Wed, 04 Apr 2007 02:03:54 -0400 > On Wed, 2007-04-04 at 15:53 +1000, Paul Mackerras wrote: > > It 'should' be the case because that is what is easiest for users and > > makes most sense from a user's point of view. > > I really don't buy that argume

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Tue, Apr 03, 2007 at 10:50:06PM -0700, David Miller wrote: > From: David Woodhouse <[EMAIL PROTECTED]> > Date: Wed, 04 Apr 2007 01:19:59 -0400 > > > I don't see why that 'should' be the case. Certainly it _isn't_ the case > > on most supported platforms -- we have separate device numbers, and >

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Russell King
On Tue, Apr 03, 2007 at 06:21:25PM -0700, David Miller wrote: > From: Alan Cox <[EMAIL PROTECTED]> > Date: Wed, 4 Apr 2007 02:19:24 +0100 > > > > I totally agree with Paul, the onboard serial device should get > > > ttyS0 regardless of what hardare is used to drive it. > > > > Thats between you a

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Geert Uytterhoeven
On Tue, 3 Apr 2007, David Miller wrote: > From: David Woodhouse <[EMAIL PROTECTED]> > Date: Wed, 04 Apr 2007 01:19:59 -0400 > > > I don't see why that 'should' be the case. Certainly it _isn't_ the case > > on most supported platforms -- we have separate device numbers, and > > names, for most typ

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-04 Thread Geert Uytterhoeven
On Tue, 3 Apr 2007, David Miller wrote: > From: Paul Mackerras <[EMAIL PROTECTED]> > Date: Wed, 4 Apr 2007 09:14:20 +1000 > > > David Woodhouse writes: > > > > > There are proper device numbers registered for pmac_zilog now. Use them. > > > > Sigh. I guess this is inevitable, but IMNSHO this ex

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Paul Mackerras
David Woodhouse writes: > A GUI PPP dialer should be > listing the available serial ports in the system whatever their names > are. How do you propose they do that? Neither kppp nor gnome-ppp seem to be able to do that currently. Gnome-ppp offers just /dev/modem and /dev/ttyS[0123]. Kppp offer

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Paul Mackerras
David Woodhouse writes: > > It 'should' be the case because that is what is easiest for users and > > makes most sense from a user's point of view. > > I really don't buy that argument. People cope perfectly well > with /dev/ttySA0 on StrongARM, with /dev/ttySC0 on SH, etc. If it isn't Those are

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Woodhouse
On Wed, 2007-04-04 at 15:53 +1000, Paul Mackerras wrote: > David Woodhouse writes: > > > Why? What's so special about the name 'ttyS'? > > It's the name that users of Linux expect built-in serial ports to have. Not really. The norm under Linux is for non-8250 ports to use properly-registered dev

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Paul Mackerras
David Woodhouse writes: > Why? What's so special about the name 'ttyS'? It's the name that users of Linux expect built-in serial ports to have. > > The built-in ports can generally be enumerated early on boot in a > > stable order, and they should be assigned the low ttySn numbers, > > regardles

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: David Woodhouse <[EMAIL PROTECTED]> Date: Wed, 04 Apr 2007 01:19:59 -0400 > I don't see why that 'should' be the case. Certainly it _isn't_ the case > on most supported platforms -- we have separate device numbers, and > names, for most types of ports. There's only one or two drivers which >

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Woodhouse
On Wed, 2007-04-04 at 14:20 +1000, Paul Mackerras wrote: > I never suggested *all* serial ports should be /dev/ttySn, I said that > the built-in ports on the motherboard should be /dev/ttySn. Why? What's so special about the name 'ttyS'? > The built-in ports can generally be enumerated early on

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Paul Mackerras
Alan Cox writes: > That would be completely unmanagable on many systems with multiport > controllers and interfaces where the naming tells you things like which > cable port off which socket off which multiplexor is the one you are > talking about. I never suggested *all* serial ports should be /

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Gerhard Mack
On Wed, 4 Apr 2007, Alan Cox wrote: > You don't get machines with 64 ethernet ports on add-in cards. There are > good reasons for the naming schemes in use. If they made them I'd build one. http://innerfire.net/pics/projects/21portfirewall_2.jpg Gerhard -- Gerhard Mack [EMAIL PROTECTED

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Lang
On Tue, 3 Apr 2007, [EMAIL PROTECTED] wrote: On Tue, 03 Apr 2007 16:09:08 PDT, Brad Boyer said: 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 i

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Chris Adams
Once upon a time, Brad Boyer <[EMAIL PROTECTED]> said: >The point is that people are used to having "ttyS0" mean the first >onboard serial port. My first serial port is a USB dongle and is ttyUSB0. If the argument is that all serials should be ttyS[0-9]+, are you going to change USB adapters as

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Valdis . Kletnieks
On Tue, 03 Apr 2007 16:09:08 PDT, Brad Boyer said: > 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

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Lang
On Tue, 3 Apr 2007, David Lang wrote: so leave all the ports numbered 0-49, but let people who need to know run a tool (even if it's dmesg -s 20 |grep ttyS) to learn the details of what hardware is used to run what port. and by the way, this is exactly what I do on machines with different

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Lang
On Wed, 4 Apr 2007, Alan Cox wrote: You don't get machines with 64 ethernet ports on add-in cards. There are good reasons for the naming schemes in use. I've seen machines offering up to 48, what's the magic number that makes you need to chagne nameing schemes? Have you tried working with 48

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 02:44:00 +0100 > Well the better designed serial setups on Linux use numbering so that you > can look on the multiplexor boxes and know straight away what the > correlation between port number and name is. In the same was as "S0 is > console

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 02:36:37 +0100 > I've no fundamental problem with S0->console port 1, S1 -> console port 2 > etc, but the general notion that type and positional information doesn't > matter is complete and utter bollocks when you try and apply it to any >

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: David Lang <[EMAIL PROTECTED]> Date: Tue, 3 Apr 2007 18:07:06 -0700 (PDT) > I've seen machines offering up to 48, what's the magic number that makes you > need to chagne nameing schemes? Yep, excellent point. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Alan Cox
> > You don't get machines with 64 ethernet ports on add-in cards. There are > > good reasons for the naming schemes in use. > > I've seen machines offering up to 48, what's the magic number that makes you > need to chagne nameing schemes? Have you tried working with 48 ports when they are not n

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Lang
On Wed, 4 Apr 2007, Alan Cox wrote: I don't need to know anything about the inanrds of my computer to bring up the ethernet interface, me caveman me bringup eth0, me on network, caveman happy. The same should be true for serial ports. You don't get machines with 64 ethernet ports on add-in ca

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Alan Cox
> 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. The define goe

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Alan Cox
> Using different majors for different instances of the exact same kind > of device is really not smart. It's a serial port, and if you try > to dress it up to be something else you run into all kinds of problems. Disagree. There are lots of good reasons you need to know which port/which card/whi

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Benjamin Herrenschmidt
On Tue, 2007-04-03 at 18:17 -0700, David Miller wrote: > From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > Date: Wed, 04 Apr 2007 11:13:12 +1000 > > > It worked before the new serial core, we had a "tweak" in the old 8250 > > driver to be able to share minors, but that got busted when Russell > >

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Alan Cox
> I don't need to know anything about the inanrds of my computer to > bring up the ethernet interface, me caveman me bringup eth0, me on > network, caveman happy. The same should be true for serial ports. You don't get machines with 64 ethernet ports on add-in cards. There are good reasons for th

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Alan Cox
> The TTY_MAJOR should have never belonged to 8250.c in the first place. > I know it's just my opinion, but I think this major device should be > owned by the serial core, and it shouldn't matter what chip drives each > individual port. Each hardware driver should just register with the > core how

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Brad Boyer
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

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: Alan Cox <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 02:19:24 +0100 > > I totally agree with Paul, the onboard serial device should get > > ttyS0 regardless of what hardare is used to drive it. > > Thats between you and udev. That might be true when udev exists, but it doesn't for the consol

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Date: Wed, 04 Apr 2007 11:13:12 +1000 > It worked before the new serial core, we had a "tweak" in the old 8250 > driver to be able to share minors, but that got busted when Russell > rewrote the whole thing. I remember asking him back when he still

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Alan Cox
> I totally agree with Paul, the onboard serial device should get > ttyS0 regardless of what hardare is used to drive it. Thats between you and udev. > Generalizing this minor number allocation for ttyS? might be the > best way to handle this. Again this is a udev issue. udev can certainly do a

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Benjamin Herrenschmidt
On Tue, 2007-04-03 at 16:56 -0700, David Miller wrote: > From: David Woodhouse <[EMAIL PROTECTED]> > Date: Tue, 03 Apr 2007 19:28:36 -0400 > > > Abusing the 8250 device numbers prevents the 8250 module from being > > loaded at the same time as pmac_zilog, and means you can't have both > > internal

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: David Woodhouse <[EMAIL PROTECTED]> Date: Tue, 03 Apr 2007 20:54:10 -0400 > 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 tha

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Benjamin Herrenschmidt
On Tue, 2007-04-03 at 20:12 -0400, David Woodhouse wrote: > On Tue, 2007-04-03 at 17:02 -0700, David Miller wrote: > > Sparc does the same thing, it's a common convention and you really > > should not break it. > > I thought that argument was lost many years ago. It _used_ to be a > common convent

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Woodhouse
On Tue, 2007-04-03 at 15:10 -0700, Brad Boyer wrote: > I suppose my opinion on this shows that I didn't come from the x86 > side of Linux. Perhaps, yes -- if you were just an x86 user you'd be unlikely to care about the issue at all -- mostly because it's never been a problem there. Not for the re

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Brad Boyer
On Tue, Apr 03, 2007 at 07:28:36PM -0400, David Woodhouse wrote: > I agree to a certain extent -- but then again, why should a user know or > care about the name /dev/ttyS0 _either_? A GUI PPP dialer should be > listing the available serial ports in the system whatever their names > are. The momen

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Brad Boyer
On Tue, Apr 03, 2007 at 08:12:48PM -0400, David Woodhouse wrote: > On Tue, 2007-04-03 at 17:02 -0700, David Miller wrote: > > Sparc does the same thing, it's a common convention and you really > > should not break it. > > I thought that argument was lost many years ago. It _used_ to be a > common

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Brad Boyer
On Tue, Apr 03, 2007 at 07:57:22PM -0400, David Woodhouse wrote: > > The TTY_MAJOR should have never belonged to 8250.c in the first place. > > I know it's just my opinion, but I think this major device should be > > owned by the serial core, and it shouldn't matter what chip drives each > > indivi

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Woodhouse
On Tue, 2007-04-03 at 17:02 -0700, David Miller wrote: > Sparc does the same thing, it's a common convention and you really > should not break it. I thought that argument was lost many years ago. It _used_ to be a common convention; we got better. > Every powerpc and sparc system out that is usin

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: David Woodhouse <[EMAIL PROTECTED]> Date: Tue, 03 Apr 2007 19:57:22 -0400 > Not really. Non-8250 serial ports, such as the multiport PCI cards from > Cyclades, Stallion, etc. have had their own device numbers for _years_. > With hindsight, it was a mistake for pmac_zilog ever to have been ca

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: David Woodhouse <[EMAIL PROTECTED]> Date: Tue, 03 Apr 2007 19:28:36 -0400 > Abusing the 8250 device numbers prevents the 8250 module from being > loaded at the same time as pmac_zilog, and means you can't have both > internal port and PCMCIA or PCI 8250 ports active at the same time. Dynami

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Woodhouse
On Tue, 2007-04-03 at 14:29 -0700, Brad Boyer wrote: > On Tue, Apr 03, 2007 at 07:28:36PM -0400, David Woodhouse wrote: > > I agree to a certain extent -- but then again, why should a user know or > > care about the name /dev/ttyS0 _either_? A GUI PPP dialer should be > > listing the available seri

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Miller
From: Paul Mackerras <[EMAIL PROTECTED]> Date: Wed, 4 Apr 2007 09:14:20 +1000 > David Woodhouse writes: > > > There are proper device numbers registered for pmac_zilog now. Use them. > > Sigh. I guess this is inevitable, but IMNSHO this exposes a weakness > in our serial subsystem. > > The pro

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread David Woodhouse
On Wed, 2007-04-04 at 09:14 +1000, Paul Mackerras wrote: > Sigh. I guess this is inevitable, but IMNSHO this exposes a weakness > in our serial subsystem. > > The problem is that this means that a user has to know "oh, the serial > port on my computer is implemented with a Z85C30 chip, therefore

Re: [PATCH] Stop pmac_zilog from abusing 8250's device numbers.

2007-04-03 Thread Paul Mackerras
David Woodhouse writes: > There are proper device numbers registered for pmac_zilog now. Use them. Sigh. I guess this is inevitable, but IMNSHO this exposes a weakness in our serial subsystem. The problem is that this means that a user has to know "oh, the serial port on my computer is implemen