Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp199307yba; Fri, 12 Apr 2019 01:37:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvILHeSD6T6n0iFEbQO7QgYPhVwyXsiXvyYHrOT+fKsqWSxQa5skmVqNyzZINFNGE0GPQQ X-Received: by 2002:a65:62d2:: with SMTP id m18mr52256195pgv.122.1555058270790; Fri, 12 Apr 2019 01:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555058270; cv=none; d=google.com; s=arc-20160816; b=dxgf7bVAdpdf0bLEk/ysjXGBMwZOofR3Ambpx9cUaOHIwoAmS4dl1oORlwVFUQ6DEw Ov5Ia/dA5rOdsKf4MHv57wGfuToxx9m4+md7pAiAsBmy6UbLc0GvUGLcQ5bGyj8KzhiJ 8mCzLcCSD/P7yN8dDk8Aj1qI7VC/nNWHEe9SbPN4ZvRv81spIS93RYfHgFU9SwGBGD+S 5OM82zIGxA5/I3iTc5VAzePb+KAn678uIjzWtCNih/XdXZjbAZaFHjESsj47EQGNhDkF +PdcTjegJdmec1RgZRRfKt2pCIptBOwOi9WLpkpxaM0bFQSOt/EAkAWFVfTb/M8AEIiY 7HtA== 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=td6nGy9pZI+6f3PJ0XGDp9n0ursU4PSPZjJ/MmiwdpM=; b=kCj5LocVnBIiYyuSnX0DWTyhVhb9ViHxxjRQAp0pcACdM1xfg5da1f3aprZTHId6F/ r21zbJhtJvYrqEOC6KnIEdvxoPuoXVuug3zno3FzRXj/lOtzaRRCkhD91K5zOQHKku8k sU7TdpUZYQTzxkNrgt+IyO021yDwL9w2N8i9REYh7Di9qM5SVUx0ZBpNn7NUyBi7DOUv vjb805BYrEzKdDmieCYHuPS9AmhZGHvHECHm0uje/lGBw+vvY0VBIiCuqnMtO4DyJtrh wEhL1HXQT9k+li9pi8K9JSBzso104+zVr8MouIpeVnQ6HtHunk+9qLov/ezxHafAZtm9 IZrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ADS8gFBk; 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 x4si36015230plr.406.2019.04.12.01.37.35; Fri, 12 Apr 2019 01:37:50 -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=ADS8gFBk; 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 S1727934AbfDLIg3 (ORCPT + 99 others); Fri, 12 Apr 2019 04:36:29 -0400 Received: from mail-eopbgr150074.outbound.protection.outlook.com ([40.107.15.74]:58757 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727464AbfDLIg1 (ORCPT ); Fri, 12 Apr 2019 04:36:27 -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=td6nGy9pZI+6f3PJ0XGDp9n0ursU4PSPZjJ/MmiwdpM=; b=ADS8gFBkW0MLfVfy829WQQ31UmAiDFVVd9crmdH+bbyvpClCt5kY6bzR2U8678rEMVTntZvpmbUu18Yr7H/cmGkFpFa26ILHOBta7baxFCrP9SEcu/tguti9vtNGKqi3WdnqB3kHWbX3lQvTqUDgAtZCOX2XtUSQf1rlA5WcRFA= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB4183.eurprd04.prod.outlook.com (52.135.162.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Fri, 12 Apr 2019 08:36:23 +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:23 +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 12/20] PCI: mobiveil: Move the link up waiting out of mobiveil_host_init() Thread-Topic: [PATCHv5 12/20] PCI: mobiveil: Move the link up waiting out of mobiveil_host_init() Thread-Index: AQHU8QrP75iEHD9oNkeVKVqSiiGp+g== Date: Fri, 12 Apr 2019 08:36:23 +0000 Message-ID: <20190412083635.33626-13-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: 3a9fc3e7-cc71-4101-3427-08d6bf21f20f 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:AM6PR04MB4183; x-ms-traffictypediagnostic: AM6PR04MB4183: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(346002)(136003)(366004)(376002)(189003)(199004)(54534003)(7416002)(102836004)(446003)(52116002)(53936002)(50226002)(186003)(81166006)(8936002)(81156014)(26005)(106356001)(6506007)(6436002)(8676002)(7736002)(110136005)(6486002)(6512007)(54906003)(66066001)(2906002)(386003)(316002)(105586002)(99286004)(305945005)(5660300002)(86362001)(1076003)(71190400001)(97736004)(2201001)(71200400001)(68736007)(36756003)(76176011)(14454004)(256004)(2501003)(486006)(476003)(11346002)(2616005)(478600001)(3846002)(6116002)(4326008)(25786009)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4183;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: Qg4ZxDcdoX0uf9yEXP9n7fWyIFaqKWG/N6F5QGb+hY+wCDzoJojWgaRuMqLbufQ98MMOwdyG7XlOq5c3HgTlF9Iy3/dSrWF8awAl1gsk2jT41eaXEjFsDVSBygJCRPYMriyD5hwjyQefWIusVhEh1H9WPo3a1qcvQgRL1deF8rLO3OtBd7DE/F+mO3fA2aVHsnSamRrMoeu9IlmNxWULeWsPSxfOUkRacWnZvc7DL+jU2PI2kFidE3jsBY8nDjaD3kA4ERtNfMbManUEa/TJFxwdsISLMfpfvjLHTZ5plFaMhdtzs85WMxJERPjmdlnEIi1ikXxpDpX8v15KP7031I1F4zaPySsez/NUgPofEhPo00wEzdjTqEKNbvRHGOU+261Qi8A0YpKeM1edkR6KdMijeqZDf8GNemClmXJvvoo= 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: 3a9fc3e7-cc71-4101-3427-08d6bf21f20f X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 08:36:23.8825 (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: AM6PR04MB4183 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogSG91IFpoaXFpYW5nIDxaaGlxaWFuZy5Ib3VAbnhwLmNvbT4NCg0KVGhlIGhvc3QgaW5p dGlhbGl6ZSBzZXF1ZW5jZSBkb2VzIG5vdCBkZXBlbmQgb24gUENJZSBsaW5rIHVwLA0Kc28gbW92 ZSBpdCB0byB0aGUgcGxhY2UganVzdCBiZWZvcmUgdGhlIGVudW1lcmF0aW9uLg0KDQpTaWduZWQt b2ZmLWJ5OiBIb3UgWmhpcWlhbmcgPFpoaXFpYW5nLkhvdUBueHAuY29tPg0KUmV2aWV3ZWQtYnk6 IE1pbmdodWFuIExpYW4gPE1pbmdodWFuLkxpYW5AbnhwLm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