git: 0084212bfdfb - main - dwc3: fix snps,dis-del-phy-power-chg-quirk
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Jul 2022 22:15:15 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=0084212bfdfbcd662f3e823636b40173e828509d
commit 0084212bfdfbcd662f3e823636b40173e828509d
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-03 22:13:28 +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).
MFC after: 2 weeks
Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D35697
---
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 a3c84b40101a..1ab4862fb97c 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);