Received: by mail.netbsd.org (Postfix, from userid 605) id 2632884D43; Sun, 23 May 2021 11:49:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 52F5C84D44 for ; Sun, 23 May 2021 11:49:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id Fpdw6UJlfF_c for ; Sun, 23 May 2021 11:49:46 +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 D9A1C84D40 for ; Sun, 23 May 2021 11:49:46 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C63E9FA95; Sun, 23 May 2021 11:49:45 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 23 May 2021 11:49:45 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/dev/usb To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210523114945.C63E9FA95@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: Sun May 23 11:49:45 UTC 2021 Modified Files: src/sys/dev/usb: xhci.c xhcireg.h xhcivar.h Log Message: xhci(4): Draft suspend/resume. Work almost entirely done and tested by maya@ based on xhci 1.2 spec; tidied up and tweaked by me. Not sure about issuing Stop Endpoint commands or ensuring the Command Ring is in the Stopped or Idle state, but this seems to work as is, so it's already an improvement over what we had before which was no xhci suspend/resume at all. In particular, it's not clear to us: - if we don't have any pending USB activity whether we need to issue the Stop Endpoints or quiesce the command ring; but - if we do have any pending USB activity whether issuing Stop Endpoint is enough or whether we also need to do anything to synchronize with other software logic to quiesce it too. To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.139 src/sys/dev/usb/xhci.c cvs rdiff -u -r1.18 -r1.19 src/sys/dev/usb/xhcireg.h cvs rdiff -u -r1.17 -r1.18 src/sys/dev/usb/xhcivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.