On Wed, 26 Jun 2013, victor yeo wrote: > The fsg->state in gadget driver, is used for exception handling. Is > there any variable to track the USB device state of Figure 9-1 of the > USB 2.0 Spec? Now the gadget driver does not pass the "USB2.0 CV - Get > Device Descriptor - Address State test". So i am trying to find more > information. You should not be concerned about variables in the gadget driver. The problem is in the UDC driver. For some examples of what the UDC driver needs to do, look at handle_control_request() in drivers/usb/gadget/dummy_hcd.c or the "switch (u.r.bRequest)" statement of handle_stat0_irqs() in drivers/usb/gadget/net2280.c. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html