Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp784453ybl; Fri, 16 Aug 2019 04:04:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj68Pus6Ryvp08YalBh0xGp9Ac55dn0SgaucgWZBht0IificKEihiLDBk37KWmpjj70Jvv X-Received: by 2002:a62:8648:: with SMTP id x69mr10272687pfd.92.1565953474004; Fri, 16 Aug 2019 04:04:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565953473; cv=pass; d=google.com; s=arc-20160816; b=gJv+RMlL5CbtRyF7TRTK5qXoMWeCzvSBePUE42Y9MbFLdElSLbZivwf1RVsQaA5REC TmDXTK8DUoQ8mF/ytGilanf9Nzx6O+twJgMjB/+YINe3Zq6dA/tO3o0lXCHORJtbBYog nEJixU5Tv9v/18z9YnHcosgPOQNyNhASRSnaO9S/fTwdVp2VAV+BgaVOsRGvTcY66v/C EVwRazcNM3n6R4lVt9Wgik1xMAuoCO93HcC3ofF7WxJVMW9L3JABWLOcSxA/3hZyjLDM RqT5UHU34t+BFb4ZEyBZ9OzsLlOJ8gb3gxOXg+gCj46dLy/liL9TQca4e24NJNxepP7w xjZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Oo2QWpu9MemQmPnNNrQCkibUh7UqG6CAaKxrcGIK3vw=; b=SLOYxnf+W0oSyoAOYFLZgMAFzWRELO2AHxPKsn7aWCCXWVd87Q6kUD1MYLSiLn8RvB TXtaKuf2pc0DwucB7kAoeXdhgd3IX90UHw4Gu+2xu69sf0JqLWyVNDSIY6nCDxrrSJlF yQD/dfh8DaY0WsyRBR4fl8ejVbaK6KNi8S6O0hkptC5p6t3fYzoVdGl5Cu7MHpG4DKVo nytQGwIBvondUOPBfAYjkXAUECtkBLavE6lDoVJ+F0mMhPV0qAfBoXZ8hw3xUFKSNfJz puogP1r6QCqEw/F11uPvlObZjq4XdIQ36xdxEqPX4xZmrbAn8g8JlqgcB1FLsG3e6X50 mQww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=aKhq5B4Q; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 e10si2836879pjw.30.2019.08.16.04.04.15; Fri, 16 Aug 2019 04:04:33 -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=selector2 header.b=aKhq5B4Q; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 S1727092AbfHPLDi (ORCPT + 99 others); Fri, 16 Aug 2019 07:03:38 -0400 Received: from mail-eopbgr30054.outbound.protection.outlook.com ([40.107.3.54]:47103 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726261AbfHPLDh (ORCPT ); Fri, 16 Aug 2019 07:03:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hI/ylECEVy0V3HbWWoXhNKSHSGCvhTrp0u4GFprjAGC6wSlbqT3SQe8AK6NCHszODLOo6B8Kls8Is27gUhMz2WBLld3/eo3GOi3RHC9aBNw0aZAIg1XkU2TLxMi+YkpPkHWPh0pOpBR9GpmsZCNKPPoF6yaBemLqW8qVL8UAiLQkBcuxtaD3sjqaxuRepkE9x0AQhPePlJUtfGonF76eiPLVr6lkGPGceQQxyJFJHgJFFaxMkbW6IhZ31h5EBRVrUwANiKMf8aISHgkksYTrAjdYYAwT4X5YUCxhqXrOU+GTwyEChi8waqnHDPyGWWdH+7b8RNASBWYe4ZvSd7jICQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oo2QWpu9MemQmPnNNrQCkibUh7UqG6CAaKxrcGIK3vw=; b=mAYxBD0B3rIbs5KeggKQPv5fC59ZEakcsFQ0wsrFWx6EG8QRpGHjwBfy8Po3A9yI4B4E25ZOP9vp62K1q25VRzLrFI1hYrNJOlrCI7vboa4veuBjF6nqBdBJaRCq9Ny7KLVlGBpAT8pGWXELTOuWZHiKGerdhrrywOrH/BTsdlanz08JiQGUSWW2AUU+bTCkOmQBERPmoboc5zM3QrbCi/cWFWxtPFULJ+WrT9zyyczULCGBI6uI/BCJONtYV659Dl/I530N2vzC8OXgs63f0rj0g3ny3xKubpQNGgK6cZ/7KfhzkhZ1c+Xh1M3dVx3dShWsN7kkmth5WO3a7ZZpOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oo2QWpu9MemQmPnNNrQCkibUh7UqG6CAaKxrcGIK3vw=; b=aKhq5B4QO/WOcboto4L717u4Kf/Pl796J+srEtsYLKetL5e0hlOb3ALQnubMvG091DSFLDlMp4Hf0lAXW9Eobxbi0RCRd3lqZ5i53f16KttN+1xBGg/WpG/KjPjfhOKbx3h9he+VVbnmte/7TH4QrycG7sXna/T+ACTF/3sUWIA= Received: from AM5PR04MB3299.eurprd04.prod.outlook.com (10.173.255.158) by AM5PR04MB3202.eurprd04.prod.outlook.com (10.167.171.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.20; Fri, 16 Aug 2019 11:03:29 +0000 Received: from AM5PR04MB3299.eurprd04.prod.outlook.com ([fe80::5012:d47a:1f5d:9b84]) by AM5PR04MB3299.eurprd04.prod.outlook.com ([fe80::5012:d47a:1f5d:9b84%5]) with mapi id 15.20.2157.022; Fri, 16 Aug 2019 11:03:29 +0000 From: Xiaowei Bao To: Andrew Murray CC: "jingoohan1@gmail.com" , "gustavo.pimentel@synopsys.com" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "kishon@ti.com" , "lorenzo.pieralisi@arm.com" , "arnd@arndb.de" , "gregkh@linuxfoundation.org" , "M.h. Lian" , Mingkai Hu , Roy Zang , "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" , "Z.q. Hou" Subject: RE: [PATCH 05/10] PCI: layerscape: Modify the way of getting capability with different PEX Thread-Topic: [PATCH 05/10] PCI: layerscape: Modify the way of getting capability with different PEX Thread-Index: AQHVU0Yf1dFxsptJWkSb+ZGFXdO2C6b8KaSAgADs2oCAAHzkAIAAChAQ Date: Fri, 16 Aug 2019 11:03:29 +0000 Message-ID: References: <20190815083716.4715-1-xiaowei.bao@nxp.com> <20190815083716.4715-5-xiaowei.bao@nxp.com> <20190815125103.GH43882@e119886-lin.cambridge.arm.com> <20190816102545.GC14111@e119886-lin.cambridge.arm.com> In-Reply-To: <20190816102545.GC14111@e119886-lin.cambridge.arm.com> 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-ms-office365-filtering-correlation-id: ee55ff18-9665-460d-fef0-08d722395ec4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:AM5PR04MB3202; x-ms-traffictypediagnostic: AM5PR04MB3202: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0131D22242 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(346002)(136003)(376002)(39860400002)(396003)(199004)(13464003)(189003)(5660300002)(7696005)(76176011)(52536014)(7416002)(66446008)(7736002)(305945005)(74316002)(26005)(66066001)(55016002)(6916009)(6436002)(229853002)(102836004)(53546011)(6506007)(476003)(44832011)(186003)(486006)(11346002)(25786009)(33656002)(446003)(54906003)(2906002)(9686003)(3846002)(99286004)(71200400001)(8936002)(4326008)(71190400001)(316002)(76116006)(14454004)(6246003)(66946007)(53936002)(64756008)(81156014)(478600001)(86362001)(8676002)(66476007)(66556008)(6116002)(256004)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR04MB3202;H:AM5PR04MB3299.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: dF3f7/xV3dXT9UBU/Sbg/SczEuiZPsYbMjlyMal2PYUDXw8oYdD5FsiYUPZDKF5XtUBpdS6AIlxya7M1Bu3EiuabXQ5Gqc1gTY/ATa5Pd1pU0O4OaU3dZM6rBmwSuzkphDNDpXW0AeSKgnT3VUC2aQkFuDNmy7vO5yCggBBfO1WS9Aey4dN7F7qAZYlqNtiIBYU+bvgG1VIvrZCIInJ7cUtGRmfZlc1yl+/kmqxeqOIAbT0b/M4ydMIzdLRs4wuZcpcMLBAXQBt51ZD2mKYHP8RVJzBjZmoAFex+4j810W3NOoOdLsPfrRfUGQwuAFWQHFJJvh5tDcpIJlIs/UGfvCoY9CgsKtvMcQ3fS0+IPVmtPMCaG1lbMgQsQu1axvz4948IHEwJ2DnfE2+XyconrJ+R69A1siGtZfcOGNbJfaE= 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: ee55ff18-9665-460d-fef0-08d722395ec4 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2019 11:03:29.3044 (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-CrossTenant-userprincipalname: ntlrsmmdAwCQxrvv4px3KxhIkZYUzVHzCniyS4cOlC/U1SdN5hPSGBlzrTwSz96xGjrJ0+FQtlSszxlkFNZCwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3202 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5kcmV3IE11cnJheSA8 YW5kcmV3Lm11cnJheUBhcm0uY29tPg0KPiBTZW50OiAyMDE55bm0OOaciDE25pelIDE4OjI2DQo+ IFRvOiBYaW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