Received: by mail.netbsd.org (Postfix, from userid 605) id 40EB284F97; Thu, 3 Mar 2022 06:22:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6A5E084F2E for ; Thu, 3 Mar 2022 06:13:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id qKeGBHyixLkg for ; Thu, 3 Mar 2022 06:13:36 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 001CA84F05 for ; Thu, 3 Mar 2022 06:13:35 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id F1442FB24; Thu, 3 Mar 2022 06:13:35 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 3 Mar 2022 06:13:35 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/dev/usb To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220303061335.F1442FB24@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Thu Mar 3 06:13:35 UTC 2022 Modified Files: src/sys/dev/usb: usb_subr.c Log Message: usbdi(9): Suspend control pipe on detach. The device is gone so control transfers won't complete anyway. This obviates the need to wait for usbd_do_request to time out. Seems like maybe we should make _all_ xfers fail with USBD_CANCELLED when the device is detached, but there's no list of pipes we can just walk down to suspend them, so we'd have to find another way to do so. For now, we'll just keep having drivers suspend/abort pipes other than the control pipe. To generate a diff of this commit: cvs rdiff -u -r1.269 -r1.270 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.