mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Fix cxd56 uart deadlock
This commit is contained in:
committed by
Masayuki Ishikawa
parent
0e22eceef2
commit
7ce5369873
@@ -996,7 +996,7 @@ static void up_txint(FAR struct uart_dev_s *dev, bool enable)
|
||||
FAR struct up_dev_s *priv = (FAR struct up_dev_s *)dev->priv;
|
||||
irqstate_t flags;
|
||||
|
||||
flags = spin_lock_irqsave();
|
||||
flags = enter_critical_section();
|
||||
if (enable)
|
||||
{
|
||||
#ifndef CONFIG_SUPPRESS_SERIAL_INTS
|
||||
@@ -1016,7 +1016,7 @@ static void up_txint(FAR struct uart_dev_s *dev, bool enable)
|
||||
up_serialout(priv, CXD56_UART_IMSC, priv->ier);
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(flags);
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user