| .. | .. |
|---|
| 146 | 146 | |
|---|
| 147 | 147 | static void ingenic_uart_serial_out(struct uart_port *p, int offset, int value) |
|---|
| 148 | 148 | { |
|---|
| 149 | | - unsigned int flags; |
|---|
| 150 | | - bool is_console; |
|---|
| 151 | 149 | int ier; |
|---|
| 152 | 150 | |
|---|
| 153 | 151 | switch (offset) { |
|---|
| .. | .. |
|---|
| 169 | 167 | * If we have enabled modem status IRQs we should enable |
|---|
| 170 | 168 | * modem mode. |
|---|
| 171 | 169 | */ |
|---|
| 172 | | - is_console = uart_console(p); |
|---|
| 173 | | - if (is_console) |
|---|
| 174 | | - console_atomic_lock(&flags); |
|---|
| 175 | 170 | ier = p->serial_in(p, UART_IER); |
|---|
| 176 | | - if (is_console) |
|---|
| 177 | | - console_atomic_unlock(flags); |
|---|
| 178 | 171 | |
|---|
| 179 | 172 | if (ier & UART_IER_MSI) |
|---|
| 180 | 173 | value |= UART_MCR_MDCE | UART_MCR_FCM; |
|---|