Greg:

This one-liner fixes a simple mistake in a newly-added part of the hub 
driver.  When a connect change takes place on a suspended port the code 
clears the suspend, but the port number it passes is origin-0 and it 
should be origin-1.

Please apply.

Alan Stern



Signed-off-by: Alan Stern <[EMAIL PROTECTED]>

===== drivers/usb/core/hub.c 1.195 vs edited =====
--- 1.195/drivers/usb/core/hub.c        Wed Aug 18 11:44:48 2004
+++ edited/drivers/usb/core/hub.c       Tue Sep  7 17:22:52 2004
@@ -2034,7 +2034,7 @@
                        hdev->bus->b_hnp_enable = 0;
        }
 
-       retval = clear_port_feature(hdev, port, USB_PORT_FEAT_SUSPEND);
+       retval = clear_port_feature(hdev, port + 1, USB_PORT_FEAT_SUSPEND);
        if (retval < 0 && retval != -EPIPE)
                dev_dbg(&udev->dev, "can't clear suspend; %d\n", retval);
 



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to