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

Re: [RFT] Remove USB bus reset delay from OHCI handover code

2018-08-28 Thread Alan Stern
On Sat, 25 Aug 2018, Paul Menzel wrote: > Dear Alan, > > > Am 03.07.2018 um 20:40 schrieb Alan Stern: > > I no longer have suitable hardware for testing this patch. If anyone > > with an OHCI host controller could try it out, I would like to hear if > > it causes any problems. > > Do you alrea

[PATCH] USB: OHCI: Remove USB bus reset delay from OHCI handover code

2018-08-28 Thread Alan Stern
Paul pointed out that the 50-ms sleep during OHCI initialization takes up a large fraction of a system's boot time. Things get worse when there are two OHCI controllers present, each requiring 50 ms. However, there really is no need to send a 50-ms reset signal out all the root-hub ports during i

Re: usb: gadget: f_mass_storage: detect eject

2018-08-28 Thread Alan Stern
On Tue, 28 Aug 2018, Nuno Gonçalves wrote: > 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

Re: [PATCH] usb: dwc2: host: use hrtimer for NAK retries

2018-08-28 Thread Doug Anderson
Hi, On Sat, Aug 25, 2018 at 8:45 PM, Terin Stock wrote: > Upon upgrading a Raspberry Pi 3B-based project from vanilla 4.14, > attempts to mount a floppy disk in a generic USB floppy drive would hang > until the floppy drive was removed from the system. > > Tracing shows that during mounting the d

Re: [PATCH] usb: dwc2: host: use hrtimer for NAK retries

2018-08-28 Thread Terin Stock
Thanks Alan and Doug for your feedback. They've both been extremely helpful in understanding what you're looking for in messages. A few responses below. > I think your commit will be more compelling with additional data. As > Allen says it looks like you're not actually changing the delay. You >

Re: [PATCH] usb: dwc2: host: use hrtimer for NAK retries

2018-08-28 Thread Doug Anderson
Hi, On Tue, Aug 28, 2018 at 11:04 AM, Terin Stock wrote: >> It would also be good to document what device you were plugging in >> that you were having problems with and what system you were running >> on. That would help someone else if they ever wanted to modify the >> same area of code and re-

Re: usb: gadget: f_mass_storage: detect eject

2018-08-28 Thread Felipe Balbi
Hi, Alan Stern writes: >> The only other files I find in sysfs are the ones referring to the >> module being loaded, but those do not change with eject. >> >> What should I look for? > > Somewhere under /sys/devices will be a directory for the system's USB > device controller. Beneath that wi