2022-05-16 21:40:32 +00:00
|
|
|
From c625bcbb6a4c45e29c7c2c0dec24831025051032 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
|
|
Date: Tue, 6 Nov 2018 12:57:48 +0000
|
|
|
|
Subject: [PATCH] sc16is7xx: Don't spin if no data received
|
|
|
|
|
|
|
|
See: https://github.com/raspberrypi/linux/issues/2676
|
|
|
|
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|
|
|
---
|
|
|
|
drivers/tty/serial/sc16is7xx.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/tty/serial/sc16is7xx.c
|
|
|
|
+++ b/drivers/tty/serial/sc16is7xx.c
|
2024-04-13 17:22:41 +00:00
|
|
|
@@ -710,6 +710,8 @@ static bool sc16is7xx_port_irq(struct sc
|
kernel: bump 5.15 to 5.15.145
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.145
No patches needed a rebase.
23.05 backport:
Rebased patch mediatek/100-dts-update-mt7622-rfb1.patch due to
changes introduced in commit e37aa926447f ("arm64: dts: mediatek:
mt7622: fix memory node warning check") in version v5.15.143 and we
jumped over from v5.15.139 directly to v5.15.145.
Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3
23.05 backport:
Stijn:
Compile-tested: ath79/generic, ipq40xx/generic, mvebu/cortexa72, ramips/mt{7621,7620,76x8}, realtek/rtl{838x,930x}, 86/64.
Run-tested: cortexa72 (RB5009UG+S+IN), mt7621 (EAP615-Wall v1), rtl838x (GS1900-10HP, GS1900-8HP, GS108T v3).
Petr:
Compile-tested: ipq807x, mvebu/cortexa9
Run-tested: turris-omnia, prpl-haze
Tested-by: Stijn Segers <foss@volatilesystems.org> [23.05 testing]
Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [23.05 refresh]
(cherry picked from commit 8de4cc77a6d5c25e48566d0203f159287ac7f3fe)
2023-12-23 11:52:06 +00:00
|
|
|
|
2022-05-16 21:40:32 +00:00
|
|
|
if (rxlen)
|
|
|
|
sc16is7xx_handle_rx(port, rxlen, iir);
|
|
|
|
+ else
|
|
|
|
+ return false;
|
|
|
|
break;
|
|
|
|
case SC16IS7XX_IIR_THRI_SRC:
|
|
|
|
sc16is7xx_handle_tx(port);
|