From owner-cvs-src-old@FreeBSD.ORG Mon May 17 23:50:42 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58732106568E for ; Mon, 17 May 2010 23:50:42 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (unknown [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 460F38FC1C for ; Mon, 17 May 2010 23:50:42 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o4HNogrv014511 for ; Mon, 17 May 2010 23:50:42 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4HNogBJ014510 for cvs-src-old@freebsd.org; Mon, 17 May 2010 23:50:42 GMT (envelope-from thompsa@repoman.freebsd.org) Message-Id: <201005172350.o4HNogBJ014510@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to thompsa@repoman.freebsd.org using -f From: Andrew Thompson Date: Mon, 17 May 2010 23:45:31 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/dev/usb usb_device.c usb_device.h usb_generic.c usb_hub.c usb_request.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 23:50:42 -0000 thompsa 2010-05-17 23:45:31 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/usb usb_device.c usb_device.h usb_generic.c usb_hub.c usb_request.c Log: SVN rev 208221 on 2010-05-17 23:45:31Z by thompsa 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. Revision Changes Path 1.44.2.17 +30 -3 src/sys/dev/usb/usb_device.c 1.27.2.7 +3 -0 src/sys/dev/usb/usb_device.h 1.20.2.5 +24 -4 src/sys/dev/usb/usb_generic.c 1.28.2.9 +83 -41 src/sys/dev/usb/usb_hub.c 1.24.2.6 +18 -6 src/sys/dev/usb/usb_request.c