From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: hao.a.wu@intel.com) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by groups.io with SMTP; Thu, 01 Aug 2019 18:05:12 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2019 18:05:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,336,1559545200"; d="scan'208";a="184427233" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 01 Aug 2019 18:05:11 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 1 Aug 2019 18:05:11 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.249]) with mapi id 14.03.0439.000; Fri, 2 Aug 2019 09:05:09 +0800 From: "Wu, Hao A" To: "devel@edk2.groups.io" , "lersek@redhat.com" , Marcin Wojtas CC: "leif.lindholm@linaro.org" , "ard.biesheuvel@linaro.org" , "jsd@semihalf.com" , "jaz@semihalf.com" , "Tian, Feng" , "Kinney, Michael D" , "Gao, Liming" Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/UsbBusDxe: Return error when the device is not present Thread-Topic: [edk2-devel] [PATCH] MdeModulePkg/UsbBusDxe: Return error when the device is not present Thread-Index: AQHVR2jQv6l+kHlRP0mFP7towrPBLKbkE7CAgAL53IA= Date: Fri, 2 Aug 2019 01:05:09 +0000 Message-ID: References: <1564554319-26810-1-git-send-email-mw@semihalf.com> <8885da65-2d0f-ac2b-00c1-8ba6230ca9a8@redhat.com> In-Reply-To: <8885da65-2d0f-ac2b-00c1-8ba6230ca9a8@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: hao.a.wu@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXZlbEBlZGsyLmdyb3Vwcy5p byBbbWFpbHRvOmRldmVsQGVkazIuZ3JvdXBzLmlvXSBPbiBCZWhhbGYgT2YNCj4gTGFzemxvIEVy c2VrDQo+IFNlbnQ6IFdlZG5lc2RheSwgSnVseSAzMSwgMjAxOSA3OjM3IFBNDQo+IFRvOiBNYXJj aW4gV29qdGFzOyBkZXZlbEBlZGsyLmdyb3Vwcy5pbw0KPiBDYzogbGVpZi5saW5kaG9sbUBsaW5h cm8ub3JnOyBhcmQuYmllc2hldXZlbEBsaW5hcm8ub3JnOyBqc2RAc2VtaWhhbGYuY29tOw0KPiBq YXpAc2VtaWhhbGYuY29tOyBUaWFuLCBGZW5nOyBLaW5uZXksIE1pY2hhZWwgRDsgR2FvLCBMaW1p bmcNCj4gU3ViamVjdDogUmU6IFtlZGsyLWRldmVsXSBbUEFUQ0hdIE1kZU1vZHVsZVBrZy9Vc2JC dXNEeGU6IFJldHVybiBlcnJvcg0KPiB3aGVuIHRoZSBkZXZpY2UgaXMgbm90IHByZXNlbnQNCj4g DQo+IE9uIDA3LzMxLzE5IDA4OjI1LCBNYXJjaW4gV29qdGFzIHdyb3RlOg0KPiA+IFVudGlsIG5v dywgZHVyaW5nIHRoZSBVU0IgZGV2aWNlIGVudW1lcmF0aW9uIHdoZW4gaXRzIFBvcnRTdGF0ZQ0K PiA+IFVTQl9QT1JUX1NUQVRfQ09OTkVDVElPTiBiaXQgd2FzIG5vdCBzZXQsIHRoZSBzdGFjayB3 YXMgbm90DQo+IGluZm9ybWVkDQo+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