arch: cxd56xx: Fix getting stuck by nested spinlock in serial

Fix an issue the serial console gets stuck in SMP caused by nested
spin_lock_irqsave.
This commit is contained in:
SPRESENSE 2021-07-04 12:51:53 +09:00 committed by Xiang Xiao
parent 12fb49d0a3
commit cb6ad9dfbd
1 changed files with 2 additions and 2 deletions

View File

@ -862,11 +862,11 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
#endif
priv->baud = cfgetispeed(termiosp);
spin_unlock_irqrestore(&priv->lock, flags);
/* Configure the UART line format and speed. */
up_set_format(dev);
spin_unlock_irqrestore(&priv->lock, flags);
}
break;
#endif