diff options
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 6dfbf9ffd7a6..3d799195c8b4 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1556,7 +1556,8 @@ static int musb_gadget_wakeup(struct usb_gadget *gadget) | |||
1556 | status = 0; | 1556 | status = 0; |
1557 | goto done; | 1557 | goto done; |
1558 | default: | 1558 | default: |
1559 | DBG(2, "Unhandled wake: %s\n", otg_state_string(musb)); | 1559 | DBG(2, "Unhandled wake: %s\n", |
1560 | otg_state_string(musb->xceiv->state)); | ||
1560 | goto done; | 1561 | goto done; |
1561 | } | 1562 | } |
1562 | 1563 | ||
@@ -2039,7 +2040,7 @@ void musb_g_resume(struct musb *musb) | |||
2039 | break; | 2040 | break; |
2040 | default: | 2041 | default: |
2041 | WARNING("unhandled RESUME transition (%s)\n", | 2042 | WARNING("unhandled RESUME transition (%s)\n", |
2042 | otg_state_string(musb)); | 2043 | otg_state_string(musb->xceiv->state)); |
2043 | } | 2044 | } |
2044 | } | 2045 | } |
2045 | 2046 | ||
@@ -2069,7 +2070,7 @@ void musb_g_suspend(struct musb *musb) | |||
2069 | * A_PERIPHERAL may need care too | 2070 | * A_PERIPHERAL may need care too |
2070 | */ | 2071 | */ |
2071 | WARNING("unhandled SUSPEND transition (%s)\n", | 2072 | WARNING("unhandled SUSPEND transition (%s)\n", |
2072 | otg_state_string(musb)); | 2073 | otg_state_string(musb->xceiv->state)); |
2073 | } | 2074 | } |
2074 | } | 2075 | } |
2075 | 2076 | ||
@@ -2104,7 +2105,7 @@ void musb_g_disconnect(struct musb *musb) | |||
2104 | default: | 2105 | default: |
2105 | #ifdef CONFIG_USB_MUSB_OTG | 2106 | #ifdef CONFIG_USB_MUSB_OTG |
2106 | DBG(2, "Unhandled disconnect %s, setting a_idle\n", | 2107 | DBG(2, "Unhandled disconnect %s, setting a_idle\n", |
2107 | otg_state_string(musb)); | 2108 | otg_state_string(musb->xceiv->state)); |
2108 | musb->xceiv->state = OTG_STATE_A_IDLE; | 2109 | musb->xceiv->state = OTG_STATE_A_IDLE; |
2109 | MUSB_HST_MODE(musb); | 2110 | MUSB_HST_MODE(musb); |
2110 | break; | 2111 | break; |