We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d84195a commit 26bda5eCopy full SHA for 26bda5e
src/portable/synopsys/dwc2/dcd_dwc2.c
@@ -683,8 +683,9 @@ bool dcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
683
// Force device mode
684
dwc2->gusbcfg = (dwc2->gusbcfg & ~GUSBCFG_FHMOD) | GUSBCFG_FDMOD;
685
686
- // Clear A override, force B Valid
687
- dwc2->gotgctl = (dwc2->gotgctl & ~GOTGCTL_AVALOEN) | GOTGCTL_BVALOEN | GOTGCTL_BVALOVAL;
+ // No overrides
+ dwc2->gotgctl &= ~(GOTGCTL_BVALOEN | GOTGCTL_BVALOVAL | GOTGCTL_VBVALOVAL);
688
+
689
690
// If USB host misbehaves during status portion of control xfer
691
// (non zero-length packet), send STALL back and discard.
0 commit comments