This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352 USB GadgetFS Error

Other Parts Discussed in Thread: AM3352

All,

We are having a custom board design based on the Am3352. On the board we are utilizing one of the USB Ports as USB Host and the 2nd USB as the USB Device Port. On the USB Host Port, we have 4 Port USB Hub connected and custom Microcontroller based End Products connected on the downstream Ports of the USB Hub. 

On the USB Device Port, the same is connected to a Server which is running some RTOS. We are using libusb on the USB Host Port from the User Application to interact with the Hubs and all the Microcontroller based Boards. On the USB Device Port, we are using GadgetFS on End Point 0 to establish the SW communication between the AM3352 and the Server.

We are observing failures on the USB Gadget/Device Port when we plugin and plugout the USB Slave Devices on the USB Host Port side. We are observing the following Errors from the drivers/usb/musb/musb_gadget_ep0.c function musb_g_ep0_irq() function. 

SetupEnd came in a wrong ep0stage setup

after the above error is observed from the EP0 IRQ function, the drivers/usb/gadget/inode.c file function gadgetfs_suspend() function throws suspended state from existing connected state. 

We request you to please check and let us know why the error occurs and if this is a known issue. We are using 3.14 Linux Kernel based on the AMSDK 8.0 on our board. 

Thanks,
Ravindra

Ep0 Error.rtf