aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-10-21 11:45:19 +0100
committerBjorn Helgaas <bhelgaas@google.com>2021-11-04 14:34:23 -0500
commitdc47d2f4c0549982a81d25a8ec6a9dbfd2211122 (patch)
treed430d151fac68f309c262f295229cb48ca73fb2b /drivers/pci/controller
parentPCI: kirin: Disable clkreq during poweroff sequence (diff)
downloadlinux-dev-dc47d2f4c0549982a81d25a8ec6a9dbfd2211122.tar.xz
linux-dev-dc47d2f4c0549982a81d25a8ec6a9dbfd2211122.zip
PCI: kirin: De-init the dwc driver
The logic under .remove ops is missing a call to dw_pcie_host_deinit(). Add it, in order to allow the DWC core to be properly cleaned up. Link: https://lore.kernel.org/r/838621e1c84ebaac153ccd9c36ea5e1254c61ead.1634812676.git.mchehab+huawei@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Xiaowei Song <songxiaowei@hisilicon.com>
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r--drivers/pci/controller/dwc/pcie-kirin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c
index 1878c91a33a3..24c596d8f27f 100644
--- a/drivers/pci/controller/dwc/pcie-kirin.c
+++ b/drivers/pci/controller/dwc/pcie-kirin.c
@@ -751,6 +751,8 @@ static int __exit kirin_pcie_remove(struct platform_device *pdev)
{
struct kirin_pcie *kirin_pcie = platform_get_drvdata(pdev);
+ dw_pcie_host_deinit(&kirin_pcie->pci->pp);
+
kirin_pcie_power_off(kirin_pcie);
return 0;