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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user