]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r246616 and r246759:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Feb 2013 07:48:07 +0000 (07:48 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Feb 2013 07:48:07 +0000 (07:48 +0000)
commitb9c0d5f7587c1dab389c58e60e53f4ea6bd31546
tree752f5660fa807bdfab4681a4dbf7ab1916b45153
parent62fca97e43ce918e36477abde244e1c734527832
MFC r246616 and r246759:

- Move scratch data from the USB bus structure to the USB device
structure so that simultaneous access cannot happen. Protect scratch
area using the enumeration lock.
- Reduce stack usage in usbd_transfer_setup() by moving some big stack
members to the scratch area. This saves around 200 bytes of stack.
- Fix a whitespace.
- Protect control requests using the USB device enumeration lock.
- Make sure all callers of usbd_enum_lock() check the return value.
- Remove the control transfer specific lock.
- Bump the FreeBSD version number, hence external USB modules may need
to be recompiled due to a USB device structure change.

git-svn-id: svn://svn.freebsd.org/base/stable/9@247090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
16 files changed:
sys/dev/usb/controller/usb_controller.c
sys/dev/usb/template/usb_template.c
sys/dev/usb/usb_bus.h
sys/dev/usb/usb_controller.h
sys/dev/usb/usb_dev.c
sys/dev/usb/usb_dev.h
sys/dev/usb/usb_device.c
sys/dev/usb/usb_device.h
sys/dev/usb/usb_generic.c
sys/dev/usb/usb_handle_request.c
sys/dev/usb/usb_hub.c
sys/dev/usb/usb_msctest.c
sys/dev/usb/usb_request.c
sys/dev/usb/usb_transfer.c
sys/dev/usb/usb_util.c
sys/sys/param.h