Re: [PATCH v2 2/2] usb: gadget: f_mass_storage: Serialize wake and sleep execution

2017-05-18 Thread Thinh Nguyen
Hi Felipe, On 5/11/2017 5:27 PM, Thinh Nguyen wrote: > f_mass_storage has a memorry barrier issue with the sleep and wake > functions that can cause a deadlock. This results in intermittent hangs > during MSC file transfer. The host will reset the device after receiving > no response to resume

Re: [PATCH v2 2/2] usb: gadget: f_mass_storage: Serialize wake and sleep execution

2017-05-16 Thread Alan Stern
On Tue, 16 May 2017, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: > > f_mass_storage has a memorry barrier issue with the sleep and wake > > functions that can cause a deadlock. This results in intermittent hangs > > during MSC file transfer. The host will reset

Re: [PATCH v2 2/2] usb: gadget: f_mass_storage: Serialize wake and sleep execution

2017-05-16 Thread Felipe Balbi
Hi, Thinh Nguyen writes: > f_mass_storage has a memorry barrier issue with the sleep and wake > functions that can cause a deadlock. This results in intermittent hangs > during MSC file transfer. The host will reset the device after receiving > no response to resume

[PATCH v2 2/2] usb: gadget: f_mass_storage: Serialize wake and sleep execution

2017-05-11 Thread Thinh Nguyen
f_mass_storage has a memorry barrier issue with the sleep and wake functions that can cause a deadlock. This results in intermittent hangs during MSC file transfer. The host will reset the device after receiving no response to resume the transfer. This issue is seen when dwc3 is processing 2