kernel/0130-fix-fix-some-ep-device-cannot-resume.patch

47 lines
1.4 KiB
Diff
Raw Permalink Normal View History

2024-12-19 21:34:44 +00:00
From 4bc856d5b27f630779d34a0d34c9d53705b52310 Mon Sep 17 00:00:00 2001
2024-12-15 18:29:23 +00:00
From: huzhixuan <huzhixuan@eswincomputing.com>
Date: Wed, 31 Jul 2024 17:39:47 +0800
Subject: [PATCH 130/219] fix:fix some ep device cannot resume
Changelogs:
1.Fix some ep device cannot resume.
Signed-off-by: huzhixuan <huzhixuan@eswincomputing.com>
---
drivers/pci/controller/dwc/pcie-eswin.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/pci/controller/dwc/pcie-eswin.c b/drivers/pci/controller/dwc/pcie-eswin.c
index e8d60d183d2b..4da79e854ea4 100644
--- a/drivers/pci/controller/dwc/pcie-eswin.c
+++ b/drivers/pci/controller/dwc/pcie-eswin.c
@@ -413,7 +413,6 @@ static int eswin_pcie_suspend(struct device *dev)
dev_dbg(dev, "%s\n", __func__);
if (!pm_runtime_status_suspended(dev)) {
win2030_tbu_power(pcie->pci.dev, false);
- eswin_pcie_power_off(pcie);
eswin_pcie_clk_disable(pcie);
}
@@ -423,14 +422,14 @@ static int eswin_pcie_suspend(struct device *dev)
static int eswin_pcie_resume(struct device *dev)
{
struct eswin_pcie *pcie = dev_get_drvdata(dev);
- int err = 0;
dev_dbg(dev, "%s\n", __func__);
if (!pm_runtime_status_suspended(dev)) {
- err = eswin_pcie_host_init(&pcie->pci.pp);
+ eswin_pcie_clk_enable(pcie);
+ win2030_tbu_power(pcie->pci.dev, true);
}
- return err;
+ return 0;
}
static int eswin_pcie_runtime_suspend(struct device *dev)
--
2.47.0