Commit 202adafe authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: don't WARN about lack of TRBs

We don't need a big fat warning with stack dump at all. Running out of
TRBs is a normal condition and we will have more TRBs available as
soon as some transfers complete.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 225785ae
...@@ -953,7 +953,6 @@ static struct dwc3_trb *dwc3_ep_prev_trb(struct dwc3_ep *dep, u8 index) ...@@ -953,7 +953,6 @@ static struct dwc3_trb *dwc3_ep_prev_trb(struct dwc3_ep *dep, u8 index)
static u32 dwc3_calc_trbs_left(struct dwc3_ep *dep) static u32 dwc3_calc_trbs_left(struct dwc3_ep *dep)
{ {
struct dwc3_trb *tmp; struct dwc3_trb *tmp;
struct dwc3 *dwc = dep->dwc;
u8 trbs_left; u8 trbs_left;
/* /*
...@@ -965,8 +964,7 @@ static u32 dwc3_calc_trbs_left(struct dwc3_ep *dep) ...@@ -965,8 +964,7 @@ static u32 dwc3_calc_trbs_left(struct dwc3_ep *dep)
*/ */
if (dep->trb_enqueue == dep->trb_dequeue) { if (dep->trb_enqueue == dep->trb_dequeue) {
tmp = dwc3_ep_prev_trb(dep, dep->trb_enqueue); tmp = dwc3_ep_prev_trb(dep, dep->trb_enqueue);
if (dev_WARN_ONCE(dwc->dev, tmp->ctrl & DWC3_TRB_CTRL_HWO, if (tmp->ctrl & DWC3_TRB_CTRL_HWO)
"%s No TRBS left\n", dep->name))
return 0; return 0;
return DWC3_TRB_NUM - 1; return DWC3_TRB_NUM - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment