From patchwork Fri Apr 12 08:35:11 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: 10897427 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 1775C1669 for ; Fri, 12 Apr 2019 08:35:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E481828E1D for ; Fri, 12 Apr 2019 08:35:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D83D928E64; Fri, 12 Apr 2019 08:35:26 +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=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 4744028E1D for ; Fri, 12 Apr 2019 08:35:23 +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: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:In-Reply-To:References: List-Owner; bh=l8OTSDJSz7umCMFY3Li6JZgaSV7GurpfbxZTEhuMHPs=; b=S2onBRA+Q6rvQo C2+im1bC55u8z+MPTcgpdzysDd/jnGPyjCBDhJZDSwvE7BI+JeULpqGGZlnVaU/eSxjOYjNNZOW3J 8eMeAemVBGzTfwnFy1Msrh7xwQNF5C8p/Zbdj0Fq2niIBRxlIMH/4DnZXoPFK9aQZVuVkS6L1wk7z 6VvPVz6cRIqv7AuJTE20Gj4BRYx0d0F07y09IwwM916S0pZ96eYFNGFRz4ysnUNRR6rnWlaf4ZXG4 WPlJ98cwcuaTSR+9y2/j/PGs0Wk4jDBsjp3lOqEhyUkg17InbgiaYWrOizG7qSlVIMkKO3MdmhjrW 4v1bJ6S/eg4jOf265Grw==; 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 1hEreZ-0004iY-8t; Fri, 12 Apr 2019 08:35:19 +0000 Received: from mail-eopbgr00066.outbound.protection.outlook.com ([40.107.0.66] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEreV-0004i4-QG for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2019 08:35:17 +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=dtU0Ao/R3IT59N4ZD+ZkO4wI3y9Rn5Vxznvh8GVIbnk=; b=p0PJsoWCYXtF6j0SngAUiROSsHqNXg7JunDlkDAv0y+aJjOf2HkkR8HUHp1Pt+j9LB44oVjLIYIJU2/qDyzyGc1/6mV0V54GMQV6NQbT0Wy9xlp9RCLsyqwa0YaybBfOrlY/pdQU5s21MeGKC3wywvPK1BEHsyyIbqWaatMXuGM= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB5926.eurprd04.prod.outlook.com (20.179.3.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Fri, 12 Apr 2019 08:35:11 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::f9db:ed86:614e:460]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::f9db:ed86:614e:460%4]) with mapi id 15.20.1792.009; Fri, 12 Apr 2019 08:35:11 +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: [PATCHv5 00/20] PCI: mobiveil: fixes for Mobiveil PCIe Host Bridge IP driver Thread-Topic: [PATCHv5 00/20] PCI: mobiveil: fixes for Mobiveil PCIe Host Bridge IP driver Thread-Index: AQHU8Qqk94Z0xb1jhECZwFnfMTeEPA== Date: Fri, 12 Apr 2019 08:35:11 +0000 Message-ID: <20190412083635.33626-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: HK2PR06CA0011.apcprd06.prod.outlook.com (2603:1096:202:2e::23) 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: 50bb1804-5f17-441f-d028-08d6bf21c66b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM6PR04MB5926; x-ms-traffictypediagnostic: AM6PR04MB5926: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(366004)(396003)(39860400002)(189003)(199004)(478600001)(36756003)(305945005)(52116002)(6486002)(966005)(110136005)(186003)(7416002)(3846002)(7736002)(6436002)(50226002)(54906003)(316002)(6512007)(6116002)(25786009)(1076003)(26005)(86362001)(105586002)(8676002)(81166006)(386003)(106356001)(14454004)(2501003)(6306002)(6506007)(81156014)(5660300002)(102836004)(256004)(53936002)(71200400001)(71190400001)(2906002)(68736007)(476003)(66066001)(99286004)(2616005)(97736004)(4326008)(486006)(8936002)(2201001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB5926; H:AM6PR04MB5781.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: yktwvJcevo36nE4rpbJVf0EX2+luD4H1x7/Po/CZXTwaXIF2gnYoYfN4+ybKx8fdi2QbM+fhp3XApEpiz3zxIsqzCJeB+KFXeul4qj7MeOcd48EX8sKRjP+h6WhLxC/NtDuaFtndCelOnLaaGHYu5t/SrUeFJ6O11d1EIroO2KcNstS36Z5AoX5s9JmrK5Hl9tNRC+a955voLqxOGZo+PyjnLbrmH6LSuZ5rN/2icMKSJ+rsbL3+OIVI16QvjQg8Q2dxwrZY4F+cvihHR92BVb7+qsCmTxnh/9WUB8Gg0VPkdylq7MPX72U60YKc7lQmoYfbb9QbzgB6BYRsCr2ipNNbc3yhVUN5u5H/Ymhm/s7p/Bi05M69JVYK/b04+uwsioWYovi7Y4X9hHkliMgRSw51zM4N0Qac3blbWGgksS4= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50bb1804-5f17-441f-d028-08d6bf21c66b X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 08:35:11.1160 (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: AM6PR04MB5926 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190412_013515_855362_66485B24 X-CRM114-Status: UNSURE ( 9.36 ) 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: , 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 This patch set is to add fixes for Mobiveil PCIe Host driver. And these patches are splited from the thread below: http://patchwork.ozlabs.org/project/linux-pci/list/?series=96417 Hou Zhiqiang (20): PCI: mobiveil: Unify register accessors PCI: mobiveil: Format the code without functionality change PCI: mobiveil: Correct the returned error number PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI PCI: mobiveil: Correct PCI base address in MEM/IO outbound windows PCI: mobiveil: Replace the resource list iteration function PCI: mobiveil: Use WIN_NUM_0 explicitly for CFG outbound window PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions PCI: mobiveil: Correct inbound/outbound window setup routines PCI: mobiveil: Fix the INTx process errors PCI: mobiveil: Correct the fixup of Class Code field PCI: mobiveil: Move the link up waiting out of mobiveil_host_init() PCI: mobiveil: Move IRQ chained handler setup out of DT parse PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers PCI: mobiveil: Fix the checking of valid device PCI: mobiveil: Add link up condition check PCI: mobiveil: Complete initialization of host even if no PCIe link PCI: mobiveil: Disable IB and OB windows set by bootloader PCI: mobiveil: Add 8-bit and 16-bit register accessors dt-bindings: PCI: mobiveil: Change gpio_slave and apb_csr to optional .../devicetree/bindings/pci/mobiveil-pcie.txt | 2 + drivers/pci/controller/pcie-mobiveil.c | 578 +++++++++++------- 2 files changed, 368 insertions(+), 212 deletions(-)