On Thu, 2020-01-30 at 14:02 +0200, Felipe Balbi wrote:
[External]Apologies for the delay [of this reply].
Hi,
Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx> writes:
From: Lars-Peter Clausen <lars@xxxxxxxxxx>We need a little more information here. Can you further explain what
Trying to dequeue and URB that is currently not queued should be a no-op
and be handled gracefully.
Use the list field of the URB to indicate whether it is queued or not by
setting it to the empty list when it is not queued.
Handling this gracefully allows for race condition free synchronization
between the complete callback being called to to a completed transfer and
trying to call usb_ep_dequeue() at the same time.
happens and how you caught this?
It's been a while since this patch was created, and it was on a 4.14 kernel.
Lars was trying to fix various crashes with USB DWC3 OTG + some Xilinx patches.
I did not track the status of the OTG stuff upstream. I think it's a lot of
patches in the Xilinx tree.
The context has changed from 4.14 [obviously], and there were many things that
could have influenced things.
I've been trying to RFC some of these patches now.
[ yeah I know: maybe I should have [probably] also added an RFC tag :) ]
Some of the patches [including this one] seemed to make sense, even outside of
the context of the crashes that were happening on 4.14.
Atm, we're at 4.19 and we don't see issues, but we still have this patch.
We may drop it and see what happens.
Â\_(ã)_/Â
But in any case, it does require a bit more re-investigation.
Apologies for the noise that this patch created :)