From nobody Wed Dec 29 16:03:59 2021 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 60BD0191B2CC; Wed, 29 Dec 2021 16:04:01 +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 4JPGRh2qpgz4XSh; Wed, 29 Dec 2021 16:04:00 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 1B2B4279EE; Wed, 29 Dec 2021 16:04:00 +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 1BTG40KG028152; Wed, 29 Dec 2021 16:04:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BTG3xAL028151; Wed, 29 Dec 2021 16:03:59 GMT (envelope-from git) Date: Wed, 29 Dec 2021 16:03:59 GMT Message-Id: <202112291603.1BTG3xAL028151@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 8adc24f7c563 - stable/13 - USB dwc3 controller: add quirk snps,dis_rxdet_inp3_quirk 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8adc24f7c563637b94a78399d670824e01029045 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640793840; 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=xTEuN3VPtDLWHG8ewlirszYDy9CWDYMMxBpcB2EKYeA=; b=J3j44+ry0Qb3W1MGFpizZdzxsHp4EIr+q0zqF0jmwdxKNUggK+VUf1VxcgDP2EU1l1BhM7 SO4934fhJ3CCXkUx/KYA3fT/ltunTdONRVmUxpNOA/+uisGlbFSLtj6lKHRHGztWAsa0vs Mckgw0MGisA9MbwW6QwhwBtP5L8ZPnz5VFME6R+fL8HCzrlPB6/1tRJjD/NG/77ifCGurz WyDkdUYi/q+3heUOc4yv0ZehaEakDsDWwl/QnQW2oKuHq40Vp1fwH3I1nY5RBHhOuLYbPH ii5kN1iOzcVMjpUw2pKEiheHl95dzFXeGpNwbixWOx3r4p96cw8MYhiWDboGKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640793840; a=rsa-sha256; cv=none; b=RUR+p2KsvIkXu367xyzsUyAte4YINi/Yv8OZTZ8jgntTkjMKL8ejTswIsiUxQzfw7gKM8L Ancdwc0wJQQ0C0/LxiIBcnD9c9EF/A0BTgCO0uWniHOdCvkEGzkjaP2hBtRChgaludQhK3 zrKaTwfazuTA2lo6GACrfxnoJxaivE5B3T0EHzN2hsrviXEg4C2u4p9wHxxEoh5UrnB7nj VMnIXTauOXurS45y/0Vs5IOQMGkVlAhbzFm142I/SuwbJIVVdnt3QIVP1WJjHCVEP5RlJ2 oQc8wJ0FmX1WaWLSsdIr9LVmspWvU0doj6tYa8RlPZzLLRWuYYFtb80ZdrPdZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=8adc24f7c563637b94a78399d670824e01029045 commit 8adc24f7c563637b94a78399d670824e01029045 Author: Bjoern A. Zeeb AuthorDate: 2021-11-10 00:22:20 +0000 Commit: Bjoern A. Zeeb CommitDate: 2021-12-29 16:02:51 +0000 USB dwc3 controller: add quirk snps,dis_rxdet_inp3_quirk Add support for the "snps,dis_rxdet_inp3_quirk" quirk needed at least on SolidRun's HoneyComb. Reviewed by: manu, mw Differential Revision: https://reviews.freebsd.org/D32921 (cherry picked from commit 3987e506112a7e8af6f09966792fb8656d630496) --- sys/dev/usb/controller/dwc3.c | 10 ++++++---- sys/dev/usb/controller/dwc3.h | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/controller/dwc3.c b/sys/dev/usb/controller/dwc3.c index 54c42503f2d4..d4422caf0fcd 100644 --- a/sys/dev/usb/controller/dwc3.c +++ b/sys/dev/usb/controller/dwc3.c @@ -264,11 +264,13 @@ snps_dwc3_do_quirks(struct snps_dwc3_softc *sc) reg |= DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS; DWC3_WRITE(sc, DWC3_GUCTL1, reg); - if (OF_hasprop(sc->node, "snps,dis-del-phy-power-chg-quirk")) { - reg = DWC3_READ(sc, DWC3_GUSB3PIPECTL0); + reg = DWC3_READ(sc, DWC3_GUSB3PIPECTL0); + if (OF_hasprop(sc->node, "snps,dis-del-phy-power-chg-quirk")) reg |= DWC3_GUSB3PIPECTL0_DELAYP1TRANS; - DWC3_WRITE(sc, DWC3_GUSB3PIPECTL0, reg); - } + if (OF_hasprop(sc->node, "snps,dis_rxdet_inp3_quirk")) + reg |= DWC3_GUSB3PIPECTL0_DISRXDETINP3; + DWC3_WRITE(sc, DWC3_GUSB3PIPECTL0, reg); + } static int diff --git a/sys/dev/usb/controller/dwc3.h b/sys/dev/usb/controller/dwc3.h index 7153f9abf0df..a8b127cda9a8 100644 --- a/sys/dev/usb/controller/dwc3.h +++ b/sys/dev/usb/controller/dwc3.h @@ -90,6 +90,7 @@ #define DWC3_GUSB3PIPECTL0 0xc2c0 #define DWC3_GUSB3PIPECTL0_PHYSOFTRST (1 << 31) +#define DWC3_GUSB3PIPECTL0_DISRXDETINP3 (1 << 28) #define DWC3_GUSB3PIPECTL0_DELAYP1TRANS (1 << 18) #define DWC3_GTXFIFOSIZ(x) (0xc300 + 0x4 * (x))