Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp531085ima; Fri, 26 Oct 2018 02:19:37 -0700 (PDT) X-Google-Smtp-Source: AJdET5e98AOvkhvHCPARDRE53DqMiLd5A0gMgvcwixIWANeTdAHvFF7DOasXnjnUX1faxF5DcAqM X-Received: by 2002:a63:e302:: with SMTP id f2mr2764412pgh.320.1540545577334; Fri, 26 Oct 2018 02:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540545577; cv=none; d=google.com; s=arc-20160816; b=UdtCwa2iCPRfiw//mz0N0x+H9RWvKe62vZtX/h7H8hN1L1G90pCtlUUfH5zqUpGhyF bz+sO9U0YPGtmJ2mxlUo1jth/CP/yY4V+0lxrpjouJP8Nv/sg7+ZMTyQb3vlecdrTWRm tUQUq2inweaJ955P5hQIyZGuevKKuAsXjqWJpc6sq9kPfsoEN/y+CQwJMJ4Rn3Z/vDD5 I1hvDdlIu3uVYkxbNz8U0CkJ8XXyfBphrbS/jQ2howwChNzcPmvqzD45TQMQdw/SZsLx AO45mWzreUCy4qN2QUvMBmvc0bmxbCGuA2ouuYg3Yq0/4Qkw1olBKoCA+w3gjy8Q2/hH zV1A== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=Ah98zx1WW62nHSWcA3mbrpIuPlqZEBywPNWfR2BF67U=; b=vpX6NaSzPgaZBndHmO+OFB3/pBAspy0/zb/e01r553F4LUSbCcR8+nfGGG/ErmHRy5 rdisl81jJViNocyj2v6zViPAnOcBKqtLTVZMu0emAWShbL23f/k1PT2nq2KznDq8QGz0 IDxgUCw1V3k1bJDAAvxK9+EIeKzEXxywxkhwFi+uCKsql2fROTfRvpnnZckdxnFM8mH3 IzSOhuwjjCms/w5S7Sj4u4HXWcdx4ZlmnIZmW0TgDdOl/6pNo7qYZDImihr28QjUpqji Q+XQ/PvF2yc1ylt0H5kru1B/7g4nlbIWCUi1uP1+XCPifPRb5wWTPGqSDozp8KoTZZZq 4+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=n2hHyLuu; 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 j5-v6si11165844pgk.85.2018.10.26.02.19.20; Fri, 26 Oct 2018 02:19:37 -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=n2hHyLuu; 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 S1726511AbeJZRzF (ORCPT + 99 others); Fri, 26 Oct 2018 13:55:05 -0400 Received: from mail-eopbgr40056.outbound.protection.outlook.com ([40.107.4.56]:35455 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726014AbeJZRzF (ORCPT ); Fri, 26 Oct 2018 13:55:05 -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=Ah98zx1WW62nHSWcA3mbrpIuPlqZEBywPNWfR2BF67U=; b=n2hHyLuubLBhNhh+Kk9cXGL/wD7y/KlccAymujYCbu4Sk4Ss/Ps6S7k64233TURil/LmCZv+faAanQ0npYPffZgkDqyJXNnxtBI283gyK2v0muQ9SNtg3BZlWOyv/Ely4rSvwmyV6wBhUjqiwu4VYo2AhoYq3N4iAhWA+0IxYAs= Received: from HE1PR04MB1497.eurprd04.prod.outlook.com (10.163.176.23) by HE1PR04MB1564.eurprd04.prod.outlook.com (10.164.48.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Fri, 26 Oct 2018 09:18:38 +0000 Received: from HE1PR04MB1497.eurprd04.prod.outlook.com ([fe80::70d8:2ebf:92cf:5aae]) by HE1PR04MB1497.eurprd04.prod.outlook.com ([fe80::70d8:2ebf:92cf:5aae%2]) with mapi id 15.20.1250.032; Fri, 26 Oct 2018 09:18:38 +0000 From: Xiaowei Bao To: Kishon Vijay Abraham I , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "arnd@arndb.de" , "gregkh@linuxfoundation.org" , "M.h. Lian" , Mingkai Hu , Roy Zang , "kstewart@linuxfoundation.org" , "cyrille.pitchen@free-electrons.com" , "pombredanne@nexb.com" , "shawn.lin@rock-chips.com" , "niklas.cassel@axis.com" , "linux-pci@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linuxppc-dev@lists.ozlabs.org" CC: Jiafei Pan Subject: RE: [PATCH 5/6] pci: layerscape: Add the EP mode support. Thread-Topic: [PATCH 5/6] pci: layerscape: Add the EP mode support. Thread-Index: AQHUbFPBC6aEqg5WuUCTs5ZVrmqyDqUxAPsAgAA8nBA= Date: Fri, 26 Oct 2018 09:18:38 +0000 Message-ID: References: <20181025110901.5680-1-xiaowei.bao@nxp.com> <20181025110901.5680-5-xiaowei.bao@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xiaowei.bao@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR04MB1564;6:3qGXR2WKQhUwSnhN4EVaB9KdiJyvlmCIyLjijUGHI9tqWidSTPKzDvD2wiNby8Uu2NMARLFKoMWpSyBYi9aNhWFHUN3xPSp6f1tyF9f9Q9wQGrRxrdQpZp9UWW1fGSKP+gxFKAhaEv/qefT8PqPg088NZ9BiAUC/lZRQm4YkoVwb3fGfEJIz4e36vCdcuGKZzjihXRipSTBnnfoCwpECh9bGy7lDOKYDhywDnsyiUo+ewCHo36muoI5xa9k4QXmQnWkcXF54YZnfrIv3Jjp/XEV4sJa9hgy1nb7wNK1QXXz0mk5KX+oSGM5x+EX+gSwj6mDb6hY6Q7ltJkQVqWBiiv1TsKIHXKXsHSJ7li9txL7Q5dU8POaBlLIVpK36aSCUeCWYw7hEqCjrbGR+pQpHhEkoMMioo+P0DbZ0+p2WBJgx2N/fC4lh0P9eSRmHr1xKGikWY8z9X+CYcn3Lnfg80w==;5:3VM0nbqm2Se5aKoiDTEsz1YnYa5WqbEoZTxH2oJmx5+Areyf41iZJ5NPpKJXvQfQh9RD4a9otJzJHuZUKSiMfrL7o4OFurWdI2TCrDKmGM3yEa3cHeQPgNVCMNhBflcCNzRiJdQhx1XUShkePfW6jvv8+KibdDebM4t+vm6DqeQ=;7:4O7GoUTl5TFGa5BnrykUS647RaW6qSpcTLm1x7dO1/uRvact2vLiAbWgNYsUHw1y99QwEB4gC/Hz4lyB1ZGJ+Hfu2ctdBl3WEnPDjnPHxDp7yxW0AmyAuJQIssXAJWbZCWCzUWyt1yvXK2YizcjyESB+wIsoS+VRRXWlk+PIxw5NV7bzOb7mZeSFAAV4+Cou9iX+BnaVKxfeY+RmhBp95roDLroQEM0lFr92M0Oh7akhSsxWFMDN+zcslB/NovyL x-ms-office365-filtering-correlation-id: 6edfc489-ce40-49e7-1249-08d63b24037a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:HE1PR04MB1564; x-ms-traffictypediagnostic: HE1PR04MB1564: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(211936372134217)(180628864354917)(58145275503218)(9452136761055)(258649278758335)(65623756079841)(31051911155226)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:HE1PR04MB1564;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1564; x-forefront-prvs: 083751FCA6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(39860400002)(366004)(346002)(376002)(189003)(199004)(13464003)(68736007)(7736002)(97736004)(7416002)(66066001)(74316002)(305945005)(6246003)(5660300001)(2201001)(2501003)(55016002)(186003)(486006)(575784001)(86362001)(44832011)(53936002)(3846002)(6116002)(4326008)(316002)(9686003)(5250100002)(102836004)(229853002)(53546011)(25786009)(6506007)(446003)(99286004)(478600001)(76176011)(11346002)(8936002)(14454004)(26005)(256004)(476003)(6436002)(2906002)(33656002)(8676002)(2900100001)(71190400001)(71200400001)(106356001)(7696005)(81156014)(81166006)(110136005)(105586002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1564;H:HE1PR04MB1497.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: v4JCLeLS7Q1EDfKwthxnI58oYLp/WfVCeS6BnhGfHI5r8Flx3SrwxPz6lQRVzG2x1BxIbxdRVReyxIqE9oBCVOHJV/WwDUeOKMXCTLNuScA0HSTCPz2cMP6V1/na1ajwpzstdo3UiSpPEbpBN7z+nDwPO6CowIjRitBO1cI8glopkNCSSMEXySnrX3+kq/R/XTw3BuKvLOfAf9q9svyz8jdptn5JfpU7BAeFL7HsFiACUCjIhvnmoUYoqtuTqP7YkMIA3sY6+JrTp78V6+ebe2uTUnrW0fOMT4GmKANRbcMDhKbU01DqX8jl12QYAEEGAMZEQtyhkFm1DMtJGFnYRaYBfydA9CWwLH7W6ZV+sXw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6edfc489-ce40-49e7-1249-08d63b24037a X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2018 09:18:38.1225 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1564 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBLaXNob24gVmlqYXkgQWJyYWhh bSBJIDxraXNob25AdGkuY29tPiANClNlbnQ6IDIwMTjlubQxMOaciDI25pelIDEzOjI5DQpUbzog WGlhb3dlaSBCYW8gPHhpYW93ZWkuYmFvQG54cC5jb20+OyBiaGVsZ2Fhc0Bnb29nbGUuY29tOyBy b2JoK2R0QGtlcm5lbC5vcm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