mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Previously, on a device disconnection, the USBH and Hub would the require the following 2-way interaction: - Hub -> usbh_hub_pass_event() -> USBH to indicate a port error - USBH -> usbh_hub_req_cb_t -> Hub to request port recovery after the device has been freed. The 2-way interaction has been simplified: - USBH now nofities upper layers of devices being freed via the USBH_EVENT_DEV_FREE event - Hub now handles port recovery only after a device has been freed