Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp200312yba; Fri, 12 Apr 2019 01:39:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyus99nZHKxNLkXVGfl+58Km+kHt3618GbuoAPmH36cQTEPoBwvnztflm3UvpefYQ2XLqoV X-Received: by 2002:a17:902:7594:: with SMTP id j20mr531011pll.272.1555058366161; Fri, 12 Apr 2019 01:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555058366; cv=none; d=google.com; s=arc-20160816; b=WUu/V38SgZ5bDZrgbut9swLIFVt95Cb1Iyf6kiYcVj4Swwlwt8+5sXnUC0rSrGJPBa YxuZQk4c2semnvbSyGJ/KJ3tp00roE87966OmoGcEQazOodnkGJQSEYHqWaHb7aodeSm +sVFbVZn6J1RgMYvNjbMtJ1SZ6tFWDHTZpWcMNiJKlaLubTjiuJZugtzN/ROiyArU4Km Xg+Y9WSz9Gn56x7TfugaibfOxd+xwVxJfo8NjVoLvO3STkwajZRItWLp9V9mi+yoaJjb C84FCi9Pzpc/8xBYJuWuRy4CXrIr+rsTVM6bNb1WxrekUsODiOCGU7uj7Fh5TZ/00GVg ZMbw== 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=oWH8RDxbJ2dvwntQ1NSC9UgZZ+9hzinTZGYfr3Yi23Q=; b=YLClX2pwHFVN6ltPjDqu7UfqFWJ2P869nEQIJ0vcdyRB/PqflLo2B53gXmPhI6QJDC 0v4JOUocM+lpGB3panBYpXCtgjwMSecUL5Hx8e7cN6WFm/hiLeGo8XzeydNNoomidI2Z gg4GuAeQ0hCeicAWvUneh0DqaP++BbBVZPslDKINCD3T8GEdv7dLsHkJntYohdglUTx/ pd0g+sF/0S8TO8Q0M3QdYF/yD2+kAioEjaXXbvzblYW4SuVpG30OaMoPDCGC8sq3ym2L 8IfCljFQUeT1ailER8fHA1EH+7FRxtitbV4izVJy3a9GFQHxzTIh85hZD7JHy0EZ6+Vh ZwxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=lG7bl9E0; 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 b4si18166751pgg.581.2019.04.12.01.39.10; Fri, 12 Apr 2019 01:39:26 -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=lG7bl9E0; 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 S1728413AbfDLIgr (ORCPT + 99 others); Fri, 12 Apr 2019 04:36:47 -0400 Received: from mail-eopbgr80085.outbound.protection.outlook.com ([40.107.8.85]:17320 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727464AbfDLIgq (ORCPT ); Fri, 12 Apr 2019 04:36:46 -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=oWH8RDxbJ2dvwntQ1NSC9UgZZ+9hzinTZGYfr3Yi23Q=; b=lG7bl9E0moneGQvVc7GRqktaFB7OM3TTNIw++bGlk3fndaBQjbKOmgBuVu6y8EOuVS0mq0QO+OQF5Bmwx7a3a8UtVSDmZ1xGEGeBfDcGVRINYuihDslx4SnalbK36b7akNAFW+L3j3891ghQr6l3Jc70uiPgcngdCo53obpjv+8= 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:36:42 +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:36:42 +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 15/20] PCI: mobiveil: Fix the checking of valid device Thread-Topic: [PATCHv5 15/20] PCI: mobiveil: Fix the checking of valid device Thread-Index: AQHU8QrbpZrQvNQjLkyw0s9gKsKrYg== Date: Fri, 12 Apr 2019 08:36:42 +0000 Message-ID: <20190412083635.33626-16-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: c1d34133-07f4-4a69-6bcb-08d6bf21fd5a 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)(5024004)(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)(4744005)(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: 0rqSjr61+aaerDe6TLIkyt+DZtM30s1TSjE7TnEluTJ9mWmh/vLjVh7mZYw4hzYgBVFkZtxoE1JS8Day88G34p1RNT1iaUnjWUPshxwOjvhITulyp31XX7hO+mTxKQ0apI7DBhsEZnLJplr9SS9qkVNiq6z4G3O2eEToeRtM19gEtCJ/BT0X3IgP4nAlzO03Pq3Dgb5lybdDoTFncVypZtf/8nRaN1k357vQgXwu+sizo793H3LfEY4zQ649Q0V7owPebImxplhrEaE8lvMTGr+EZg/ICernqB57vl9xBJyvFrtr40jcPZXop38vYKHNqeviKAMMlRS1LebrtAHPK1jawN4Z3VKOPCQE5Zwrxv8i1SEzTOGY8P9lfu8wWcSSL8c4mt42IdNHAqa2eTuxyt0YdbNTzN1pnpI0rcsmPLM= 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: c1d34133-07f4-4a69-6bcb-08d6bf21fd5a X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 08:36:42.7893 (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 RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KQWxsb3cgQ0ZHIHRy YW5zYWN0aW9ucyB0byBhbGwgZnVuY3Rpb25zIG9mIEVuZHBvaW50IGltcGxlbWVudGVkDQptdWx0 aXBsZSBmdW5jdGlvbnMuDQoNCkZpeGVzOiA5YWY2YmNiMTFlMTIgKCJQQ0k6IG1vYml2ZWlsOiBB ZGQgTW9iaXZlaWwgUENJZSBIb3N0IEJyaWRnZSBJUCBkcml2ZXIiKQ0KU2lnbmVkLW9mZi1ieTog SG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NClJldmlld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