mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-27 23:26:59 +08:00

This target adds support for the StarFive JH7100 and JH7110 SoCs, based on 6.12, as well as a couple boards equipped with these. Installation: Standard SD-card installation via dd-ing the generated image to an SD-card of at least 256Mb. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
33 lines
865 B
Diff
33 lines
865 B
Diff
From ee5aab642d8a99a7a48d9b30f098ca2a97f463c4 Mon Sep 17 00:00:00 2001
|
|
From: William Qiu <william.qiu@starfivetech.com>
|
|
Date: Wed, 20 Sep 2023 17:19:59 +0800
|
|
Subject: [PATCH 10/55] uart: 8250: add reset operation in runtime PM
|
|
|
|
add reset operation in runtime PM
|
|
|
|
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
---
|
|
drivers/tty/serial/8250/8250_dw.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/tty/serial/8250/8250_dw.c
|
|
+++ b/drivers/tty/serial/8250/8250_dw.c
|
|
@@ -710,6 +710,8 @@ static int dw8250_runtime_suspend(struct
|
|
{
|
|
struct dw8250_data *data = dev_get_drvdata(dev);
|
|
|
|
+ reset_control_assert(data->rst);
|
|
+
|
|
clk_disable_unprepare(data->clk);
|
|
|
|
clk_disable_unprepare(data->pclk);
|
|
@@ -725,6 +727,8 @@ static int dw8250_runtime_resume(struct
|
|
|
|
clk_prepare_enable(data->clk);
|
|
|
|
+ reset_control_deassert(data->rst);
|
|
+
|
|
return 0;
|
|
}
|
|
|