VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: William Qiu <william.qiu@starfivetech.com> 2023-09-20 17:19:59 +0800 committer: William Qiu <william.qiu@starfivetech.com> 2023-09-20 17:19:59 +0800 commit: b9cdff84a2c5474b8abd8edea8b50f4f9d2d2ca4 parent: 0a6b3bee70066d2162e4f81975ac5210947f5a41
Commit Summary:
uart: 8250: add reset operation in runtime PM
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index 25e434e68ee1..d02665688f35 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -674,6 +674,8 @@ static int dw8250_runtime_suspend(struct device *dev)
 {
 	struct dw8250_data *data = dev_get_drvdata(dev);
 
+	reset_control_assert(data->rst);
+
 	clk_disable_unprepare(data->clk);
 
 	clk_disable_unprepare(data->pclk);
@@ -689,6 +691,8 @@ static int dw8250_runtime_resume(struct device *dev)
 
 	clk_prepare_enable(data->clk);
 
+	reset_control_deassert(data->rst);
+
 	return 0;
 }
 #endif