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:
parent
12fb49d0a3
commit
cb6ad9dfbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue