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 https://github.com/nxp-mcuxpresso/mcux-sdk-middleware-usb/pull/6

Signed-off-by: Jacob Siverskog <jacob@teenage.engineering>
This commit is contained in:
Jacob Siverskog 2024-01-04 15:09:06 +01:00 committed by Mahesh Mahadevan
parent 6d0587abf6
commit 5548c379e4
1 changed files with 2 additions and 0 deletions

View File

@ -2299,11 +2299,13 @@ usb_status_t USB_DeviceLpc3511IpControl(usb_device_controller_handle controllerH
case kUSB_DeviceControlRun:
lpc3511IpState->registerBase->DEVCMDSTAT |= (USB_LPC3511IP_DEVCMDSTAT_DCON_MASK);
lpc3511IpState->registerBase->DEVCMDSTAT &= ~(USB_LPC3511IP_DEVCMDSTAT_FORCE_NEEDCLK_MASK);
error = kStatus_USB_Success;
break;
case kUSB_DeviceControlStop:
lpc3511IpState->registerBase->DEVCMDSTAT |= USB_LPC3511IP_DEVCMDSTAT_FORCE_NEEDCLK_MASK;
lpc3511IpState->registerBase->DEVCMDSTAT &= (~USB_LPC3511IP_DEVCMDSTAT_DCON_MASK);
error = kStatus_USB_Success;
break;
case kUSB_DeviceControlEndpointInit: