Re: [PATCH 1/4] usb: dwc3: gadget: clear DWC3_EP_TRANSFER_STARTED on cmd complete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thinh Nguyen <thinh.nguyen@xxxxxxxxxxxx> writes:

> Hi Felipe,
>
> Felipe Balbi wrote:
>> We must wait until End Transfer completes in order to clear
>> DWC3_EP_TRANSFER_STARTED, otherwise we may confuse the driver.
>>
>> This patch is in preparation to fix a rare race condition that happens
>> upon Disconnect Interrupt.
>>
>> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>
>> ---
>>  drivers/usb/dwc3/gadget.c | 19 +++++--------------
>>  1 file changed, 5 insertions(+), 14 deletions(-)
>>
>> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
>> index bed2ff42780b..a3903b8dc11e 100644
>> --- a/drivers/usb/dwc3/gadget.c
>> break;
>
> This patch series has been running fine on my testing setup.
>
> Tested-by: Thinh Nguyen <thinhn@xxxxxxxxxxxx>

Thank you, I've merged this into my testing/next with your Tested-by.

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux