Re: Question about usb-serial port registration

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, Mar 23, 2007 at 07:18:50PM -0700, John wrote:
> 
> --- Greg KH <[email protected]> wrote:
> 
> > As for applications that foolishly use ttyUSB0 only,
> > well, they kind of deserve the breakage.  
> > It is pretty trivial to work around that issue
> > with udev if they want to (and it's recommended 
> > that they fix it that way...)
> 
> In this case somebody should fix usb_console_setup,
> because it has the following lines:
> 
> /* grab the first serial port that happens to be
> connected */
> serial = usb_serial_get_by_index(0);
> if (serial == NULL) {
> 	/* no device is connected yet, sorry :( */
> 	err ("No USB device connected to ttyUSB0");
> 	return -ENODEV;
> }

The usb-serial console is a different story, that happens at boot time,
where you should have a ttyUSB0.  If not, it doesn't work.

Not to say it really works well anyway, but that's a different story :)

thanks,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.