USB: musb: forward debug mode feature to gadget
authorstephane duverger <[email protected]>
Mon, 12 Jul 2010 16:43:47 +0000 (18:43 +0200)
committerGreg Kroah-Hartman <[email protected]>
Tue, 10 Aug 2010 21:35:39 +0000 (14:35 -0700)
This is a patch for the musb usb controller.

It allows forwarding of the debug mode feature to its gadget in order
to be able to act as an ehci debug device.

This patch has been tested on an IGEPv2 board running a 2.6.35-rc1
kernel.

Signed-off-by: Stephane Duverger <[email protected]>
Cc: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/musb/musb_gadget_ep0.c

index 21b9788d02439f268625f65b611f49ea97cfd450..59bef8f3a3585100310bbb43848ea56603a82c28 100644 (file)
@@ -402,6 +402,9 @@ __acquires(musb->lock)
                                        musb->g.a_alt_hnp_support = 1;
                                        break;
 #endif
+                               case USB_DEVICE_DEBUG_MODE:
+                                       handled = 0;
+                                       break;
 stall:
                                default:
                                        handled = -EINVAL;