Loading drivers/usb/dwc3/dwc3-msm.c +4 −4 Original line number Diff line number Diff line Loading @@ -617,8 +617,8 @@ static int __dwc3_msm_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) list_add_tail(&req->list, &dep->started_list); /* First, prepare a normal TRB, point to the fake buffer */ trb = &dep->trb_pool[dep->trb_enqueue & DWC3_TRB_NUM]; dep->trb_enqueue++; trb = &dep->trb_pool[dep->trb_enqueue]; dwc3_ep_inc_enq(dep); memset(trb, 0, sizeof(*trb)); req->trb = trb; Loading @@ -629,8 +629,8 @@ static int __dwc3_msm_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) req->trb_dma = dwc3_trb_dma_offset(dep, trb); /* Second, prepare a Link TRB that points to the first TRB*/ trb_link = &dep->trb_pool[dep->trb_enqueue & DWC3_TRB_NUM]; dep->trb_enqueue++; trb_link = &dep->trb_pool[dep->trb_enqueue]; dwc3_ep_inc_enq(dep); memset(trb_link, 0, sizeof(*trb_link)); trb_link->bpl = lower_32_bits(req->trb_dma); Loading drivers/usb/dwc3/gadget.c +2 −2 Original line number Diff line number Diff line Loading @@ -164,12 +164,12 @@ static void dwc3_ep_inc_trb(u8 *index) *index = 0; } static void dwc3_ep_inc_enq(struct dwc3_ep *dep) void dwc3_ep_inc_enq(struct dwc3_ep *dep) { dwc3_ep_inc_trb(&dep->trb_enqueue); } static void dwc3_ep_inc_deq(struct dwc3_ep *dep) void dwc3_ep_inc_deq(struct dwc3_ep *dep) { dwc3_ep_inc_trb(&dep->trb_dequeue); } Loading drivers/usb/dwc3/gadget.h +2 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,8 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol); void dwc3_stop_active_transfer(struct dwc3 *dwc, u32 epnum, bool force); irqreturn_t dwc3_interrupt(int irq, void *_dwc); void dwc3_bh_work(struct work_struct *w); void dwc3_ep_inc_enq(struct dwc3_ep *dep); void dwc3_ep_inc_deq(struct dwc3_ep *dep); static inline dma_addr_t dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb) Loading Loading
drivers/usb/dwc3/dwc3-msm.c +4 −4 Original line number Diff line number Diff line Loading @@ -617,8 +617,8 @@ static int __dwc3_msm_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) list_add_tail(&req->list, &dep->started_list); /* First, prepare a normal TRB, point to the fake buffer */ trb = &dep->trb_pool[dep->trb_enqueue & DWC3_TRB_NUM]; dep->trb_enqueue++; trb = &dep->trb_pool[dep->trb_enqueue]; dwc3_ep_inc_enq(dep); memset(trb, 0, sizeof(*trb)); req->trb = trb; Loading @@ -629,8 +629,8 @@ static int __dwc3_msm_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) req->trb_dma = dwc3_trb_dma_offset(dep, trb); /* Second, prepare a Link TRB that points to the first TRB*/ trb_link = &dep->trb_pool[dep->trb_enqueue & DWC3_TRB_NUM]; dep->trb_enqueue++; trb_link = &dep->trb_pool[dep->trb_enqueue]; dwc3_ep_inc_enq(dep); memset(trb_link, 0, sizeof(*trb_link)); trb_link->bpl = lower_32_bits(req->trb_dma); Loading
drivers/usb/dwc3/gadget.c +2 −2 Original line number Diff line number Diff line Loading @@ -164,12 +164,12 @@ static void dwc3_ep_inc_trb(u8 *index) *index = 0; } static void dwc3_ep_inc_enq(struct dwc3_ep *dep) void dwc3_ep_inc_enq(struct dwc3_ep *dep) { dwc3_ep_inc_trb(&dep->trb_enqueue); } static void dwc3_ep_inc_deq(struct dwc3_ep *dep) void dwc3_ep_inc_deq(struct dwc3_ep *dep) { dwc3_ep_inc_trb(&dep->trb_dequeue); } Loading
drivers/usb/dwc3/gadget.h +2 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,8 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value, int protocol); void dwc3_stop_active_transfer(struct dwc3 *dwc, u32 epnum, bool force); irqreturn_t dwc3_interrupt(int irq, void *_dwc); void dwc3_bh_work(struct work_struct *w); void dwc3_ep_inc_enq(struct dwc3_ep *dep); void dwc3_ep_inc_deq(struct dwc3_ep *dep); static inline dma_addr_t dwc3_trb_dma_offset(struct dwc3_ep *dep, struct dwc3_trb *trb) Loading