diff options
| author | sakumisu <[email protected]> | 2022-08-10 21:39:46 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-08-10 21:39:46 +0800 |
| commit | 315bf9baf7e299318898ffc404aced4d29116026 (patch) | |
| tree | 0ff5bdcf365b79db596068524ad06f4341133c9f | |
| parent | 93e52f886981a66d065489efcb7548abcf9a11dc (diff) | |
set chan result enxio when calls disconnect irq
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index ceb30a46..67170715 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -1392,6 +1392,7 @@ static void dwc2_port_irq_handler(void) chan = &g_dwc2_hcd.chan[chidx]; if (chan->waiter) { chan->waiter = false; + chan->result = -ENXIO; usb_osal_sem_give(chan->waitsem); } } |
