Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: musb: forward debug mode feature to gadget

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 <stephane.duverger@gmail.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

stephane duverger and committed by
Greg Kroah-Hartman
d0390d92 f6c826a9

+3
+3
drivers/usb/musb/musb_gadget_ep0.c
··· 402 402 musb->g.a_alt_hnp_support = 1; 403 403 break; 404 404 #endif 405 + case USB_DEVICE_DEBUG_MODE: 406 + handled = 0; 407 + break; 405 408 stall: 406 409 default: 407 410 handled = -EINVAL;