diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-02-24 03:41:52 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-02-24 03:41:52 +0000 |
commit | 8041f6f6948e9212d22713bd2c0c2bec494e144c (patch) | |
tree | 13d47a7128085f71816e3d34526404331e4d64fa /sys/dev/usb/usb_handle_request.c | |
parent | 111921b05dd005836d9139fff6225cf38ae27b4f (diff) | |
download | FreeBSD-src-8041f6f6948e9212d22713bd2c0c2bec494e144c.zip FreeBSD-src-8041f6f6948e9212d22713bd2c0c2bec494e144c.tar.gz |
MFp4 //depot/projects/usb@157958
- We don't need to exit the Giant mutex when sleeping. This is done
automatically. Replace Giant by NULL mutex for all control requests in the
enumeration path.
- Optimise away duplicate alternate interface selection requests in USB Host
mode.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/usb_handle_request.c')
-rw-r--r-- | sys/dev/usb/usb_handle_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_handle_request.c b/sys/dev/usb/usb_handle_request.c index 05a739a..3d2425a 100644 --- a/sys/dev/usb/usb_handle_request.c +++ b/sys/dev/usb/usb_handle_request.c @@ -277,6 +277,10 @@ tr_repeat: } break; } + /* + * Doing the alternate setting will detach the + * interface aswell: + */ error = usb2_set_alt_interface_index(udev, iface_index, req.wValue[0]); if (error) { |