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:
Gregory Nutt
2015-04-23 16:42:53 -06:00
parent d11af85ddf
commit 2586bc3fcc
8 changed files with 177 additions and 145 deletions
+2 -1
View File
@@ -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;
}