This patch should help users with some Prolific usbnet cables
become happier.  Please merge.

- Dave
Handle some PL-2301/2302 devices better.

--- x26/drivers/usb/net/usbnet.c        2004-04-21 09:52:45.000000000 -0700
+++ gadget-2.6/drivers/usb/net/usbnet.c 2004-04-20 20:44:45.000000000 -0700
@@ -2107,8 +2107,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