Files
openwrt-master/target/linux/starfive/patches-6.6/0067-driver-uart-fix-up-uart-communicate-fail.patch
domenico c06fb25d1f
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 14:35:53 +02:00

30 lines
951 B
Diff

From 6edee93a89254f30c3387c88231e7ecec06ba84a Mon Sep 17 00:00:00 2001
From: "shanlong.li" <shanlong.li@starfivetech.com>
Date: Mon, 10 Jul 2023 03:07:57 -0700
Subject: [PATCH 067/116] driver:uart: fix up uart communicate fail
fix up uart communicate fail
Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
---
drivers/tty/serial/8250/8250_dw.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -652,10 +652,10 @@ static int dw8250_probe(struct platform_
if (err)
return err;
- data->rst = devm_reset_control_get_optional_exclusive(dev, NULL);
- if (IS_ERR(data->rst))
- return PTR_ERR(data->rst);
-
+ data->rst = devm_reset_control_array_get_exclusive(dev);
+ if (IS_ERR(data->rst)) {
+ err = PTR_ERR(data->rst);
+ }
reset_control_deassert(data->rst);
err = devm_add_action_or_reset(dev, dw8250_reset_control_assert, data->rst);