On Fri, 7 Jun 2013, victor yeo wrote:

> The hardware handles Set Address request, and i can see the address of
> the USB gadget being shown in Windows host. Here i attach the gadget
> driver log for the "Device Descriptor Test - Addressed State". The
> test just failed after Get Configuration request.

I can't tell what's wrong.  You will have to use a USB bus analyzer.

> Another question, in ep0_complete():
>         if (req->status == 0 && req->context)
>                 ((fsg_routine_t) (req->context))(fsg);
> 
> Is req->context pointing to a function in UDC driver?

No, it points to a function in g_file_storage.  The context pointer 
gets set in only place, in class_setup_req():

                        fsg->ep0req->context = received_cbi_adsc;

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to