usb: dwc3: gadget: improve debug on link state change
authorFelipe Balbi <balbi@ti.com>
Thu, 8 Sep 2011 18:18:47 +0000 (21:18 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:05:31 +0000 (13:05 +0300)
It's useful to know which states core is going
through, as it might help us figure out misbehavior
on specific link states.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 2ea2fc86390db1d877ba29e1b85eda863d97f685..859257a3d634fafb73e23ce6430d0d18b66efd95 100644 (file)
@@ -1792,10 +1792,10 @@ static void dwc3_gadget_wakeup_interrupt(struct dwc3 *dwc)
 static void dwc3_gadget_linksts_change_interrupt(struct dwc3 *dwc,
                unsigned int evtinfo)
 {
-       dev_vdbg(dwc->dev, "%s\n", __func__);
-
        /*  The fith bit says SuperSpeed yes or no. */
        dwc->link_state = evtinfo & DWC3_LINK_STATE_MASK;
+
+       dev_vdbg(dwc->dev, "%s link %d\n", __func__, dwc->link_state);
 }
 
 static void dwc3_gadget_interrupt(struct dwc3 *dwc,