Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp168260yba; Wed, 3 Apr 2019 06:37:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMeA+/8758jM0Gtfd2iT6Kw5X4hb7rrPW4AKvZ0B+JyeooX2bDRTwXuZP7EkqzuLiRtX0E X-Received: by 2002:a17:902:7892:: with SMTP id q18mr66629586pll.163.1554298642553; Wed, 03 Apr 2019 06:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554298642; cv=none; d=google.com; s=arc-20160816; b=YYuNIrw4i43WQAyzPwJgdlfaocn/asKuJ2fa4ohJSvdKHTGlk3TVpjvn6KFtWKmIte EpOA7GbNrE1fUCQ3WhUY0WU3XB5XET5g6abIHzYApl+5/TW6vd3KDhyVjxzsnPZXgk/2 N962qL6K6taku130N+o9haK/oqwPrz77zOEXnilNQEAtsaj8j8sEyz3URSTq0O0f1j61 NVoS4wsmIy2K/gpvtNHy0MqH0Xmn2ERAse9OMbJC2q3UaguYCOgqfZ/B0dq6xtUGKB4w Il2+/PJeS76+apVKiC3gEvnxV6MmspPUUUejy35svGmXMfRxvVGVD33UT7qglceIh/XU NFAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=C0oQ7FYIrJb0RBLM8r34YqTNLG1rc+1+fDNURJ0zZdQ=; b=0a9oJTMEnFb5jSpZ0eAhw/WIYPLAyqX9GqK/I4GIemgoxp1thd+Hzau1jI1FndVDe6 pTiR1OyhUjKgqPfs3YUNjJhSie+Q8LCvlj4hywqHA3E7+LM65+oANo9mSbPJ02G8ycoF 2IMghhUKkBMrnuQQtUFK2pYScDwGGC0GLSv2n8o3ZJryNQpx0N2xJ1LNsm1YXx1eGANf x1DDqbgSK4YjYZGgh6G6UoUMpUL903qHQRnTxrsJVnIVAFis6ub0XArJt38VqiBbDHqG B//CdfV9rF42cuE1yDLsdPgCPxHSzxpNbVJ0gkECaSR3YfBzc3hCXijh+eIxgRo7CUWg f8KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=pZ8RyOJ3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si13725536pfn.57.2019.04.03.06.37.07; Wed, 03 Apr 2019 06:37:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=pZ8RyOJ3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbfDCNgW (ORCPT + 99 others); Wed, 3 Apr 2019 09:36:22 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:16398 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfDCNgV (ORCPT ); Wed, 3 Apr 2019 09:36:21 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 03 Apr 2019 06:36:25 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 03 Apr 2019 06:36:21 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 03 Apr 2019 06:36:21 -0700 Received: from [10.24.47.153] (10.124.1.5) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 3 Apr 2019 13:36:18 +0000 Subject: Re: [PATCH v4 0/5] PCI: dwc: Support remove To: Lorenzo Pieralisi , Jisheng Zhang CC: Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Robin Murphy References: <20190329194750.265f6df6@xhacker.debian> <20190401134946.GA4722@e107981-ln.cambridge.arm.com> X-Nvconfidentiality: public From: Vidya Sagar Message-ID: Date: Wed, 3 Apr 2019 19:06:15 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190401134946.GA4722@e107981-ln.cambridge.arm.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL101.nvidia.com (172.20.187.10) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1554298585; bh=C0oQ7FYIrJb0RBLM8r34YqTNLG1rc+1+fDNURJ0zZdQ=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=pZ8RyOJ31JvpJHEgduTQ+X1TvA10BMAhKQbSyCacJ80aQucnlJMI1QkfMgWZfJoRC NbYFN96AehjJRtnSlawsE1/DWWLR6C/YTquP1VHdRxLf9qIBCpTYuQzffI0Aehmmfh aJc5pbRdHsn+k5cJ8OXUvZxaNU5TBEXm51buwXmRzeaV4bf33D9slVmo6w5z5CFRhP NFaELlAGPHCsk83oI+Fxq9WTy6k+2kFUrMy7ii0LEWpx5WdtT5gNJcdAOIRSE+cgVP PB2eue4a6QKbgQ5pookLfqQNz7k48hHUfo0PeqsPMdiB9owBuODwP89PSHoBn1LwYO QT5XuU2WlKjrA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Verified it with Tegra194 PCIe host controller driver, but had to do EXPORT_SYMBOL_GPL() for a bunch of APIs. I'll push changes to export all those APIs as part of Tegra194 PCIe driver patch series. Thanks Vidya Sagar On 4/1/2019 7:20 PM, Lorenzo Pieralisi wrote: > On Fri, Mar 29, 2019 at 11:55:36AM +0000, Jisheng Zhang wrote: >> Currently, the PCI dwc host users don't support the remove, but nothing >> prevent us from supporting it. To achieve this goal, we need to ensure >> we can do necessary clean up work. >> >> Changes since v3: >> - add Gustavo's ACK to patch2, patch5 >> - remove IS_ENABLED(CONFIG_PCI_MSI) check >> >> Changes since v2: >> - address all Gustavo's comments >> - add Gustavo's ACK to patch1, patch3, patch4 >> >> Changes since v1: >> - address Bjorn's comments, I.E Capitalize, s/irq/IRQ/, s/msi/MSI/ >> >> >> Jisheng Zhang (5): >> PCI: dwc: Fix dw_pcie_free_msi() if msi_irq is invalid >> PCI: dwc: Free the page for MSI IRQ in dw_pcie_free_msi() >> PCI: dwc: Free MSI in the error code path of dw_pcie_host_init() >> PCI: dwc: Use devm_pci_alloc_host_bridge() to simplify the code >> PCI: dwc: Save root bus for driver remove >> >> .../pci/controller/dwc/pcie-designware-host.c | 60 ++++++++++--------- >> drivers/pci/controller/dwc/pcie-designware.h | 2 + >> 2 files changed, 34 insertions(+), 28 deletions(-) > > Applied to pci/dwc for v5.2, thanks. > > Lorenzo >