Hi,
I connected our custom board (usb on the board -> m.2 on the host) and tried to use the g_mass_storage module though it doesn't show any sign of life on the host.
if I use the the ums functionality in u-boot (ums mmc 2:1) it works just fine.
if I connect the board to a standard usb port on the host it also works fine so the dts definition seems to be ok. Perhaps I'm missing some support in the kernel (??)
i suspect the usb1_pwr or usb1_id pins but can tell for sure how are they affected when going through m.2.
What'm getting when on m.2:
[ 1735.264993] udc 38100000.usb: binding gadget driver [g_mass_storage]
[ 1735.271516] Mass Storage Function, version: 2009/09/11
[ 1735.276704] LUN: removable file: (no medium)
[ 1735.281207] lun0: open backing file: /dev/mmcblk2p1
[ 1735.286201] LUN: file: /dev/mmcblk2p1
[ 1735.289886] Number of LUNs=1
[ 1735.292783] g_mass_storage gadget.0: adding config #1 'Linux File-Backed Storage'/00000000c366dad4
[ 1735.301784] g_mass_storage gadget.0: adding 'Mass Storage Function'/00000000a84cf412 to config 'Linux File-Backed Storage'/00000000c366dad4
[ 1735.314677] g_mass_storage gadget.0: I/O thread pid: 460
[ 1735.320026] g_mass_storage gadget.0: cfg 1/00000000c366dad4 speeds: super high full
[ 1735.327721] g_mass_storage gadget.0: interface 0 = Mass Storage Function/00000000a84cf412
[ 1735.336098] g_mass_storage gadget.0: Mass Storage Gadget, version: 2009/09/11
[ 1735.343253] g_mass_storage gadget.0: g_mass_storage ready
im using yocto 6.1-langdale and based our code on the im8mp-evk-lpddr4 board. (ours is also lpddr4).
would appreciate your help,
thanks!