mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
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:
parent
77365cc40a
commit
9e82665e2f
1 changed files with 4 additions and 0 deletions
|
@ -730,6 +730,8 @@ static int dw8250_runtime_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
struct dw8250_data *data = dev_get_drvdata(dev);
|
struct dw8250_data *data = dev_get_drvdata(dev);
|
||||||
|
|
||||||
|
reset_control_assert(data->rst);
|
||||||
|
|
||||||
clk_disable_unprepare(data->clk);
|
clk_disable_unprepare(data->clk);
|
||||||
|
|
||||||
clk_disable_unprepare(data->pclk);
|
clk_disable_unprepare(data->pclk);
|
||||||
|
@ -745,6 +747,8 @@ static int dw8250_runtime_resume(struct device *dev)
|
||||||
|
|
||||||
clk_prepare_enable(data->clk);
|
clk_prepare_enable(data->clk);
|
||||||
|
|
||||||
|
reset_control_deassert(data->rst);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue