H3 musb endpoints

2017-12-15 Thread Nuno Gonçalves
Dear Icenowy, In ae49ba1 [1] you list endpoints 1 to 4 for H3, but on the datasheet I read: Support High-Speed (HS, 480-Mbps), Full-Speed (FS, 12-Mbps) in device mode Supports bi-directional endpoint0 for Control transfer in device mode Supports up to 8 User-Configurable Endpoints for Bulk ,

musb-hdrc: can't add more than 2 functions to composite gadget

2017-12-07 Thread Nuno Gonçalves
works on a am335x, and it also works in this SOC when using just 1 or 3 functions, it just fails from 3. Eg: 2x ACM - OK. 1x ACM + 1x Mass Storage works - OK. 3x ACM - ERROR 2x ACM + 1x Mass Storage - ERROR Might this be a SOC limitation in some way? Hints were to start debugging? Thanks, Nuno

Re: usb: gadget: f_mass_storage: detect eject

2018-08-28 Thread Nuno Gonçalves
On Mon, Aug 20, 2018 at 4:23 PM Alan Stern wrote: > It is expected. No notifications for host-initiated ejects were ever > put into the f_mass_storage driver. > > I have never tried to use f_mass_storage under configfs. When you do, > does the driver create its normal sysfs files? Is there any

usb: gadget: f_mass_storage: detect eject

2018-08-18 Thread Nuno Gonçalves
Hi, I am trying to get some kind of notification when the host ejects a f_mass_storage disk. When it happens, and the lun is removable, then the config /sys/kernel/config/usb_gadget/*/functions/*/lun.*/file is cleared. I understand that sysfs files can not be monitored with inotify, but some

Re: usb: gadget: f_mass_storage: detect eject

2018-08-30 Thread Nuno Gonçalves
On Tue, Aug 28, 2018 at 5:09 PM Alan Stern wrote: > There is another way: modprobe g_file_storage with appropriate > parameters. Yes, but I am using a composite device, with ACM and UMS, and also g_multi (Ethernet+ACM+UMS) is not a option since my HW does not support enough endpoints for this