wangzhi-art commented on code in PR #15506:
URL: https://github.com/apache/nuttx/pull/15506#discussion_r1921698886
##########
arch/arm/src/imxrt/imxrt_usbdev.c:
##########
@@ -2821,16 +2848,14 @@ void arm_usbinitialize(void)
{
struct imxrt_usbdev_s *priv = &g_usbdev;
int i;
- irqstate_t flags;
-
- flags = enter_critical_section();
/* Initialize the device state structure */
memset(priv, 0, sizeof(struct imxrt_usbdev_s));
priv->usbdev.ops = &g_devops;
priv->usbdev.ep0 = &priv->eplist[IMXRT_EP0_IN].ep;
priv->epavail = IMXRT_EPALLSET & ~IMXRT_EPCTRLSET;
+ priv->lock = SP_UNLOCKED;
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]