mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
USB hub fixes. Mostly dealing with setting the hub function address at the right time and powering up downstream ports
This commit is contained in:
@@ -2070,7 +2070,8 @@ static int usbhost_disconnected(struct usbhost_class_s *usbclass)
|
||||
|
||||
/* Free the function address assigned to this device */
|
||||
|
||||
usbhost_devaddr_destroy(hport);
|
||||
usbhost_devaddr_destroy(hport, hport->funcaddr);
|
||||
hport->funcaddr = 0;
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user