ChangeSet 1.1936, 2004/04/22 13:53:58-07:00, [EMAIL PROTECTED]

[PATCH] USB: usbnet and pl2301/2302 reset

Handle some PL-2301/2302 devices better.


 drivers/usb/net/usbnet.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


diff -Nru a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
--- a/drivers/usb/net/usbnet.c  Thu Apr 22 14:40:55 2004
+++ b/drivers/usb/net/usbnet.c  Thu Apr 22 14:40:55 2004
@@ -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 = {



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to