uart: 8250: add reset operation in runtime PM

add reset operation in runtime PM

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
This commit is contained in:
William Qiu 2023-09-20 17:19:59 +08:00 committed by Hal Feng
parent 77365cc40a
commit 9e82665e2f

View file

@ -730,6 +730,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);
@ -745,6 +747,8 @@ static int dw8250_runtime_resume(struct device *dev)
clk_prepare_enable(data->clk);
reset_control_deassert(data->rst);
return 0;
}