Am Freitag, 2. März 2007 22:12 schrieb Adam J. Richter:
>       When I plug in a pl2303-based usb serial device, the device is
> supposed to appear as /dev/tts/USB0 (character device 188, 0).
> However, under kernels that I have tried from 2.6.20-git3 through
> 2.6.21-rc2-git1, /dev/tts/USB<some-random-number> is created, and
> attempting to open that file returns a "no such device" error.  I have
> not seen that random number exceed 256, by the way.  Doing "mknod
> /dev/tts/USB0 c 188 0" and then opening that file resulted kernel oops
> on the one kernel version on which I tried it (I think around
> 2.6.20-git11).

Please try this patch. It is needed in any case and it may be your problem's
cause.

        Regards
                Oliver

--- linux-2.6.21-rc1/drivers/usb/serial/usb-serial.c.alt        2007-02-21 
05:32:30.000000000 +0100
+++ linux-2.6.21-rc1/drivers/usb/serial/usb-serial.c    2007-02-26 
15:32:50.000000000 +0100
@@ -826,7 +826,6 @@
                        num_ports = type->num_ports;
        }
 
-       serial->minor = minor;
        serial->num_ports = num_ports;
        serial->num_bulk_in = num_bulk_in;
        serial->num_bulk_out = num_bulk_out;
@@ -980,6 +979,7 @@
                dev_err(&interface->dev, "No more free serial devices\n");
                goto probe_error;
        }
+       serial->minor = minor;
 
        /* register all of the individual ports with the driver core */
        for (i = 0; i < num_ports; ++i) {

-------------------------------------------------------------------------
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
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to