Skip to content

Commit 5548c37

Browse files
jsiverskogmmahadevan108
authored andcommitted
mcux-sdk-middleware-usb: fix ip control return value for ip3511
re-apply patch after sdk refresh. without this kStatus_USB_Error was always returned for kUSB_DeviceControlRun and kUSB_DeviceControlStop control types. let's do it as for ehci/khci. this change fixes the tests/subsys/usb/device/usb.device test for lpcxpresso55s69_cpu0. this is from nxp-mcuxpresso/mcuxsdk-middleware-usb#6 Signed-off-by: Jacob Siverskog <[email protected]>
1 parent 6d0587a commit 5548c37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcux/middleware/mcux-sdk-middleware-usb/device/usb_device_lpcip3511.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,11 +2299,13 @@ usb_status_t USB_DeviceLpc3511IpControl(usb_device_controller_handle controllerH
22992299
case kUSB_DeviceControlRun:
23002300
lpc3511IpState->registerBase->DEVCMDSTAT |= (USB_LPC3511IP_DEVCMDSTAT_DCON_MASK);
23012301
lpc3511IpState->registerBase->DEVCMDSTAT &= ~(USB_LPC3511IP_DEVCMDSTAT_FORCE_NEEDCLK_MASK);
2302+
error = kStatus_USB_Success;
23022303
break;
23032304

23042305
case kUSB_DeviceControlStop:
23052306
lpc3511IpState->registerBase->DEVCMDSTAT |= USB_LPC3511IP_DEVCMDSTAT_FORCE_NEEDCLK_MASK;
23062307
lpc3511IpState->registerBase->DEVCMDSTAT &= (~USB_LPC3511IP_DEVCMDSTAT_DCON_MASK);
2308+
error = kStatus_USB_Success;
23072309
break;
23082310

23092311
case kUSB_DeviceControlEndpointInit:

0 commit comments

Comments
 (0)