mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
29 lines
999 B
Diff
29 lines
999 B
Diff
From 3a49598d7be0e3085f3229723e278fe3a6992f59 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 13 Jun 2023 16:12:54 +0100
|
|
Subject: [PATCH 0475/1085] 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>
|
|
---
|
|
drivers/tty/serial/sc16is7xx.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/tty/serial/sc16is7xx.c
|
|
+++ b/drivers/tty/serial/sc16is7xx.c
|
|
@@ -1206,6 +1206,9 @@ static int sc16is7xx_startup(struct uart
|
|
SC16IS7XX_IER_MSI_BIT;
|
|
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 */
|
|
uart_port_lock_irqsave(port, &flags);
|
|
sc16is7xx_enable_ms(port);
|