diff options
| author | Wayne Lin <[email protected]> | 2023-09-07 12:43:30 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2023-09-07 15:07:04 +0800 |
| commit | dd1f1d3ba80d979ef5c0153bf3897ccf45febeac (patch) | |
| tree | 720e17a389336047bb624f47b54353c1a6352e03 /class | |
| parent | bc1e7c4bd5d55f8963d1781ad861323c451b9ed6 (diff) | |
Update hcd-ehci, dcd-dwc2 and examples.
1. Add some example Msh commands.
2. Fix device enumeration on EXT hub.
3. Re-file some templates.
4. Extend end-point number of dwc2 device driver.
5. Re-file rndis_host implementation includes
a. rt_mutex_take in ISR
b. 2rd pmsg is unaligned issue.
c. destroy u0 ethernet resource after removing dongle.
Diffstat (limited to 'class')
| -rw-r--r-- | class/hub/usbh_hub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c index dd4ec5ed..6917bd2d 100644 --- a/class/hub/usbh_hub.c +++ b/class/hub/usbh_hub.c @@ -299,7 +299,9 @@ static void hub_int_complete_callback(void *arg, int nbytes) { struct usbh_hub *hub = (struct usbh_hub *)arg; - if (nbytes > 0) { + // >=0 can pass device enumeration on EXT hub. + if (nbytes >= 0) + { usbh_hub_thread_wakeup(hub); } } |
