Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2022 09:50:09 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9ffd5ef82f7b - stable/13 - dwc3: fix snps,dis-del-phy-power-chg-quirk
Message-ID:  <202207180950.26I9o9fI034350@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ffd5ef82f7b64f3990a8c76d1682848d3ccedf1

commit 9ffd5ef82f7b64f3990a8c76d1682848d3ccedf1
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-07-02 18:17:13 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-07-18 01:00:20 +0000

    dwc3: fix snps,dis-del-phy-power-chg-quirk
    
    If snps,dis-del-phy-power-chg-quirk is set, the register bit should be
    cleared not ored on (it's the "dis" version).
    
    Reviewed by:    mw
    Differential Revision: https://reviews.freebsd.org/D35697
    
    (cherry picked from commit 0084212bfdfbcd662f3e823636b40173e828509d)
---
 sys/dev/usb/controller/dwc3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/controller/dwc3.c b/sys/dev/usb/controller/dwc3.c
index c77f4bbc0f67..1e90c5791cf0 100644
--- a/sys/dev/usb/controller/dwc3.c
+++ b/sys/dev/usb/controller/dwc3.c
@@ -264,7 +264,7 @@ snps_dwc3_do_quirks(struct snps_dwc3_softc *sc)
 
 	reg = DWC3_READ(sc, DWC3_GUSB3PIPECTL0);
 	if (device_has_property(sc->dev, "snps,dis-del-phy-power-chg-quirk"))
-		reg |= DWC3_GUSB3PIPECTL0_DELAYP1TRANS;
+		reg &= ~DWC3_GUSB3PIPECTL0_DELAYP1TRANS;
 	if (device_has_property(sc->dev, "snps,dis_rxdet_inp3_quirk"))
 		reg |= DWC3_GUSB3PIPECTL0_DISRXDETINP3;
 	DWC3_WRITE(sc, DWC3_GUSB3PIPECTL0, reg);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207180950.26I9o9fI034350>