Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp200419yba; Fri, 12 Apr 2019 01:39:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsY63835/VIDRI1XSiBN4BjBgdV8kfQE3RxOm49LFXDxsUOOzyIedw5876d25x/Cd75HTc X-Received: by 2002:aa7:81d0:: with SMTP id c16mr55996122pfn.132.1555058374999; Fri, 12 Apr 2019 01:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555058374; cv=none; d=google.com; s=arc-20160816; b=xKLkEbhXTEE/PvkuxRRtZsmvbexduR70KjY2qHq08OHTiiy9KhaT3Tep2PZnodhEUY KeyKaZAf1zwBBKJDCMftura+OG0Qfh+dotjY3v40gdfu354pyX3c/MiuZ7B/sCkUKww1 m1CuNoT9dKIegDJI+xla2RoRV6LkVzgXFyH9Xm+hKq+4wVAl3UOMH5uAKs+9MB113Up1 rvUoqQhfOw6cTGDLFc1lJ+SSXrIZ5Ucv1yeyVYoF+o9Gm++hN0+CnVHnbgJlmf27/bmZ x+hpUv7wHlyGNIck1IjKvKIDQnuYb0BifgoiGzZ3+zh0eokV3pkXNO+JQoIh2HYllmfN 0vIQ== 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=LP5+GWonWaYMZ+WQieaIH3F7mlF5xXgqJoRZIqqyyEc=; b=oQpQSPJglR6GGd0cU4hDn4188t80QZtG9geeDtq8N8FcmhZAwFDsQF+7Puuq8L2xlW wvDc7RSWPmthKwRl0dqkrlFPXhmybrMs5bq42LwMYwISxTKlfcLeVu1TBHrw/jKzG/25 ApSUdaGbqVAWFxLgXX0Kc/93DHpykVm+L3Ar4x8XQIeqHEjCPzRmCsbxEywFUEf+TiCH AXOqzv2une8zEJv5JKgcK3YATAhr7z1/W/DgGkoRWY53o55Tz/vQ87nxCaWNtQ3G7A45 L31VpNESbcHQvULkentkZBTm8Iz92f1sOuQCE3/cJjpofH0lm+gchdqegAyBrIHOXX32 QkVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="lOM0HB/E"; 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 t9si36351705plo.98.2019.04.12.01.39.18; Fri, 12 Apr 2019 01:39:34 -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="lOM0HB/E"; 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 S1728526AbfDLIgz (ORCPT + 99 others); Fri, 12 Apr 2019 04:36:55 -0400 Received: from mail-eopbgr80073.outbound.protection.outlook.com ([40.107.8.73]:12672 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727021AbfDLIgw (ORCPT ); Fri, 12 Apr 2019 04:36:52 -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=LP5+GWonWaYMZ+WQieaIH3F7mlF5xXgqJoRZIqqyyEc=; b=lOM0HB/EX7kXwiKXDlvZ4PsoxeIGr3M0lTHz3n3dvQ+Uwqmrf8A1y4MpEfaUW3F8m65GrKmXjoIBOcMNltCjznYEK9bBe+kQDfQyJkPCNgMeidlkIwgFTlP6933aXAqwjoes2E7RIDJNCOkVQ8nIlYh+n3kki1FiS7yvR+WZmuA= 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: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:36: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 16/20] PCI: mobiveil: Add link up condition check Thread-Topic: [PATCHv5 16/20] PCI: mobiveil: Add link up condition check Thread-Index: AQHU8QreVEure7z7nE2dWdwI9OV74w== Date: Fri, 12 Apr 2019 08:36:48 +0000 Message-ID: <20190412083635.33626-17-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: ed8cbc1b-b1cf-48f5-0349-08d6bf2200b0 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)(486006)(478600001)(2616005)(476003)(316002)(446003)(11346002)(305945005)(7736002)(81166006)(25786009)(81156014)(256004)(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)(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: +JUMBHPoLJHi2lpz8Xc+EIciOggRB3K0OKQp9rXITdUzW6LoWaRfeQyHxIIu3lv7fdkMoIB8GUOahqbCPKhqMxhH4w5io3tXtUWzXzcO+mqmH1d+9g5/qHAfY598m6JzByyn6/Wba5T/pWSwjEvlsim1GlQETepd1efiGyBKnY4ElWsTlUrV7ck2it5GDjyG18N3MVk9F0yEUlf/DyECl9TwJ6OlVAAQKo73g6/rnNYN4I6fIyT7QbsHmSj5jPW8f3uAZSLc5CqS3T+jHWkDHlPNNdcLvJQxTjKdG3PYb/CZ3H9AGgIl3cL53bu0Q2eorW0ibN6zzHN6Fke2XLFqNcJSv1T4ymlY41m64wokPcFr/Ge9tKFmyVYPLxe5RRdOQeAz7gPEEBt+V8embW/vFBvW80A0OgxTnZLitLBRAd0= 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: ed8cbc1b-b1cf-48f5-0349-08d6bf2200b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 08:36:48.5625 (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 RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KQXZvaWQgdG8gaXNz dWUgQ0ZHIHRyYW5zYWN0aW9ucyB0byBsaW5rIHBhcnRuZXIgd2hlbiB0aGUgUENJZQ0KbGluayBp cyBub3QgdXAuDQoNClNpZ25lZC1vZmYtYnk6IEhvdSBaaGlxaWFuZyA8WmhpcWlhbmcuSG91QG54 cC5jb20+DQotLS0NClY1Og0KIC0gQ29ycmVjdGVkIHRoZSBzdWJqZWN0Lg0KDQogZHJpdmVycy9w Y2kvY29udHJvbGxlci9wY2llLW1vYml2ZWlsLmMgfCA0ICsrKysNCiAxIGZpbGUgY2hhbmd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