Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a695d4c authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent c9508c8c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */