]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r208008
authorthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 17 May 2010 23:45:31 +0000 (23:45 +0000)
committerthompsa <thompsa@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 17 May 2010 23:45:31 +0000 (23:45 +0000)
commit1831744ba7d633a0244700ee7864009959478e2e
treed69b94a4f80e455fbcc483853ec8c5734fb45775
parentad5831851629a420af431c97097b6e6741fa5968
MFC r208008

 If a USB device is suspended and a USB set config request is issued when the
 USB enumeration lock is locked, then the USB stack fails to resume the device
 because locking the USB enumeration lock is part of the resume procedure. To
 solve this issue a new lock is introduced which only protects the suspend and
 resume callbacks, which can be dropped inside the usbd_do_request_flags()
 function, to allow suspend and resume during so-called enumeration operations.

git-svn-id: svn://svn.freebsd.org/base/stable/8@208221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/usb_device.c
sys/dev/usb/usb_device.h
sys/dev/usb/usb_generic.c
sys/dev/usb/usb_hub.c
sys/dev/usb/usb_request.c