mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-04 18:09:31 +07:00
usb: dwc3: gadget: Check IP revision for GRXTHRCFG
DWC_usb31 controller has a different UsbRxPktCnt bit fields from GRXTHRCFG register. Check for DWC_usb31 IP revision to read the appropriate value. Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
2fbc5bdc8f
commit
01b0e2cc7d
@ -1858,7 +1858,11 @@ static int __dwc3_gadget_start(struct dwc3 *dwc)
|
|||||||
* bursts of data without going through any sort of endpoint throttling.
|
* bursts of data without going through any sort of endpoint throttling.
|
||||||
*/
|
*/
|
||||||
reg = dwc3_readl(dwc->regs, DWC3_GRXTHRCFG);
|
reg = dwc3_readl(dwc->regs, DWC3_GRXTHRCFG);
|
||||||
reg &= ~DWC3_GRXTHRCFG_PKTCNTSEL;
|
if (dwc3_is_usb31(dwc))
|
||||||
|
reg &= ~DWC31_GRXTHRCFG_PKTCNTSEL;
|
||||||
|
else
|
||||||
|
reg &= ~DWC3_GRXTHRCFG_PKTCNTSEL;
|
||||||
|
|
||||||
dwc3_writel(dwc->regs, DWC3_GRXTHRCFG, reg);
|
dwc3_writel(dwc->regs, DWC3_GRXTHRCFG, reg);
|
||||||
|
|
||||||
dwc3_gadget_setup_nump(dwc);
|
dwc3_gadget_setup_nump(dwc);
|
||||||
|
Loading…
Reference in New Issue
Block a user