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

Commit ff62d6b6 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: move debugging print around



by moving that dev_vdbg() to the internal
__dwc3_gadget_ep_enable() we get the print
even when enable ep0, which calls the internal
function directly.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 6c76e6cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -500,6 +500,8 @@ static int __dwc3_gadget_ep_enable(struct dwc3_ep *dep,
	u32			reg;
	int			ret = -ENOMEM;

	dev_vdbg(dwc->dev, "Enabling %s\n", dep->name);

	if (!(dep->flags & DWC3_EP_ENABLED)) {
		ret = dwc3_gadget_start_config(dwc, dep);
		if (ret)
@@ -656,8 +658,6 @@ static int dwc3_gadget_ep_enable(struct usb_ep *ep,
		dev_err(dwc->dev, "invalid endpoint transfer type\n");
	}

	dev_vdbg(dwc->dev, "Enabling %s\n", dep->name);

	spin_lock_irqsave(&dwc->lock, flags);
	ret = __dwc3_gadget_ep_enable(dep, desc, ep->comp_desc, false);
	spin_unlock_irqrestore(&dwc->lock, flags);