Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1848261imu; Tue, 6 Nov 2018 05:24:00 -0800 (PST) X-Google-Smtp-Source: AJdET5csX9XSgLY6bQwTEwK9AKIlVNv+Aea2cEoEw07p3/e7B0HF+1h+vaJg5qy/MSgnXMu6RKo3 X-Received: by 2002:a17:902:d806:: with SMTP id a6-v6mr25306995plz.301.1541510640459; Tue, 06 Nov 2018 05:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541510640; cv=none; d=google.com; s=arc-20160816; b=RDfFr8TaOS7T2Ql2kibYJTxQLDHBCgZ3om0qKknGNy7ilUGEO2SsvCJM0VsM4lWJnE SMNCghcDCN7U/iNV+5db+4o5toLP5AmMetUyqBmweFvN2BERkzG6eSDHNuwXV+iBaRr9 fcuxUtY92Cb/qdg0FI4ADYjUZdrSHEHKJSkDYtOnBkQUi8JCpazs9fuDhtEVtqSXOTG8 g+uIC/H7duhkoChS1+HpnVTwU1WXVi+JKEAzm9Q7bmRySAdq8dbiJzCxzEWjDDjLIC6s rbu4/fGWCXopR+Pp7c9yse/0S8qc+YqH9hTZ+7y5pHb9lA+hoSxh6ShUqG/eygI5Bou/ 531g== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=mVgDtGVx6qdNsZHy7LpnTvW7755nFc/ty1myaR0GhoI=; b=OoDFn33gNOvAJJcrbDs6SrifLR3oAklpMEf2Fw/u3H2LEDGlOxtEMQ4jLbALL8KaF+ d7oAMZEL1Sovd4/i5LV4pvj72Sdu6vM/AdnpceY4SGIb40tnSgie+pTYieGdCi7dwErV BiwVGBSHC91q/HxzzTUHlfYEdanauPg3o7djqHYk8g2gzyjrcL+8q9dqYL6d1OaG72P9 riuCComknk8QXoL0+nwjEIUiMGwdZkZ4BQ0WIA43ESTbVpVgl8dqSKDaqGX00yRy3eIU ZCTC1pL18dAdF1Io+aEHyd/1Xbmhxy1tEjCgdVbVVwEyPUKk4TKjfx2+Gnffen0QqQ61 +Ljg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=fo172d22; 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 30-v6si45593841pgw.208.2018.11.06.05.23.44; Tue, 06 Nov 2018 05:24:00 -0800 (PST) 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=fo172d22; 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 S2388562AbeKFWqn (ORCPT + 99 others); Tue, 6 Nov 2018 17:46:43 -0500 Received: from mail-db5eur01on0082.outbound.protection.outlook.com ([104.47.2.82]:27088 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388180AbeKFWql (ORCPT ); Tue, 6 Nov 2018 17:46:41 -0500 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=mVgDtGVx6qdNsZHy7LpnTvW7755nFc/ty1myaR0GhoI=; b=fo172d22SGx2tyGKTbEsK81aRiGvhgqJgrTKLPgMLpVYUT8Y7gpfJ+bf120QTnUEu0P66CLwWyPv7dUdFMnF99qHmFsoNzxBC6NVC9IHgDCh4HE1eZFNIN4CFQo8jKg2hVLquLGxsjmI8zNM9yj8WF9Lfxm1CXpZxXr4yMoKtME= Received: from DB5PR04MB1221.eurprd04.prod.outlook.com (10.162.155.27) by DB5PR04MB2119.eurprd04.prod.outlook.com (10.166.172.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.28; Tue, 6 Nov 2018 13:21:25 +0000 Received: from DB5PR04MB1221.eurprd04.prod.outlook.com ([fe80::6c36:f4cb:26c2:e8cb]) by DB5PR04MB1221.eurprd04.prod.outlook.com ([fe80::6c36:f4cb:26c2:e8cb%2]) with mapi id 15.20.1273.035; Tue, 6 Nov 2018 13:21:25 +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" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" Subject: [PATCH 22/23] PCI: mobiveil: add PCIe RC driver for NXP LX series SoCs Thread-Topic: [PATCH 22/23] PCI: mobiveil: add PCIe RC driver for NXP LX series SoCs Thread-Index: AQHUddOeWH2W17CrSk6lzc/1cOUlfw== Date: Tue, 6 Nov 2018 13:21:25 +0000 Message-ID: <20181106131807.29951-23-Zhiqiang.Hou@nxp.com> References: <20181106131807.29951-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20181106131807.29951-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: HK0PR03CA0008.apcprd03.prod.outlook.com (2603:1096:203:2e::20) To DB5PR04MB1221.eurprd04.prod.outlook.com (2a01:111:e400:51c2::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB5PR04MB2119;6:ZocHzOUaHXh2dRmQaIQ8XHT5+YXfvoJWLP/dEpgQ91jGwquse7wOEAFSBBHb3pzfkcRGOM9Vw+yqyTOGs7ckjGjoG6pESe/RulM1cNVYtAjrI2+KwUYT4Fy+PHB11cpc+Kprr5F7U32tIlmR4YhzvOWc3sHV4pXd4RO7oCYEAwLwe3jhE3KFT0FjlDXASrPgbRUmgLXvq+NbKXn/CZqFSTU3Iap6amYEBi8d442cSwNVO11dDmyf6CraJM1OnLaJNEhg0RoqwdAW3ICRshJCxTaH8ufcquFyRIG2n85P4UIvmTxBWLPHV6X00J/TysShQV2V0PkNb7hcBTNqNiLYnp7HcjTr4Ppl6QQLWqtHkIzEQBcCM1q1v4/c6+Q5nBgvXbZwurnsGLEHEZtWQ80mlsz2neoMJPFfLGG0IKMkrEh2k+xLjJzQDQR5AzdUZX6FCQfKWDYlUmbrcRK8XlyfcA==;5:PJv4XnJ+L+jOV+xLkRvCNHe4QFl8NdeJ2QMSyWr0jLvR0+eyHlml2g2XBcfTd1SWYoUGGFORYiOmEFWZJjDY/caGvmTDmaGSuY+/BZ87kaOW78Msx3NM0b6ZoB6eelVsYeZ5tXifGLlhLnOOQwgSYU3eQnf+5glut9yr39YaQ7I=;7:qFlD4peB/dSF62vaKMwlpLq3YMfWYf8UpW6qPHw6slNQZHJozcj3T/Mz/KnHqgddjMirtdgvpNwboOq9GtnnMI2UtFEDszEwAozAmYf3wBiuc8dIsc1jZAD5KQ/NhKTCY6XL+t2E8QKjIRxTHF+A1Q== x-ms-office365-filtering-correlation-id: 76891e7d-26af-4977-740f-08d643eac04c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB5PR04MB2119; x-ms-traffictypediagnostic: DB5PR04MB2119: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:DB5PR04MB2119;BCL:0;PCL:0;RULEID:;SRVR:DB5PR04MB2119; x-forefront-prvs: 0848C1A6AA x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6029001)(346002)(376002)(396003)(136003)(39860400002)(366004)(189003)(199004)(81156014)(99286004)(2201001)(8936002)(575784001)(86362001)(6486002)(68736007)(6436002)(5660300001)(478600001)(53936002)(6512007)(4326008)(25786009)(36756003)(14454004)(54906003)(186003)(316002)(110136005)(2906002)(2900100001)(1076002)(3846002)(6116002)(81166006)(8676002)(7416002)(256004)(14444005)(446003)(11346002)(486006)(476003)(2616005)(7736002)(305945005)(71190400001)(71200400001)(66066001)(97736004)(76176011)(52116002)(102836004)(106356001)(26005)(2501003)(105586002)(386003)(6506007)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR04MB2119;H:DB5PR04MB1221.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-microsoft-antispam-message-info: FV08fU5/3Qm9eSVUpY/CeEaQgsDdlNNgwE3R+4QEwFOyqBqWfK4/nSKzfsCTtVqKv9WV7UtUb7bRqND2ZH8n7bro2rdVXsEEISim3lX9wzMmn0LEgEOnw/80ZjG0oaD1eUyNcTJBdmirip0K3JbuL8/p5KbU/sMM901swW1eD0UeWP9W0xXJmMph8CDi2Skqtfei7NIWwsh8NtMXMo51MGYmBZlGt+d2psj8jOhb7eUg+R+bnwd88zl21qXLkCD7mOKRANpv3vHcFSkyoP3zZ6GKqFM0q5rJQO/tplr0UKIoptz91qMlG7w00p7ZRmiVxNuMQEDgLDXIJ3WBayu8YeAJxFvf/YgWq/W45XT3NZg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 76891e7d-26af-4977-740f-08d643eac04c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2018 13:21:25.2022 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR04MB2119 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KVGhpcyBQQ0llIGNv bnRyb2xsZXIgaXMgYmFzZWQgb24gdGhlIE1vYml2ZWlsIEdQRVggSVAsIHdoaWNoIGlzDQpjb21w YXRpYmxlIHdpdGggdGhlIFBDSSBFeHByZXNz4oSiIEJhc2UgU3BlY2lmaWNhdGlvbiwgUmV2aXNp b24gNC4wLg0KDQpTaWduZWQtb2ZmLWJ5OiBIb3UgWmhpcWlhbmcgPFpoaXFpYW5nLkhvdUBueHAu Y29tPg0KLS0tDQogZHJpdmVycy9wY2kvY29udHJvbGxl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