@@ -370,6 +370,7 @@ static void imx_uart_soft_reset(struct imx_port *sport)
370
370
sport -> idle_counter = 0 ;
371
371
}
372
372
373
+ /* called with port.lock taken and irqs off */
373
374
static void imx_uart_disable_loopback_rs485 (struct imx_port * sport )
374
375
{
375
376
unsigned int uts ;
@@ -470,6 +471,7 @@ static void imx_uart_stop_tx(struct uart_port *port)
470
471
}
471
472
}
472
473
474
+ /* called with port.lock taken and irqs off */
473
475
static void imx_uart_stop_rx_with_loopback_ctrl (struct uart_port * port , bool loopback )
474
476
{
475
477
struct imx_port * sport = to_imx_port (port );
@@ -803,6 +805,8 @@ static irqreturn_t imx_uart_txint(int irq, void *dev_id)
803
805
* issuing soft reset to the UART (just stop/start of RX does not help). Note
804
806
* that what we do here is sending isolated start bit about 2.4 times shorter
805
807
* than it is to be on UART configured baud rate.
808
+ *
809
+ * Called with port.lock taken and irqs off.
806
810
*/
807
811
static void imx_uart_check_flood (struct imx_port * sport , u32 usr2 )
808
812
{
@@ -838,6 +842,7 @@ static void imx_uart_check_flood(struct imx_port *sport, u32 usr2)
838
842
}
839
843
}
840
844
845
+ /* called with port.lock taken and irqs off */
841
846
static irqreturn_t __imx_uart_rxint (int irq , void * dev_id )
842
847
{
843
848
struct imx_port * sport = dev_id ;
@@ -916,6 +921,7 @@ static void imx_uart_clear_rx_errors(struct imx_port *sport);
916
921
/*
917
922
* We have a modem side uart, so the meanings of RTS and CTS are inverted.
918
923
*/
924
+ /* called with port.lock taken and irqs off */
919
925
static unsigned int imx_uart_get_hwmctrl (struct imx_port * sport )
920
926
{
921
927
unsigned int tmp = TIOCM_DSR ;
@@ -938,6 +944,8 @@ static unsigned int imx_uart_get_hwmctrl(struct imx_port *sport)
938
944
939
945
/*
940
946
* Handle any change of modem status signal since we were last called.
947
+ *
948
+ * Called with port.lock taken and irqs off.
941
949
*/
942
950
static void imx_uart_mctrl_check (struct imx_port * sport )
943
951
{
@@ -1277,6 +1285,7 @@ static int imx_uart_start_rx_dma(struct imx_port *sport)
1277
1285
return 0 ;
1278
1286
}
1279
1287
1288
+ /* called with port.lock taken and irqs off */
1280
1289
static void imx_uart_clear_rx_errors (struct imx_port * sport )
1281
1290
{
1282
1291
struct tty_port * port = & sport -> port .state -> port ;
@@ -1407,6 +1416,7 @@ static int imx_uart_dma_init(struct imx_port *sport)
1407
1416
return ret ;
1408
1417
}
1409
1418
1419
+ /* called with port.lock taken and irqs off */
1410
1420
static void imx_uart_enable_dma (struct imx_port * sport )
1411
1421
{
1412
1422
u32 ucr1 ;
0 commit comments