Page MenuHomeFreeBSD

D32921.diff
No OneTemporary

D32921.diff

diff --git a/sys/dev/usb/controller/dwc3.h b/sys/dev/usb/controller/dwc3.h
--- 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))
diff --git a/sys/dev/usb/controller/dwc3.c b/sys/dev/usb/controller/dwc3.c
--- a/sys/dev/usb/controller/dwc3.c
+++ b/sys/dev/usb/controller/dwc3.c
@@ -264,11 +264,13 @@
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

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 5:01 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15771356
Default Alt Text
D32921.diff (1 KB)

Event Timeline