Re: [parisc-linux] 3 Serial issues up for discussion (was: Re: Serial core problems on embedded PPC)

Russell King (rmk@arm.linux.org.uk)
Tue, 30 Jul 2002 16:53:51 +0100


On Tue, Jul 30, 2002 at 11:43:13AM -0400, Stuart MacDonald wrote:
> No, I was wondering if leaving the USB serial major 18[89] alone would
> be a better idea. Since posting, I've been thinking that the usb
> serial driver presents the same interface to the tty layer as any
> other serial device so I guess it's not a bad idea.

To be able to suck in USB (and some of the other drivers), two changes
need to be made to the core:

1. the change_speed method needs to be handled differently; we currently
assume a UART-style implementation here. We need to change this
around before 2.6 anyway for ports which don't support all the
termios settings (SuSv3 requires that any unimplemented features
retain their original values, so for example if we don't have RTS
and CTS lines on a particular implementation, CRTSCTS should be
initially off and not turn on-able.)

2. USB devices want "packets" of data to write rather than the ring-
buffer we currently use for UARTs.

(time to start ebaying for USB serial devices...)

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/