Hi,
this patch fixes an "Invalid argument" error returned by a write to an
endpoint-file after reopening it in the
gadgetfs module in the kernel 2.6.12.
This was testet only with dummy_hcd module!
Pavol Kurina
Signed-off-by: Pavol Kurina <[EMAIL PROTECTED]>
----------
diff -u -r -p linux-2.6.12.orig/drivers/usb/gadget/inode.c
linux-2.6.12/drivers/usb/gadget/inode.c
--- linux-2.6.12.orig/drivers/usb/gadget/inode.c 2005-09-07
14:49:26.000000000 +0200
+++ linux-2.6.12/drivers/usb/gadget/inode.c 2005-09-07
14:47:59.000000000 +0200
@@ -483,6 +483,7 @@ ep_release (struct inode *inode, struct
data->state = STATE_EP_DISABLED;
data->desc.bDescriptorType = 0;
data->hs_desc.bDescriptorType = 0;
+ usb_ep_disable(data->ep);
}
put_ep (data);
return 0;
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel