]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r246616 and r246759:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Feb 2013 08:21:14 +0000 (08:21 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Feb 2013 08:21:14 +0000 (08:21 +0000)
commit8430e944e6b30a9dce4e263c1aa72540be90d4ca
treec7fa25bcb6b7992ef9e108da7ed22b88b3144398
parent6dba3638cc7b9e456fa645f8bef383b3000c68ed
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/8@247091 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