AnsweredAssumed Answered

Gadget Mass storage not working after standby/suspend on i.MX25

Question asked by Vinay Bondade on Oct 24, 2017
Latest reply on Oct 30, 2017 by Vinay Bondade

Hello All,

 

I am using main line Linux kernel 4.9.7 and have been trying to use the Gadget Mass storage functionality on i.MX25. When the system boots up, the vfat.img is exported correctly by i.MX25 through the Gadget Mass storage interface and Windows/Ubuntu PC is able to read/write to the removable disk. The problem comes when i.MX25 is put to standby and resumed. The gadget mass storage interface keeps enumerating /negotiating but never finishes. It keeps printing - "g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage" message.

 

I have tried using both drivers/usb/gadget/legacy/g_mass_storage.ko and drivers/usb/gadget/function/usb_f_mass_storage.ko same result in both interfaces.

 

the Kernel configs related to USB Gadget Mass storage are as follows:

 

CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
# CONFIG_AM335X_PHY_USB is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
# CONFIG_USB_MXS_PHY is not set
# CONFIG_USB_ULPI is not set
CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG is not set
# CONFIG_USB_GADGET_DEBUG_FILES is not set
CONFIG_USB_GADGET_VBUS_DRAW=500
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG is not set
# CONFIG_USB_GADGET_DEBUG_FILES is not set
CONFIG_USB_GADGET_VBUS_DRAW=500
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
CONFIG_USB_CHIPIDEA=y
CONFIG_USB_CHIPIDEA_OF=y
CONFIG_USB_CHIPIDEA_UDC=y
CONFIG_USB_CHIPIDEA_HOST=y
CONFIG_USB_FUNCTIONFS_GENERIC=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m
CONFIG_USB_FUNCTIONFS_GENERIC=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m
CONFIG_USB_GADGETFS=m
CONFIG_USB_FUNCTIONFS=m

CONFIG_USB_LIBCOMPOSITE=m

CONFIG_USB_F_MASS_STORAGE=m

CONFIG_USB_F_FS=m

 

Please help.

 

Thanks,

Vinay

Outcomes