mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
29 lines
990 B
Diff
29 lines
990 B
Diff
From 52039b6ffb6e78c2f77319b167dceab9aa51d13f Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 13 Jun 2023 16:12:54 +0100
|
|
Subject: [PATCH] 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
|
|
@@ -1221,6 +1221,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 */
|
|
spin_lock_irqsave(&port->lock, flags);
|
|
sc16is7xx_enable_ms(port);
|