Skip to content

Commit 6edf0c9

Browse files
committed
Revert "tty/serial: Prevent drop of DCD on suspend for Tegra UARTs"
This reverts commit 9636b75. It wasn't supposed to be applied, thanks to Doug for letting me know. Cc: Doug Anderson <dianders@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 93f3350 commit 6edf0c9

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎drivers/tty/serial/8250.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ static const struct serial8250_config uart_config[] = {
308308
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_01 |
309309
UART_FCR_T_TRIG_01,
310310
.flags = UART_CAP_FIFO | UART_CAP_RTOIE,
311-
.mcr_mask = ~UART_MCR_DTR,
312-
.mcr_force = UART_MCR_DTR,
313311
},
314312
[PORT_XR17D15X] = {
315313
.name = "XR17D15X",
@@ -1231,10 +1229,6 @@ static void autoconfig(struct uart_8250_port *up, unsigned int probeflags)
12311229
up->port.fifosize = uart_config[up->port.type].fifo_size;
12321230
up->capabilities = uart_config[up->port.type].flags;
12331231
up->tx_loadsz = uart_config[up->port.type].tx_loadsz;
1234-
if (!ALPHA_KLUDGE_MCR) {
1235-
up->mcr_mask = uart_config[up->port.type].mcr_mask;
1236-
up->mcr_force = uart_config[up->port.type].mcr_force;
1237-
}
12381232

12391233
if (up->port.type == PORT_UNKNOWN)
12401234
goto out;
@@ -1993,10 +1987,6 @@ static int serial8250_startup(struct uart_port *port)
19931987
up->port.fifosize = uart_config[up->port.type].fifo_size;
19941988
up->tx_loadsz = uart_config[up->port.type].tx_loadsz;
19951989
up->capabilities = uart_config[up->port.type].flags;
1996-
if (!ALPHA_KLUDGE_MCR) {
1997-
up->mcr_mask = uart_config[up->port.type].mcr_mask;
1998-
up->mcr_force = uart_config[up->port.type].mcr_force;
1999-
}
20001990
up->mcr = 0;
20011991

20021992
if (up->port.iotype != up->cur_iotype)
@@ -2803,10 +2793,6 @@ serial8250_init_fixed_type_port(struct uart_8250_port *up, unsigned int type)
28032793
up->port.fifosize = uart_config[type].fifo_size;
28042794
up->capabilities = uart_config[type].flags;
28052795
up->tx_loadsz = uart_config[type].tx_loadsz;
2806-
if (!ALPHA_KLUDGE_MCR) {
2807-
up->mcr_mask = uart_config[type].mcr_mask;
2808-
up->mcr_force = uart_config[type].mcr_force;
2809-
}
28102796
}
28112797

28122798
static void __init

‎drivers/tty/serial/8250.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ struct serial8250_config {
3535
unsigned short tx_loadsz;
3636
unsigned char fcr;
3737
unsigned int flags;
38-
unsigned char mcr_mask;
39-
unsigned char mcr_force;
4038
};
4139

4240
#define UART_CAP_FIFO (1 << 8) /* UART has FIFO */

0 commit comments

Comments
 (0)