Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp198825yba; Fri, 12 Apr 2019 01:37:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLETpPuBFy9IOtdyzuDNVrOuIQcNJT/o1X8+GKglFshhO+ox3wl+CUPZvBoJJpCOUhd0l+ X-Received: by 2002:a17:902:d68d:: with SMTP id v13mr56141415ply.55.1555058226455; Fri, 12 Apr 2019 01:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555058226; cv=none; d=google.com; s=arc-20160816; b=zkf5G9Ps6XURDRx6dfLN8lhTA+jr2T3aHQARqDg96vhPQcZL2kb4inCPsk2s1mzMJe D1qr/gP0PqIQ0HFD0C6E+fxTTcr7tn6L9hhrsGNqM9dCRPIecxRyt6DbctUKwi7mL68w WoWLuKQKu0XUkBB3W7uNR/9q5xPKhsmDao/t/kwe3TUJ4/JvY2kNa9kQ9mW5OFXQgmPT UVAFG7KD6SAGkC1vWlQ/yLQpMwn/cxnMJN5NbaFX9bFpsIrZt+Z9cjhBm2DgESZE4q4/ PbLVrUxEEgJGrOpYchxOIUa/UFVkpKDoIMXWdsQGAiHj0QozfT8fgtoo0nbFPdiVTuI1 lVfw== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=62SMIro4NrJzCpVb/rZeIuesF0RKs3K3YOR3QBZPZJ8=; b=Rkn2WHd0di9A6IthVjlMx0aRDXWXfeLVHXU2FW16Vh3GN5N1UUl2ZE2ZJlg7C8TBGq xJ9IDBiU+e/RxxHNU96ThoH7hhp/vInXEMipDfSFm/+Gtw4Xx6iBVIeOA47y5MsAu+wF yPU2UcbNNw4ls3oKFmpOT/PkymmVvnXsusuGx5mWFXTKZ1wF9BosGa09bWHuZYJjIO4p 9qApvMPVcudb3eLR//7PotclZm2yrpotwZCqLeSZg7OLFKbCT1SilWG6W/TqEvzPNmDS CSunJbZdBaH6E8NT8AqoOTV9waC1UpMkL/hQ3/GDESbAzl4TesKPcyFXt25UMYpYV/9Q 8CSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ADEJeibu; 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 n2si36258358pfa.129.2019.04.12.01.36.50; Fri, 12 Apr 2019 01:37:06 -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=ADEJeibu; 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 S1727575AbfDLIfy (ORCPT + 99 others); Fri, 12 Apr 2019 04:35:54 -0400 Received: from mail-eopbgr80087.outbound.protection.outlook.com ([40.107.8.87]:9286 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726875AbfDLIfx (ORCPT ); Fri, 12 Apr 2019 04:35:53 -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=62SMIro4NrJzCpVb/rZeIuesF0RKs3K3YOR3QBZPZJ8=; b=ADEJeibutO5flHiQi2Q+wyatknTxTHKpv1FqiJ4hC0ps+qliRcHhJZbWnKbArwcDRIccM9UFBbMcl8sB47vmPyyBkgW3yVHzEIu4s0VgyR6Tli4yG3/stze5rKWnohGRLqSC+OBbpnRwN6Y6PduaW8AlPz/RxTQz9KSweLyqmMQ= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB5846.eurprd04.prod.outlook.com (20.179.3.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.18; Fri, 12 Apr 2019 08:35:48 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::f9db:ed86:614e:460]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::f9db:ed86:614e:460%4]) with mapi id 15.20.1792.009; Fri, 12 Apr 2019 08:35:48 +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: [PATCHv5 06/20] PCI: mobiveil: Replace the resource list iteration function Thread-Topic: [PATCHv5 06/20] PCI: mobiveil: Replace the resource list iteration function Thread-Index: AQHU8Qq600aUhJFkeEuVVnZKUmApJA== Date: Fri, 12 Apr 2019 08:35:48 +0000 Message-ID: <20190412083635.33626-7-Zhiqiang.Hou@nxp.com> References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190412083635.33626-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: HK2PR06CA0011.apcprd06.prod.outlook.com (2603:1096:202:2e::23) 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: 70ad0aa1-19f5-45ed-cda0-08d6bf21dd03 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR04MB5846; x-ms-traffictypediagnostic: AM6PR04MB5846: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(396003)(346002)(136003)(189003)(199004)(54534003)(486006)(478600001)(2616005)(476003)(316002)(446003)(11346002)(305945005)(7736002)(81166006)(25786009)(81156014)(256004)(14444005)(14454004)(8676002)(7416002)(4326008)(186003)(50226002)(26005)(8936002)(68736007)(2906002)(53936002)(102836004)(6512007)(66066001)(86362001)(99286004)(106356001)(6116002)(3846002)(6436002)(97736004)(1076003)(6506007)(386003)(52116002)(2201001)(105586002)(6486002)(36756003)(71200400001)(110136005)(54906003)(5660300002)(2501003)(71190400001)(76176011)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB5846;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: WOJo5iazmza2/CB6h3DQLfFDQgiywM3RyP4XU9+NMJyyWXxwZEVm7oIM1atrZ7ZR/ImdmD9xu2/liEwWP4Gu932/hlNppSJfBY5sBWP3pstxm6eL5N17NzPji1rcCTX1PTti2QUw0VNqMHyBUcNjzsg5Y3LP4S/GvL+ZGzwfZSm2bJoXZZ8OQIsMvpZaaS6T4hiOYyNxjCoV48t8FkwEPIVts/hr7SDjMmn545/J8jfWOribzQiIfeA9br9KPSi1DEDbuxYumrPmiFbNrdxC7Pdq2xd5VqbT6HRmAka+xpSMcoRZ6a+dDo9/6Guu4oMT4uDXaDiRM0GT0apJVC90VjDZ9W2yLX/UwwILAkzeTdRVabdK3hWbokEqJFtH3cRO7nx4+OeVQ5uzXQlfFrIzgmSO34Nnt+i3IJTHq4wdHxg= 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: 70ad0aa1-19f5-45ed-cda0-08d6bf21dd03 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 08:35:48.8568 (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: AM6PR04MB5846 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KQXMgaXQgd29uJ3Qg ZGVsZXRlIGFueSBub2RlIGR1cmluZyB0aGlzIGl0ZXJhdGlvbiwgcmVwbGFjZQ0KdGhlIGZ1bmN0 aW9uIHJlc291cmNlX2xpc3RfZm9yX2VhY2hfZW50cnlfc2FmZSgpIHdpdGggdGhlDQpyZXNvdXJj ZV9saXN0X2Zvcl9lYWNoX2VudHJ5KCkuDQoNClNpZ25lZC1vZmYtYnk6IEhvdSBaaGlxaWFuZyA8 WmhpcWlhbmcuSG91QG54cC5jb20+DQ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