We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbb9b1 commit 3c199edCopy full SHA for 3c199ed
drivers/tty/serial/imx.c
@@ -2580,10 +2580,13 @@ static void imx_uart_save_context(struct imx_port *sport)
2580
uart_port_unlock_irqrestore(&sport->port, flags);
2581
}
2582
2583
+/* called with irq off */
2584
static void imx_uart_enable_wakeup(struct imx_port *sport, bool on)
2585
{
2586
u32 ucr3;
2587
2588
+ uart_port_lock(&sport->port);
2589
+
2590
ucr3 = imx_uart_readl(sport, UCR3);
2591
if (on) {
2592
imx_uart_writel(sport, USR1_AWAKE, USR1);
@@ -2603,6 +2606,8 @@ static void imx_uart_enable_wakeup(struct imx_port *sport, bool on)
2603
2606
2604
2607
imx_uart_writel(sport, ucr1, UCR1);
2605
2608
2609
2610
+ uart_port_unlock(&sport->port);
2611
2612
2613
static int imx_uart_suspend_noirq(struct device *dev)
0 commit comments