From nobody Thu Feb 02 11:20:24 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P6xCr51vnz3cwsX; Thu, 2 Feb 2023 11:20:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P6xCr4Td9z47rs; Thu, 2 Feb 2023 11:20:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675336824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HVONg+6QJp0s0Lv5wEhMdfVrf90V9wMR5Najv4uH2e8=; b=WYhL3SOQVPG7jRAeVr/7ZT9eX6TcLBUD3F6Gslvn8medGSdFrrm+/Y3H9jobQfuYquauvy EQ/pD/dHB2DQBcoxfCHnHX7DAaqkssifnvNlGAeA1PVjc3yUHLkIfyoTq1+Z8yqhaRj0Ft PBx9gbTazwtSVo87lJJzLPh+ZlHpj3wb+dHV4d/BSnvdIjTIRohzuDG/EHa2n4h8mh3Afi lHU2NikRckYqW4namduwRdg+0C4oLRxQMKruN6hJWfmAhFF4FhQ00tJWnnM6pmgOyvqZKg X2dz/XOF0scjz3mcHEGLeN94od6iks25a27ukeKRmg0wRAiEHi8Z0UKvbmDdtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675336824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HVONg+6QJp0s0Lv5wEhMdfVrf90V9wMR5Najv4uH2e8=; b=YH3iDje1XF/xlaAZR8ULTefyJ0sSnjibO69+ru1Hj0d31HLOd650yUzfj9k7vs/IRoA/Ce Q8LrmDwHQaIAxHOVlP86hd7A296gnCP+ohlvMC2YJEF3Z3DRGu8vzvCWN9j2E5GovdAl+F x66zw/u1qfNn/hz0AWQME1sC+dhaPxK7+YtPDAxKQiNOQHvtbLqyKfCU11jp3OAMmMnhxl IegdnC49zh6NTnVTR5ZdYZo2JpT6gxNnFnkEvvY05eIJwl0bBbxYVGvwC/yWfrYoyFsXY8 ei7VqaK1vmAgscvfsE80Y2TzBOL5bls5l6q9PAmX2f6vnyFZ2lOokrK3NPnpaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675336824; a=rsa-sha256; cv=none; b=oVpioTmMGAjeKhySTRmXRGytdPgHdzyHDP7/f0fsfEFGY5zpJUG7oqJ6T4KH+fItS5//KA 8K1ureIFZTBVlPAi22FG3IlU2nfuNEltJ71BQ+Kn6CkEp5uLcHMhW+074W8qHbN4AsihJe MACeLcVhliqnuTrOJ5dcpMyTOUz1VBBR8dgl3xbPrcLBDW8FJ5XlbYErOEzY8cpzq1IMHe 2L5wD9S+PSlzWJ3be2n8M7YegKkGGpAz2sB3aW+X3G3QsK5YorA6ymRJr3tbGbc1JXmVwG I7cu3oaIZHgfhUU+UkNtdXsdDmLNcpcqJ/yzNcH0YWmPWOZtrJ9CmYfbYv4Qew== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P6xCr3bGvzsSc; Thu, 2 Feb 2023 11:20:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 312BKO30085915; Thu, 2 Feb 2023 11:20:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 312BKO98085914; Thu, 2 Feb 2023 11:20:24 GMT (envelope-from git) Date: Thu, 2 Feb 2023 11:20:24 GMT Message-Id: <202302021120.312BKO98085914@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 181feb34605c - stable/13 - usb/dwc3: Use more () for macros variables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 181feb34605c3b711fda0e463ef48ead9eec059d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=181feb34605c3b711fda0e463ef48ead9eec059d commit 181feb34605c3b711fda0e463ef48ead9eec059d Author: Emmanuel Vadot AuthorDate: 2022-11-16 10:57:56 +0000 Commit: Emmanuel Vadot CommitDate: 2023-02-02 11:19:08 +0000 usb/dwc3: Use more () for macros variables Suggested by: andrew Sponsored by: Beckhoff Automation GmbH & Co. KG (cherry picked from commit 0860c27fe8cf144cb10f8916a0b8fe5ad57a3d9e) --- sys/dev/usb/controller/dwc3.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/controller/dwc3.h b/sys/dev/usb/controller/dwc3.h index c69672072209..72420890d28c 100644 --- a/sys/dev/usb/controller/dwc3.h +++ b/sys/dev/usb/controller/dwc3.h @@ -99,7 +99,7 @@ #define DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS 9 #define DWC3_GUSB2PHYCFG0_USBTRDTIM_16BITS 5 #define DWC3_GUSB2PHYCFG0_ENBLSLPM (1 << 8) -#define DWC3_GUSB2PHYCFG0_PHYSEL(x) ((x >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */ +#define DWC3_GUSB2PHYCFG0_PHYSEL(x) (((x) >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */ #define DWC3_GUSB2PHYCFG0_SUSPENDUSB20 (1 << 6) #define DWC3_GUSB2PHYCFG0_ULPI_UTMI_SEL (1 << 4) #define DWC3_GUSB2PHYCFG0_PHYIF (1 << 3) @@ -110,6 +110,11 @@ #define DWC3_GUSB3PIPECTL0_DELAYP1TRANS (1 << 18) #define DWC3_GUSB3PIPECTL0_SUSPENDUSB3 (1 << 17) +#define DWC3_HWPARAMS3_SSPHY(x) ((x) & 0x3) +#define DWC3_HWPARAMS3_SSPHY_DISABLE 0 +#define DWC3_HWPARAMS3_SSPHY_GEN1 1 +#define DWC3_HWPARAMS3_SSPHY_GEN2 2 + #define DWC3_GTXFIFOSIZ(x) (0xc300 + 0x4 * (x)) #define DWC3_GRXFIFOSIZ(x) (0xc380 + 0x4 * (x)) #define DWC3_GEVNTADRLO0 0xc400