Skip to content

Commit 38557dc

Browse files
pelwellpopcornmix
authored andcommitted
serial: sc16is7xx: Read modem line state at startup
This patch sets the driver modem line state to the actual line state at driver startup. See: #5501 Signed-off-by: Earl Schmidt <[email protected]> Signed-off-by: Phil Elwell <[email protected]>
1 parent 2ff5d1b commit 38557dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/tty/serial/sc16is7xx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,9 @@ static int sc16is7xx_startup(struct uart_port *port)
12221222
SC16IS7XX_IER_MSI_BIT;
12231223
sc16is7xx_port_write(port, SC16IS7XX_IER_REG, val);
12241224

1225+
/* Initialize the Modem Control signals to current status */
1226+
one->old_mctrl = sc16is7xx_get_hwmctrl(port);
1227+
12251228
/* Enable modem status polling */
12261229
uart_port_lock_irqsave(port, &flags);
12271230
sc16is7xx_enable_ms(port);

0 commit comments

Comments
 (0)