Browse Source

usb: dwc3: gadget: add a debugging print when initializing endpoints

that way we get debugging information when
enabling verbose debug of the driver.

It will be no-op otherwise.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Felipe Balbi 12 years ago
parent
commit
653df35e6b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/usb/dwc3/gadget.c

+ 2 - 0
drivers/usb/dwc3/gadget.c

@@ -1650,6 +1650,8 @@ static int dwc3_gadget_init_hw_endpoints(struct dwc3 *dwc,
 
 		dep->endpoint.name = dep->name;
 
+		dev_vdbg(dwc->dev, "initializing %s\n", dep->name);
+
 		if (epnum == 0 || epnum == 1) {
 			dep->endpoint.maxpacket = 512;
 			dep->endpoint.maxburst = 1;