Loading drivers/usb/dwc3/gadget.c +3 −8 Original line number Diff line number Diff line Loading @@ -198,15 +198,11 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc) * FIFO space. Also consider the case where TxFIFO RAM space * may change dynamically based on the USB configuration. */ for (num = 0; num < DWC3_ENDPOINTS_NUM; num++) { struct dwc3_ep *dep = dwc->eps[num]; int fifo_number = dep->number >> 1; for (num = 0; num < dwc->num_in_eps; num++) { struct dwc3_ep *dep = dwc->eps[(num << 1) | 1]; int mult = 1; int tmp; if (!(dep->number & 1)) continue; if (!(dep->flags & DWC3_EP_ENABLED)) continue; Loading Loading @@ -265,8 +261,7 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc) return -ENOMEM; } dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(fifo_number), fifo_size); dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(num), fifo_size); } Loading Loading
drivers/usb/dwc3/gadget.c +3 −8 Original line number Diff line number Diff line Loading @@ -198,15 +198,11 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc) * FIFO space. Also consider the case where TxFIFO RAM space * may change dynamically based on the USB configuration. */ for (num = 0; num < DWC3_ENDPOINTS_NUM; num++) { struct dwc3_ep *dep = dwc->eps[num]; int fifo_number = dep->number >> 1; for (num = 0; num < dwc->num_in_eps; num++) { struct dwc3_ep *dep = dwc->eps[(num << 1) | 1]; int mult = 1; int tmp; if (!(dep->number & 1)) continue; if (!(dep->flags & DWC3_EP_ENABLED)) continue; Loading Loading @@ -265,8 +261,7 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc) return -ENOMEM; } dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(fifo_number), fifo_size); dwc3_writel(dwc->regs, DWC3_GTXFIFOSIZ(num), fifo_size); } Loading