From patchwork Mon Mar 11 09:31:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 10847233 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 60A69139A for ; Mon, 11 Mar 2019 10:31:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4817628F17 for ; Mon, 11 Mar 2019 10:31:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 457B528F3F; Mon, 11 Mar 2019 10:31:35 +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 BF8FB28F17 for ; Mon, 11 Mar 2019 10:31:34 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=roeqXrn2uf9Lec5VRhnIZ+WFX+swvbIdnpKv0vVmUSQ=; b=ZCI7l6kh1j0GPh b5gYVJ3Cp9amwk2zb1eQqy1CpwwrISV01bav1kiwgOkZru3n4f/slYl4qS4Cv7/xPPouSpidHcPib Zl1h4v54LBliBjAITy0uz56rEdYrlwiLYA3rH8s+6fuvhALn3S8/c46362YzwwgcdZc3mKOmR6Qmi MdL0DZM9Gs1pBzGX22ls8A5I0ofm6zyPTB2Ovvk/f9ItYEpNsYXLEE68dSrrjl6qO34DTiys1ZRX3 4V+caxvmcQe1t8lK42lP2LrtxsNkK5CBFlxnRgDDgMxOP5b2Y/qEbA84ZuU6yw3nsgkObwTGERaZG tcCXux42JGZ5S6Tw1bog==; 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 1h3IDT-00085U-US; Mon, 11 Mar 2019 10:31:31 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3ID0-0007Mk-9v for linux-arm-kernel@bombadil.infradead.org; Mon, 11 Mar 2019 10:31:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=h98GqNjPia0Xp1b4knoYmw7wXmiPPTfaTDiNOdqSt84=; b=aIImBaVfmPbjnbAaJawbT5cpej DThu9mC5JPiT2UM3C9MnkBbaz18OjJ1t9VSDEK91wOV3LXVG7yCqBBGvaY6KF3Dc4Ooh1LHMPGPBy 56t72xkmUEq4RxVTj+45tiPGT5cZj71rji4lcKUxFyfmJyITnCV4lJpaYvhl9N1BOQldeT888jfab Ft24csASK6ERZeOU9H3G3Yz/bsBy5XC2s8IT3nl98aLjB4FNZxn8UduVfKh8xlbNPSWqL1kqcbAsY WiDTlANGuhyzj7YqP3BOSE7Zt8GwHr0hmNHSsPbJXTHQG/3IXpznkxAhhlAXlXf4WCGhyIB5QLuFv SZdBg2Cw==; Received: from mail-eopbgr70054.outbound.protection.outlook.com ([40.107.7.54] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3HI0-0008Hu-L4 for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 09:32:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h98GqNjPia0Xp1b4knoYmw7wXmiPPTfaTDiNOdqSt84=; b=rIKJ8GFXovpkVwEAObHqb2a1CRmyTsryhbIgqyoUCJbeqqS8NUsFV+BMyx70o3iaVjh8OFSzSO+skQUaLrUNBv3A+BMr8d17moLqHBh2v041t30Mnx1pw+L7HpvRfGEQzEWinakrdX8F0yr9busSkZ2fScm4PdkcbFuVtGSgGVQ= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB6566.eurprd04.prod.outlook.com (20.179.246.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.16; Mon, 11 Mar 2019 09:31:39 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::30cc:e034:1f7a:2cc7]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::30cc:e034:1f7a:2cc7%2]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 09:31:39 +0000 From: "Z.q. Hou" To: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" Subject: [PATCHv4 13/28] PCI: mobiveil: move irq chained handler setup out of DT parse Thread-Topic: [PATCHv4 13/28] PCI: mobiveil: move irq chained handler setup out of DT parse Thread-Index: AQHU1+06/RSu/VKYqEqSsuWhKkfXmg== Date: Mon, 11 Mar 2019 09:31:39 +0000 Message-ID: <20190311093130.7209-14-Zhiqiang.Hou@nxp.com> References: <20190311093130.7209-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190311093130.7209-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR03CA0015.apcprd03.prod.outlook.com (2603:1096:203:2e::27) To AM6PR04MB5781.eurprd04.prod.outlook.com (2603:10a6:20b:ad::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 50d783ff-2ff3-4f15-a954-08d6a6045cf6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB6566; x-ms-traffictypediagnostic: AM6PR04MB6566: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM6PR04MB6566; 23:vVC961mp7jwWISXcHyi3VCVMgHJjlVu5Mk0lVvJ?= =?iso-8859-1?q?ZhwZhu1Q9rqf/IE?= =?iso-8859-1?q?5dGMnQ2OdE/rZQ9q+PVcAOhdOI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SF/ESm7FXEqR?= =?iso-8859-1?q?ZnKCJ1CCl4KZ6nyKmAEmO80kod/6A28KzYjzc0MUU/vVZcVLcgLuTVB1q9gI?= =?iso-8859-1?q?mrb6Ad9L3YrHnFduzWJJBOLWkFgO4H6CjGxDURfZCa29GrvpW/xF4KIFUG85?= =?iso-8859-1?q?2C/GGt/gop/NjawlYWuabCkPapLgXKfw7O1XWCSR8Qn0FpiIAcSsmOYCrBBX?= =?iso-8859-1?q?umGkU7NjKreccMhZbiZpht89ZR9Vj9pFN/DxlYt7QP2WDmunZv83LtutG5/y?= =?iso-8859-1?q?Jt4+KrP9sG0H9Izqwi3LU2w6V0Nle9iqXT/+lOj1RsOxZOl+CEJ8AeuSkkRO?= =?iso-8859-1?q?nB21OlQd69hlYgxX14+W3mdK0yq/m3OKfMa9USd/RqNQ33rLXZnih7VLhH5J?= =?iso-8859-1?q?nguVNfpx2tuhgKGkxb5KfjO/KXFLxt?= x-microsoft-antispam-prvs: x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39860400002)(346002)(376002)(136003)(199004)(189003)(6436002)(478600001)(25786009)(99286004)(11346002)(2616005)(476003)(76176011)(3846002)(6116002)(81166006)(81156014)(486006)(71190400001)(71200400001)(2906002)(8676002)(2201001)(5660300002)(97736004)(6486002)(446003)(7416002)(4744005)(2501003)(86362001)(14444005)(256004)(14454004)(316002)(68736007)(26005)(8936002)(6512007)(53936002)(1076003)(66066001)(386003)(54906003)(50226002)(110136005)(102836004)(6506007)(36756003)(105586002)(4326008)(106356001)(186003)(305945005)(52116002)(7736002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB6566; H:AM6PR04MB5781.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Sa2KSAo4d5AZznuPv8V9PwBEdGH3paJinapbshFRL8msw5dwsk3VKQSuzKb5g2qF2k/TKMmJa8eR5Fcg0Y+vTKro9u0fgumdz6eUHGsTVomU6ec4aCpGVOkfq+tASECdmLNAN0nz6Ufi4w1lOSKCkyW6jiQ85XZlDduoj8ZUKulA9BxYKjO8QssL4ae4oEfAfbyl5voU6s+v2Bdnz7ED3lBRYgGCLM/XLwWyRfTSRoiHw68vxa2yAlzc4pm+ihM1OYCItd5owdmugTEVpBXRtUXJiT6HRgMNrqxISVkGyvVWywBdgrERMLrr5hZQznD8+qXha4ZAylL+PMxf3Gj2QLCTiKsR1H0jt8yGuAqjYmK2+YtmZfifH+HGXG3wiH0u+RZOPSWhX1dmZRRh6/OscXE9pqCqYLlbqsgJDuCb8l0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50d783ff-2ff3-4f15-a954-08d6a6045cf6 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:31:39.3846 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6566 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_053208_719165_E6D622FB X-CRM114-Status: GOOD ( 11.04 ) 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: , Cc: "M.h. Lian" , "Z.q. Hou" , Xiaowei Bao , Mingkai Hu 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 From: Hou Zhiqiang Move irq_set_chained_handler_and_data() out of DT parse function. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V4: - no change drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index c2848c22b466..db7ecb021c63 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -460,8 +460,6 @@ static int mobiveil_pcie_parse_dt(struct mobiveil_pcie *pcie) return -ENODEV; } - irq_set_chained_handler_and_data(pcie->irq, mobiveil_pcie_isr, pcie); - return 0; } @@ -902,6 +900,8 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) goto error; } + irq_set_chained_handler_and_data(pcie->irq, mobiveil_pcie_isr, pcie); + ret = devm_request_pci_bus_resources(dev, &pcie->resources); if (ret) goto error;