File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2580,10 +2580,13 @@ static void imx_uart_save_context(struct imx_port *sport)
2580
2580
uart_port_unlock_irqrestore (& sport -> port , flags );
2581
2581
}
2582
2582
2583
+ /* called with irq off */
2583
2584
static void imx_uart_enable_wakeup (struct imx_port * sport , bool on )
2584
2585
{
2585
2586
u32 ucr3 ;
2586
2587
2588
+ uart_port_lock (& sport -> port );
2589
+
2587
2590
ucr3 = imx_uart_readl (sport , UCR3 );
2588
2591
if (on ) {
2589
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 );
2606
2611
}
2607
2612
2608
2613
static int imx_uart_suspend_noirq (struct device * dev )
You can’t perform that action at this time.
0 commit comments