From patchwork Tue Feb 26 11:55:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10829987 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D452E15AC for ; Tue, 26 Feb 2019 11:55:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE7FA2B4E7 for ; Tue, 26 Feb 2019 11:55:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B207F2B5B1; Tue, 26 Feb 2019 11:55:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5AFEF2B4E7 for ; Tue, 26 Feb 2019 11:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-ID:Message-ID:Date :Subject:To:From:Reply-To:Cc:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=F+lWbDEzR6Y1KCUMeIJPGb8B9F/kzzYk+5pnWmClItk=; b=DbY/F6LH8JQthQ JKx+1j1nG3UsDrfgR/7GdfUzlLrQ9T1uRvjg5R+G+oiB/BDkbkeRMYNfokxD+xquTQHybw/flwT1X 4DLqNVenXTyO/hJafUi4wKgFk4REH7TctZHcWCLyUqMHf9L9nNrcyqPd6pLlUs8JgoikzmCIp7gKT cRcuavmLxIqfldvitz9Oi3kgBwa1BzHJNPY2F4UOv9BuwsxvvXAYfxDwNButIDpwzdcJ4QvF0S0zj +TaptH/tUrIDvByR5jpTv/izAcVrXJi5JXG8m+6loLNengE7+G5AZX8LJx+ghYNwLjTLst4UL4+3h fXIqr7MAV5gfOhn8nafA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gybKN-0001iZ-Jp; Tue, 26 Feb 2019 11:55:15 +0000 Received: from mail-eopbgr810085.outbound.protection.outlook.com ([40.107.81.85] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gybKK-0001hy-G8 for linux-arm-kernel@lists.infradead.org; Tue, 26 Feb 2019 11:55:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lXmBByT2ITPhifTbB1IOhuN0o9fSyb376cradi+eH7E=; b=gJPvUSRJEo2uba1UCHI/tfLnmIhsA01mC5TFtq3u8/4vYiqe3eij3LHlqMdSsWnPmqCHQ48bvbOgXtlkiR4/XmQsBsZa9XIN5oOU8HnTF0xr5oDv7SxK8/Ow5Q++PHb3ID7juFAUGucIf8gxbHcSu3nGZiwh1JlJ7kIl6Tt/l5c= Received: from BYAPR03MB4773.namprd03.prod.outlook.com (20.179.92.152) by BYAPR03MB4423.namprd03.prod.outlook.com (20.178.49.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.21; Tue, 26 Feb 2019 11:55:08 +0000 Received: from BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::1cca:e5f5:d31d:1e5c]) by BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::1cca:e5f5:d31d:1e5c%5]) with mapi id 15.20.1643.019; Tue, 26 Feb 2019 11:55:08 +0000 From: Jisheng Zhang To: Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Bjorn Helgaas , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH 0/5] PCI: dwc: support remove Thread-Topic: [PATCH 0/5] PCI: dwc: support remove Thread-Index: AQHUzcoe5DuwpST1E0iG0xVzcD6O7Q== Date: Tue, 26 Feb 2019 11:55:07 +0000 Message-ID: <20190226194806.34fc23b5@xhacker.debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [199.33.119.15] x-clientproxiedby: TYAPR03CA0002.apcprd03.prod.outlook.com (2603:1096:404:14::14) To BYAPR03MB4773.namprd03.prod.outlook.com (2603:10b6:a03:134::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a0b4f238-df29-46f5-1226-08d69be140a1 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BYAPR03MB4423; x-ms-traffictypediagnostic: BYAPR03MB4423: x-microsoft-exchange-diagnostics: =?us-ascii?Q?1; BYAPR03MB4423; 23:WdZw6KGMA5HsDBxUgNwbrI2pu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qaWuFfe/I6NkMjutH3dFbR+5vH5Z6LMFaxUGBCIrn47RTWDkggnMYxvAV5bG6aJB9V2qqihi7QSHLGIHUlCyTGodEYHVsM= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(39860400002)(366004)(396003)(199004)(189003)(81166006)(106356001)(50226002)(6506007)(81156014)(6116002)(386003)(102836004)(305945005)(26005)(7736002)(97736004)(99286004)(3846002)(8676002)(52116002)(68736007)(478600001)(2906002)(8936002)(72206003)(105586002)(110136005)(25786009)(316002)(66066001)(9686003)(6436002)(86362001)(486006)(2201001)(6512007)(2501003)(5660300002)(476003)(53936002)(256004)(6486002)(14454004)(186003)(4744005)(1076003)(71200400001)(71190400001)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR03MB4423; H:BYAPR03MB4773.namprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; received-spf: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: go3cg+ieuhGDAV4FsXJf9ot4SfZsdKYTVIRwI7qD1bm+2XJmEiSZ+HiaDoXg3/lhtxAYhwiEN1Ccrt4qrUu1BFLPglg4ldgkVHDNZEfvLaFIQoZ8ok4czjrcZmv5139r0CZQ4sAsoXrBclAf3NPw4SOOCYZlRUb435/uzlhKjQarg0k7Kl6IunAqmWz41DTpJRRubm7j95tFckt2Wzr7CmEy44UujvbimtA30Q1lxSSl90wgHXFLrO4MW6TrOqOP6ibUtSy9D/kCHGZHXgCnECe/p9QSyMooCf0RjPun8I2EynvTxPvuizC3dvr+6yeLMJ1lDXEJhai5KmCEDnOJTnpV2YG/dGYMt5Vef/EbXhuWAKndXv1ScyTQAh6mzKqG+TXv04zhj60vGw5Lic8bbHKTYam8JlWypsV8/I9oaJg= Content-ID: <616B80D5C3B5B245BFDD8FF17C06AA74@namprd03.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0b4f238-df29-46f5-1226-08d69be140a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 11:55:05.3083 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB4423 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190226_035512_543277_D6294C60 X-CRM114-Status: UNSURE ( 8.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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 | 38 ++++++++++--------- drivers/pci/controller/dwc/pcie-designware.h | 2 + 2 files changed, 23 insertions(+), 17 deletions(-)