On Thu, 21 Jun 2018, Felipe Balbi wrote:
Hi,
that patch is not 100% correct. You can revert it in your tree. I added that because of a problem I found when running adb against macOS.
It's actually okay to send Clear Halt at any time, but for some reason dwc3 was hanging when running adb against macOS.
Note: According to the USB spec it's okay to send Clear-Halt at any time. But there are plenty of devices that get upset if they receive this message when the endpoint isn't actually halted.
Alan stern