From patchwork Thu Oct 21 10:45:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12574687 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43FF5C4332F for ; Thu, 21 Oct 2021 10:45:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 295EE6121F for ; Thu, 21 Oct 2021 10:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbhJUKry (ORCPT ); Thu, 21 Oct 2021 06:47:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230316AbhJUKru (ORCPT ); Thu, 21 Oct 2021 06:47:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8DE861212; Thu, 21 Oct 2021 10:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634813134; bh=eLjGS50emBath6Dva8luhePYLJ4Az8GwBrWJmSsy4uk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sYRpMVtzxNPkcsOF60SFW1uOdAQ1EHGjL/Hh9spBJtxXkOQltTAynSugOPk7YVgOB uTKHVvtxH5vBZbv/G9cxew4EeXQ7aEX8qw/zRiL1p2IUpc4HehWShHz+j7CtLubBg7 YuiBp4o7K16S4CIDs/VY2ZoDi7P8uRBdXVtKIRMiUDx55UD9lNChFdA5tdkiy/xQNN tJZBlZ6+GizPKffv5ERxfUEYHjPrrkiezSXc4yBdgKnFDxAeyCZa5UCd4Zn2sFOMj+ 0niGK7alY+oIeAGEJMM3Wvv/INQ6u+tVgc9BC9ZV2YRkqi8e/EZwtDMvJbIMckntlt k5N5Stc7/i7Eg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mdVZj-002z5N-7N; Thu, 21 Oct 2021 11:45:31 +0100 From: Mauro Carvalho Chehab To: Lorenzo Pieralisi Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , =?utf-8?q?Krzysztof_Wilc?= =?utf-8?q?zy=C5=84ski?= , Binghui Wang , Bjorn Helgaas , Rob Herring , Xiaowei Song , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v15 12/13] PCI: kirin: De-init the dwc driver Date: Thu, 21 Oct 2021 11:45:19 +0100 Message-Id: <838621e1c84ebaac153ccd9c36ea5e1254c61ead.1634812676.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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. Acked-by: Xiaowei Song Signed-off-by: Mauro Carvalho Chehab --- To mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v15 00/13] at: https://lore.kernel.org/all/cover.1634812676.git.mchehab+huawei@kernel.org/ drivers/pci/controller/dwc/pcie-kirin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index 4c3fa02b7108..fea4d717fff3 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -750,6 +750,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;