diff options
| author | Diego Ismirlian <dismirlian (at) google's mail.com> | 2017-07-16 18:34:19 -0300 | 
|---|---|---|
| committer | Diego Ismirlian <dismirlian (at) google's mail.com> | 2017-07-16 18:34:19 -0300 | 
| commit | d395dde065b77506a0883918af4bd48005e5df7c (patch) | |
| tree | 1d97100049ef928f3d0e16d9bfa9e36b341fdf4b | |
| parent | 54c53d4e22ebce803a111e3c80ddd1796bb37c07 (diff) | |
| download | ChibiOS-Contrib-d395dde065b77506a0883918af4bd48005e5df7c.tar.gz ChibiOS-Contrib-d395dde065b77506a0883918af4bd48005e5df7c.tar.bz2 ChibiOS-Contrib-d395dde065b77506a0883918af4bd48005e5df7c.zip  | |
USBH: HUB: don't clear status flags on NAK
| -rw-r--r-- | os/hal/src/usbh/hal_usbh_hub.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/os/hal/src/usbh/hal_usbh_hub.c b/os/hal/src/usbh/hal_usbh_hub.c index 80282ef..f9b6418 100644 --- a/os/hal/src/usbh/hal_usbh_hub.c +++ b/os/hal/src/usbh/hal_usbh_hub.c @@ -107,7 +107,7 @@ static void _urb_complete(usbh_urb_t *urb) {  	case USBH_URBSTATUS_TIMEOUT:  		/* the device NAKed */  		udbg("HUB: no info"); -		hubdp->statuschange = 0; +		//hubdp->statuschange = 0;  		break;  	case USBH_URBSTATUS_OK: {  		uint8_t len = hubdp->hubDesc.bNbrPorts / 8 + 1; @@ -266,9 +266,7 @@ static void _hub_unload(usbh_baseclassdriver_t *drv) {  	USBHHubDriver *const hubdp = (USBHHubDriver *)drv;  	/* close the status change endpoint (this cancels ongoing URBs) */ -	osalSysLock(); -	usbhEPCloseS(&hubdp->epint); -	osalSysUnlock(); +	usbhEPClose(&hubdp->epint);  	/* de-alloc ports and unload drivers */  	usbh_port_t *port = hubdp->ports;  | 
