Martin MOKREJŠ wrote:

When trying "ifconfig usb0 IP-address", I get in syslog:


...
usb0: register usbnet at usb-0000:00:1d.0-2, Prolific PL-2301/PL-2302
usb0: open reset fail (-32) usbnet usb-0000:00:1d.0-2, Prolific PL-2301/PL-2302

I think the right answer is just a patch to ignore open reset failures. Thing is, some Prolific chips seem to require it, others seem to fail it. Lacking information from Prolific, we can't do better.

Does patch this help?

- Dave



--- 1.77/drivers/usb/net/usbnet.c       Mon Nov  3 05:05:44 2003
+++ edited/drivers/usb/net/usbnet.c     Sun Dec 28 16:50:05 2003
@@ -2011,8 +2011,12 @@
 
 static int pl_reset (struct usbnet *dev)
 {
-       return pl_set_QuickLink_features (dev,
+       /* some units seem to need this reset, others reject it utterly.
+        * FIXME be more like "naplink" or windows drivers.
+        */
+       (void) pl_set_QuickLink_features (dev,
                PL_S_EN|PL_RESET_OUT|PL_RESET_IN|PL_PEER_E);
+       return 0;
 }
 
 static const struct driver_info        prolific_info = {

Reply via email to