Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp926619imc; Mon, 11 Mar 2019 02:34:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxstScBejVl4UW7MG2kFqaVMY+039/walvfZj1YH6UgCO3inJppdKTihhGZMv6DaDEXXn4v X-Received: by 2002:a17:902:6b4b:: with SMTP id g11mr32339406plt.92.1552296883766; Mon, 11 Mar 2019 02:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552296883; cv=none; d=google.com; s=arc-20160816; b=UnRnM+47fRpf7yFSuVCtlKLUAs/aeno8KT3v6K/dH1wghDJp1b1pMu4PPzwhXZsBeI T7e7GQ/J8SH1pwttZPlkgHs+DqjR9+b2DWWwbmFoDizpG2MkbfF0e6W6wvaMNnIOxKbh s0habv0q4tixU3q7S4vtiRoJL1WMXoQ8jKVAkX4yLAbuIEM7z6h5dgZ2zj33FbQCqJjf 8IDp+n/29JC53/6iLYsAQpbE7HeISk0Ych2/CwW2vRkIDoNBT4pC5y49ECV/A8aF5fqx R3EQTQ0szYbdOle81MfT0j9tSwldNbufo02gjiOzFocXcQ75pNwYlSwEu4gZs47LxzJx HVDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=KlvgI4vjWrXN3wTH/unQCDqQ0Jb+0CLzhWG3W/Se6ws=; b=KAHfilGv1zRqxv0GuaWS/qZJcTrkOIEPHwOYVJD0SM3A/LIUkz94VvaBg09EkN4Nj2 6T7YOP6cXnsHxiZiVYOIJQutffNHdI9eIGh4/OpgzNnIlU0sNbBzqDqEVSDlTZF6edDr L8jUYUpCr/7frn0bmPtQMvqfsGSwo/LCIv3iwuFWe6HfBdVxSwL2bxm8fa9kX0pCEMbx /Qq1/YxLPPT73Wd4pa//dEVqQVV0Gz9zrV16bBShtmP4QPgt/Bl+Z2zLhptwWdVRJGQI pQK25HYtO0eNlmwTm63TRKUIhDp+sbirkz3y7bLEX7ajaey5q3GC06iUWXuyV5Txg1y5 SZqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="P0Snu7l/"; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si4482809pgh.577.2019.03.11.02.34.28; Mon, 11 Mar 2019 02:34:43 -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=@nxp.com header.s=selector1 header.b="P0Snu7l/"; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727337AbfCKJd1 (ORCPT + 99 others); Mon, 11 Mar 2019 05:33:27 -0400 Received: from mail-eopbgr150052.outbound.protection.outlook.com ([40.107.15.52]:49029 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727142AbfCKJdZ (ORCPT ); Mon, 11 Mar 2019 05:33:25 -0400 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=KlvgI4vjWrXN3wTH/unQCDqQ0Jb+0CLzhWG3W/Se6ws=; b=P0Snu7l/N9HonZVxglDivCtR2c9FfhkNik83j0ESmU2IytVegHktw1u0xQ7WwDNP/z3GW9KJSoPDWN2fkcz5OgrlJKS/0Jh38wZc0DWw4+xXc0JnGkjNSVN+ffY2TKopyPNxQ8PXsOe0Mi4Thg/Xjg4Jcgg3PZBM6mymv0dVtLA= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB4168.eurprd04.prod.outlook.com (52.135.168.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.20; Mon, 11 Mar 2019 09:33:16 +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:33:16 +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" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" Subject: [PATCHv4 24/28] PCI: mobiveil: add PCIe Gen4 RC driver for NXP Layerscape SoCs Thread-Topic: [PATCHv4 24/28] PCI: mobiveil: add PCIe Gen4 RC driver for NXP Layerscape SoCs Thread-Index: AQHU1+10ahUatRnHHkyEO3RvMSNYKQ== Date: Mon, 11 Mar 2019 09:33:16 +0000 Message-ID: <20190311093130.7209-25-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: 6fb97a9c-f462-43c0-327e-08d6a604962c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4168; x-ms-traffictypediagnostic: AM6PR04MB4168: x-microsoft-exchange-diagnostics: =?utf-8?B?MTtBTTZQUjA0TUI0MTY4OzIzOkE2UGJUdHgrTm5EMkluNFAyQ3ZRMGZzWUVh?= =?utf-8?B?eGJRK1dvR290MEx3ei90VW92TDNVeURzOXFZZUYyL0oxODBmNHhDSlUzT3lL?= =?utf-8?B?YUR4dW94djF0MWlXakFSNXVuWjVHYkZZQXVFT3NZUkhGaTViSTNPbkJrMnBB?= =?utf-8?B?WURwejJtakgwbWt2cDZsdkpzSmVmdmlwWkQ4Rk8wTENmLytaTHlIQlAxaGVJ?= =?utf-8?B?bmdpaFVqQzZUbFI1M0FNR0NDNDlXTjJsUTdVdzRBMmdmQjFGZk9kMDhrcVJY?= =?utf-8?B?eE1QSW9yMUFMU1p4aEZteHZrdGY4T2VtYUYvaGxyWkZmQ080WXR5cHJYQUlm?= =?utf-8?B?SThZVVBVZ00zdWcrTHlzQnYyRE4vWW5jeUcwd3RwY1lQaytrOGIvdDltUzhO?= =?utf-8?B?Yy9zQWZ3ZWZtQTJuaTEwZXZCdEFXbmFJdlRLREtkeURSRjh0ZUNVdHZXekNQ?= =?utf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54dGhsOVB2bFA4cWp6?= =?utf-8?B?MjJ3aVRWM1Q0WElGMDlqU3FPQzRXbmZsdjhvb1R5ZjhHVnd4azdYT2dGdTVy?= =?utf-8?B?MFlMVXd2bFpxNnFQc3ZVQStESW1pVzNvRFNuTTlBL2llaTRrSVhVWUhPYXhZ?= =?utf-8?B?OEpNSEh6ajR2S3YwbmFGNy9VV2R5SEE3SE5XSGwrdzJMdFRkR3F0U0thcmY3?= =?utf-8?B?KzV0cHRNZXp0anNWeEt4ZmgzeUVUSXBHZXZXSVlwbzJ5TkxXRmx6dDdPdjVi?= =?utf-8?B?aUU5OHZPelRWZ3ZQbFB1OVY3VDY1R2hZdEp3dTZyN3gwT05mZDlCZnd4QXU4?= =?utf-8?B?Y0lWUk9INFRpQ2drb21ZdVFGWXNZRmJJcTV1dDY1VUJwQkZtMVEvWTREY0th?= =?utf-8?B?UTQyRkUwTkZ3dmRCR29keEFvRGdLRVBncmJMUkhHMDVhTUkvNmdwYnF6Mm83?= =?utf-8?Q?dz6FO+pQEHvx/?= x-microsoft-antispam-prvs: x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6029001)(39860400002)(396003)(136003)(376002)(366004)(346002)(189003)(199004)(106356001)(476003)(446003)(6512007)(105586002)(7736002)(486006)(11346002)(14444005)(305945005)(256004)(6486002)(2906002)(25786009)(54906003)(6116002)(110136005)(3846002)(71200400001)(2616005)(2201001)(86362001)(4326008)(71190400001)(68736007)(102836004)(5660300002)(81156014)(36756003)(2501003)(7416002)(6506007)(386003)(6436002)(97736004)(53936002)(316002)(186003)(26005)(76176011)(14454004)(8676002)(8936002)(52116002)(478600001)(1076003)(99286004)(50226002)(66066001)(81166006)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4168;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: pDqRgHRUrvI+w9HtjErGdG2H3vowkoxuZha/OVzLMPv9NvfeT8P+2AAxsxkYTCCx1CD7XeYNifWEUn1Aji7PIQn2hI0a8gAtKZIpkRKA70WI7qCL8/HOhF4ttkZueAm6YdbiRc2AuxNwd22gu4V/vCQsLyyWyFsPYHehADpz7Tn3XhojY3ymaw7dhBE4kmrZ7R1II/j2UYdO4OTI1aiHpUshn4JWYZJeL8YdxOElfTdnStC+3ss9IGKQJyGWALhLpQV3U4jQQAIXSS4T9Y9m39Qh8LCifLvWZMXttdKItL9E8tXtMp2xn/WwqbrS8Kd18F7GNMm45NC3EqVMtDIoJeF6R7R5m5XOjmCfaOBl3W8N0z77YiWKKptpo6y+fJcE8I42auU1w9/sn8pAdeQjmUrBKBvXqeWuN3yN4Ng+e3k= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fb97a9c-f462-43c0-327e-08d6a604962c X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:33:16.3433 (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: AM6PR04MB4168 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KVGhpcyBQQ0llIGNv bnRyb2xsZXIgaXMgYmFzZWQgb24gdGhlIE1vYml2ZWlsIEdQRVggSVAsIHdoaWNoIGlzDQpjb21w YXRpYmxlIHdpdGggdGhlIFBDSSBFeHByZXNz4oSiIEJhc2UgU3BlY2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