|
@@ -1251,6 +1251,9 @@ static int __maybe_unused rockchip_pcie_suspend_noirq(struct device *dev)
|
|
|
clk_disable_unprepare(rockchip->aclk_perf_pcie);
|
|
|
clk_disable_unprepare(rockchip->aclk_pcie);
|
|
|
|
|
|
+ if (!IS_ERR(rockchip->vpcie0v9))
|
|
|
+ regulator_disable(rockchip->vpcie0v9);
|
|
|
+
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -1259,6 +1262,14 @@ static int __maybe_unused rockchip_pcie_resume_noirq(struct device *dev)
|
|
|
struct rockchip_pcie *rockchip = dev_get_drvdata(dev);
|
|
|
int err;
|
|
|
|
|
|
+ if (!IS_ERR(rockchip->vpcie0v9)) {
|
|
|
+ err = regulator_enable(rockchip->vpcie0v9);
|
|
|
+ if (err) {
|
|
|
+ dev_err(dev, "fail to enable vpcie0v9 regulator\n");
|
|
|
+ return err;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
clk_prepare_enable(rockchip->clk_pcie_pm);
|
|
|
clk_prepare_enable(rockchip->hclk_pcie);
|
|
|
clk_prepare_enable(rockchip->aclk_perf_pcie);
|