summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-10-07 11:20:01 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-03 11:38:32 +0300
commit0a695d4c75ff13ab04dc1b6ff91a6f3407d27b63 (patch)
treec244df211147d02207526325258d9efe3393cd40 /drivers/usb/dwc3
parentc9508c8c50f9ec6fc3e7e823f35c76fafba7e929 (diff)
downloadlinux-0a695d4c75ff13ab04dc1b6ff91a6f3407d27b63.tar.xz
usb: dwc3: gadget: never ever kill the machine
We should never kill the machine just because some USB endpoint type is wrong. WARN about it and move on. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 71d01b29e7b5..bcd0d32ed4e9 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -871,7 +871,8 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep,
* This is only possible with faulty memory because we
* checked it already :)
*/
- BUG();
+ dev_WARN(dwc->dev, "Unknown endpoint type %d\n",
+ usb_endpoint_type(dep->endpoint.desc));
}
/* always enable Continue on Short Packet */