Skip to content

Commit

Permalink
fix: MSM Devices Usb dwc3 core
Browse files Browse the repository at this point in the history
  • Loading branch information
zfdx123 committed Aug 26, 2023
1 parent 6301a8b commit 10776da
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,21 +1021,6 @@ int dwc3_core_init(struct dwc3 *dwc)
dwc3_writel(dwc->regs, DWC3_GUCTL1, reg);
}

if (dwc->dr_mode == USB_DR_MODE_HOST || dwc3_is_otg_or_drd(dwc)) {
reg = dwc3_readl(dwc->regs, DWC3_GUCTL);

/*
* Enable Auto retry Feature to make the controller operating in
* Host mode on seeing transaction errors(CRC errors or internal
* overrun scenerios) on IN transfers to reply to the device
* with a non-terminating retry ACK (i.e, an ACK transcation
* packet with Retry=1 & Nump != 0)
*/
reg |= DWC3_GUCTL_HSTINAUTORETRY;

dwc3_writel(dwc->regs, DWC3_GUCTL, reg);
}

/*
* Must config both number of packets and max burst settings to enable
* RX and/or TX threshold.
Expand Down

0 comments on commit 10776da

Please sign in to comment.