mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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: https://github.com/raspberrypi/linux/issues/5501 Signed-off-by: Earl Schmidt <schmidt.earl.f@gmail.com> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -1205,6 +1205,9 @@ static int sc16is7xx_startup(struct uart_port *port)
|
|||||||
SC16IS7XX_IER_MSI_BIT;
|
SC16IS7XX_IER_MSI_BIT;
|
||||||
sc16is7xx_port_write(port, SC16IS7XX_IER_REG, val);
|
sc16is7xx_port_write(port, SC16IS7XX_IER_REG, val);
|
||||||
|
|
||||||
|
/* Initialize the Modem Control signals to current status */
|
||||||
|
one->old_mctrl = sc16is7xx_get_hwmctrl(port);
|
||||||
|
|
||||||
/* Enable modem status polling */
|
/* Enable modem status polling */
|
||||||
uart_port_lock_irqsave(port, &flags);
|
uart_port_lock_irqsave(port, &flags);
|
||||||
sc16is7xx_enable_ms(port);
|
sc16is7xx_enable_ms(port);
|
||||||
|
|||||||
Reference in New Issue
Block a user