Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5496258imd; Tue, 30 Oct 2018 19:34:32 -0700 (PDT) X-Google-Smtp-Source: AJdET5cIMM5Uqz84FYftSQjbmrORlNqtdX5xxyQ1gMqUN4n0dF+lVulvNFDeSPKpc0r6na+JgUsV X-Received: by 2002:aa7:814f:: with SMTP id d15-v6mr1385325pfn.78.1540953272008; Tue, 30 Oct 2018 19:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540953271; cv=none; d=google.com; s=arc-20160816; b=BMW0C05/2Xy5qCP/ixACNAytS4l2v/eLYCG5JMi1gVKaD2EclUX50aRBb5u9HMqzW/ DKUWXM48fRqcHYLraRN3b0H8Ati7J01H1y/LwSXoSsGPtUUh3Gzly6He06BsI9CZjIW/ HENt3Ew6MBi7bTqwUuPFZ6r2zBNq6RdQ+v5BR7p+U8sG/qkqeGP5YLNgKFBwN+NQ6ClV jiJ7DoQqt07KpYTQFhmWuhWdvJb/OPdDwuxisi+24p8Z0wkf57d+jXn42Rub63vS+QdF CnSb2ZNJznea+l2ool0rOUFuJi1sbemmzzfcGrBaINbV5tj1Ux7d57gbz6B2MV8F1E3g BDMw== 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=HfdeKBHoTN4yjFZGub7rGGKHayCSlcUg7MJm87td+Hk=; b=QbFFJHnGIvyWZKDzGDBgBiZHzwIR/E3DvWDokLSQf5RvQaTukmDPism9RXxnV1RjS1 AA9Tn3rfnJrH40x01JDPotyHuoT019pS/2N7osnvs6eSgkysIQbG3se0jLIULUKsSmni QScuyyPuhlre6k5OrkFwgcYMKyUNGGudv2ebpURjuOvl+N7yRAlT8epi/lBezJcfA8vt Uewbrw+TQe+SsSoAqmCoUdAs4rrYHUm+FbLN0aDVR2lUA5NIuvSvp4B6P7EPq28klcHp sNXM9JXvasUABy6hNqKYnuksYNLg4pEM887Cy4xaOhn10jBdgaNAwIkdGxGpx5hNMAXF SzSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=d317BbKW; 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 j193si5399422pge.332.2018.10.30.19.34.16; Tue, 30 Oct 2018 19:34:31 -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=d317BbKW; 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 S1728861AbeJaL3R (ORCPT + 99 others); Wed, 31 Oct 2018 07:29:17 -0400 Received: from mail-eopbgr50078.outbound.protection.outlook.com ([40.107.5.78]:52679 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728645AbeJaL3R (ORCPT ); Wed, 31 Oct 2018 07:29:17 -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=HfdeKBHoTN4yjFZGub7rGGKHayCSlcUg7MJm87td+Hk=; b=d317BbKWGZFx+YtC3UlLDLwobdOtDi9tbKZT4FYKJtnDcco08MV1BXcR10ZMQw0SmjIlhtceWPozIs6NcNCeTSnsA8xCn8ydcVvBd9VNOTMP+plEivz+PmQCNK40/QMRcNXIWNPNThjcKn680yOuasfgbo8Pd4S30PlPRVfMdi0= Received: from HE1PR04MB1497.eurprd04.prod.outlook.com (10.163.176.23) by HE1PR04MB1308.eurprd04.prod.outlook.com (10.162.249.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.26; Wed, 31 Oct 2018 02:33:05 +0000 Received: from HE1PR04MB1497.eurprd04.prod.outlook.com ([fe80::4070:91bb:7cd2:1f63]) by HE1PR04MB1497.eurprd04.prod.outlook.com ([fe80::4070:91bb:7cd2:1f63%2]) with mapi id 15.20.1273.027; Wed, 31 Oct 2018 02:33:05 +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: AQHUbFPBC6aEqg5WuUCTs5ZVrmqyDqUxAPsAgAA8nBCAB2zBkA== Date: Wed, 31 Oct 2018 02:33:04 +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;HE1PR04MB1308;6:/ImTVOn7PWkZuWVgn26nhlToKASvALSA3zIBRRxWfh2JKhwdIi19RSSW7D52FlD4A1Y1ms+BqkTVP9XhpTSjNp/ubH+onJIPJmKqtLGMRQxD04LiZ71I8Ay9ui+mRvsZCSo2D1BZ5TIBw0QrM4xa1drnFkuPjcr9W2r5sqwW2DXkyNKz228eRLXkt32/emArdrOGzfBPoyPgc8bL8zzKkk3aZiWwCj2U2TyL7qaOfgRSVHBJwy8rMa77lInSo4Il8fe/tgekAsYrHAtRLw0TQyUJ6Ck6frpcfgyrHucyw2TGy9xN/nY2zfB1N3G0rWGsmqpCpyuLhgJoBh6zBOdqWsbMq7EbYa5JEQ2FYNPG0Wppf3jignRLtD/bXIWuO7cJHhxg9ES5MBP51H1H6a6sAYFywDUFwJd/03vEPtFHBI1iIjN+u74s3MsmYZ+G4kdEfFwKG24Imz/+Z2WpGijPkw==;5:POu6yZfSJmFeckwiecHKKCZfEa0knOokxR1ZGZd2aS+PJVnOZySPE17pIglTsICjvU9CNRk2aTJNANWX2e2ozyVlWfrPImkeV/AduqjCTu6E3qMREWK42uT8cywUtzLdue307JEGltEr33ZmoS/ZYZjxU49IfF3U5rgkqNVSf6s=;7:Sgv6rrZzdRHYzY4sfynFeXCuLDukpz2f/9ci7/4E3rP8FboKoF49p4QHI80n6HVyGTe28V6eZWucMEKrcqv3mwo/Gc0fyMkIqomqcTdQp2Cri2JkSLWqI7gdNhfiABNFNEkfKt8Q1QWLkzC2bNH8sw== x-ms-office365-filtering-correlation-id: 3d6be900-b6a7-4391-76c2-08d63ed92fde 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:HE1PR04MB1308; x-ms-traffictypediagnostic: HE1PR04MB1308: 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)(8121501046)(5005006)(3231382)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:HE1PR04MB1308;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1308; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(346002)(136003)(376002)(396003)(199004)(189003)(13464003)(575784001)(53546011)(11346002)(446003)(99286004)(33656002)(76176011)(2201001)(86362001)(7696005)(106356001)(105586002)(14454004)(93886005)(44832011)(102836004)(486006)(6506007)(476003)(26005)(2900100001)(316002)(256004)(71190400001)(71200400001)(186003)(478600001)(4326008)(68736007)(74316002)(6116002)(3846002)(81166006)(66066001)(305945005)(25786009)(229853002)(55016002)(5250100002)(6436002)(53936002)(7416002)(2501003)(81156014)(6246003)(7736002)(8936002)(5660300001)(110136005)(2906002)(97736004)(9686003)(8676002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1308;H:HE1PR04MB1497.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-microsoft-antispam-message-info: /j4oySNFe+6dK/nISAvc8vU8TqSmHtEmItUgnp4G9tT/reu9jtf0lugoWgfTPATBAors1qAfqs0nGf9sm7J0zJ1x5pFLz234yjYRcZGh7s68DWJ8LS8DPaAb+JR7ZSA2YwPufHJkjMZc5zwdJz18bc4mj82H8nUsV8781XAgBmPss2l2lqPnxWLhIrRzOVtwlaRxM+SciU1FgKjgrBRbSfbttE8eL2Xtfo/TCvoeNJz/9/X8ACM4XtzPfe39/mbRgF2Q+Hx59pbVAnI/gq1HP9OQvgZ/Jbe3MZ/a3WPAKWBhy6/a1lpclbRHDe3f1n36nGWxCLY56NMBKHUR9b5QWBOpoFI0PTxCqq721M9teIQ= 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: 3d6be900-b6a7-4391-76c2-08d63ed92fde X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 02:33:04.9093 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1308 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBYaWFvd2VpIEJhbyANClNlbnQ6 IDIwMTjlubQxMOaciDI25pelIDE3OjE5DQpUbzogJ0tpc2hvbiBWaWpheSBBYnJhaGFtIEknIDxr aXNob25AdGkuY29tPjsgYmhlbGdhYXNAZ29vZ2xlLmNvbTsgcm9iaCtkdEBrZXJuZWwub3JnOyBt YXJrLnJ1dGxhbmRAYXJtLmNvbTsgc2hhd25ndW9Aa2VybmVsLm9yZzsgTGVvIExpIDxsZW95YW5n LmxpQG54cC5jb20+OyBsb3JlbnpvLnBpZXJhbGlzaUBhcm0uY29tOyBhcm5kQGFybmRiL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