summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2023-09-21 12:09:31 +0300
committerandy.hu <andy.hu@starfivetech.com>2023-09-21 12:09:31 +0300
commit19c1eeb7ed5521b04206f3b383d62fd3b01213b5 (patch)
tree3bda88637d93b75efb9e0c6d082d726441a2c77d
parent8ba003ee886c555702405f8dca5a64cefe77b85e (diff)
parentb9cdff84a2c5474b8abd8edea8b50f4f9d2d2ca4 (diff)
downloadlinux-19c1eeb7ed5521b04206f3b383d62fd3b01213b5.tar.xz
Merge branch 'CR_7149_UART_5.15_william.qiu' into 'jh7110-5.15.y-devel'
CR_7149_5.15: uart: 8250: add reset operation in runtime PM See merge request sdk/linux!964
-rw-r--r--drivers/tty/serial/8250/8250_dw.c4
1 files 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