dwc2/host: enable disconnect interrupt + handle it#3067
dwc2/host: enable disconnect interrupt + handle it#3067HiFiPhile merged 3 commits intohathach:masterfrom
Conversation
Signed-off-by: Maxime Vincent <maxime@veemax.be>
|
Hi, I ended up with the same thing in #2960 I also removed |
|
Aha, nice! It doesn't matter to me, whichever you can get merged first :) |
Yes please, just double checked ST's HAL code.
@hathach is busy atm, since dwc2 is widely used it's better wait for Espressif @roma-jam for a double check. Out of topic: Have you experienced any bouncing issue doing quickly connection/disconnection like in #2960 ? |
… to prevent double removal Signed-off-by: Maxime Vincent <maxime@veemax.be>
ebb3b6e to
6607b76
Compare
|
|
Can we merge this? Is there any more action required from my side? |
|
perfect, thank you |
Describe the PR
On boards using the Synopsys DWC2 USB IP core, there were no disconnection events when a USB device was unplugged.
This PR enabled the
GINTSTS_DISCINTflag, to get an interrupt on disconnection + handles it by callinghcd_event_device_remove().Additional context
Tested on an STM32F7, but behavior should be identical on any device using the
dwc2