hujun260 commented on code in PR #15291:
URL: https://github.com/apache/nuttx/pull/15291#discussion_r1893355787


##########
arch/arm/src/imx9/imx9_lpuart.c:
##########
@@ -1140,29 +1147,45 @@ static inline void imx9_disableuartint(struct 
imx9_uart_s *priv,
 
   regval &= ~LPUART_ALL_INTS;
   imx9_serialout(priv, IMX9_LPUART_CTRL_OFFSET, regval);
-  spin_unlock_irqrestore(NULL, flags);
+}
+
+static inline void imx9_disableuartint(struct imx9_uart_s *priv,
+                                       uint32_t *ie)
+{
+  irqstate_t flags;
+
+  flags  = spin_lock_irqsave(&priv->lock);

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]

Reply via email to