mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4046 from jamike/USBHOST_HUB_FIX
USBHOST : fix device disconnection from hub during hub port resetpull/4072/head
commit
acaf5fbb42
|
@ -227,6 +227,9 @@ void USBHostHub::portReset(uint8_t port) {
|
|||
#endif
|
||||
while(1) {
|
||||
status = getPortStatus(port);
|
||||
/* disconnection since reset request */
|
||||
if (!(status & PORT_CONNECTION))
|
||||
break;
|
||||
if (status & (PORT_ENABLE | PORT_RESET))
|
||||
break;
|
||||
if (status & PORT_OVER_CURRENT) {
|
||||
|
|
Loading…
Reference in New Issue