[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231130115044.53512-4-shradha.t@samsung.com>
Date: Thu, 30 Nov 2023 17:20:44 +0530
From: Shradha Todi <shradha.t@...sung.com>
To: manivannan.sadhasivam@...aro.org, lpieralisi@...nel.org,
kw@...ux.com, robh@...nel.org, bhelgaas@...gle.com,
jingoohan1@...il.com, gustavo.pimentel@...opsys.com,
josh@...htriplett.org, lukas.bulwahn@...il.com,
hongxing.zhu@....com, pankaj.dubey@...sung.com
Cc: linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org,
Shradha Todi <shradha.t@...sung.com>
Subject: [PATCH v2 3/3] PCI: dwc: Create debugfs files in DWC driver
Add call to initialize debugfs from DWC driver and create the RASDES
debugfs hierarchy for each platform driver. Since it can be used for
both DW HOST controller as well as DW EP controller, add it in the
common setup function.
Signed-off-by: Shradha Todi <shradha.t@...sung.com>
---
drivers/pci/controller/dwc/pcie-designware.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
index 064b4951afd8..16c9018c2ada 100644
--- a/drivers/pci/controller/dwc/pcie-designware.c
+++ b/drivers/pci/controller/dwc/pcie-designware.c
@@ -1074,4 +1074,8 @@ void dw_pcie_setup(struct dw_pcie *pci)
break;
}
dw_pcie_writel_dbi(pci, PCIE_LINK_WIDTH_SPEED_CONTROL, val);
+
+ val = dwc_pcie_rasdes_debugfs_init(pci);
+ if (val)
+ dev_err(pci->dev, "Couldn't create debugfs files\n");
}
--
2.17.1
Powered by blists - more mailing lists