Received: by 10.213.65.68 with SMTP id h4csp1244419imn; Mon, 26 Mar 2018 03:57:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+oYBqbNL1xk/l4wRbYSsptTW5B7C13xSOqA95rKsWLaxdbEzzSZlJHcVzkK2++5MK0V09h X-Received: by 2002:a17:902:b58f:: with SMTP id a15-v6mr4257154pls.326.1522061856785; Mon, 26 Mar 2018 03:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522061856; cv=none; d=google.com; s=arc-20160816; b=WahBLcOc48FKosl0+mI+sqQr9hem+kNV2Dk+K7ITP7dGsEY21J6dT9u2NNcq/+8qAB RfVkbgIHxNgO9bti7g6VKq5yXqIhowvxNbmZEGMbph3SMgEnhTfOXn/s0UfyFyd42GnD L1jL0e4VYGrK0l/pi7FbGKopphMZ9VfUIPm/xkEt63paXCdtQ7h5/kFva3pbNWmQQ0SS DjgIx2GEcrpA6pM/tz2H01oHqd5oPmLBysunP6lLJVwaqqEywqMYr/4R5B5lFJK6FcKf 8zohNXtHcu7oGnsS8hjL3z8U05ZBohjBlQ2xn9KyXSBs04Ugvi8gRqUl8aNNpMWtv5fF 5dZg== 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-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:arc-authentication-results; bh=jW2RnWHUBNsD1AsrikxOFGk6M3LVjGxw+MKYbA86nd4=; b=fzkOE7HhWkdcngyX9PxxZZQQbt5D0jimfbTm4K0o/qTBp80qCGAgWjVXO7fH34Xxms B9yb5xLUIzTl7ah9887ZpMB8F24GJnrf1b/v4USw1H0lnS2KnHTyQWJro4jo7UKx48cR GQtfAaDuYufcXUsO7lq1I8E3V+kvSDmHHSsO50f27A0WKz/bqOdWzfrJtqFHG2Vgltl5 ug0I4nKMcM4r8VKb0ECzBohlKxu6xJSVbmJciXGefe43V6FRKIGbBZjhDqust0wi49X2 0z0GZfav++0BaH9dWU2UmN3nuO4CXql7MeE9rNO72tI+huU7ggLCSV/UVA/kF3eDIzWp Hgkg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si15095983pla.602.2018.03.26.03.57.22; Mon, 26 Mar 2018 03:57:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751739AbeCZK4Z (ORCPT + 99 others); Mon, 26 Mar 2018 06:56:25 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:37863 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbeCZK4Y (ORCPT ); Mon, 26 Mar 2018 06:56:24 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w2QAnTLk016691; Mon, 26 Mar 2018 12:56:17 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2gwd11j9c7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Mar 2018 12:56:17 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6D11F31; Mon, 26 Mar 2018 10:56:16 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 483B54E67; Mon, 26 Mar 2018 10:56:16 +0000 (GMT) Received: from SFHDAG3NODE2.st.com (10.75.127.8) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 26 Mar 2018 12:56:15 +0200 Received: from SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96]) by SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96%20]) with mapi id 15.00.1347.000; Mon, 26 Mar 2018 12:56:15 +0200 From: Amelie DELAUNAY To: Tomeu Vizoso , "linux-kernel@vger.kernel.org" CC: Felipe Balbi , Heiko Stuebner , Minas Harutyunyan , "Greg Kroah-Hartman" , "linux-usb@vger.kernel.org" Subject: Re: [PATCH v4] usb: dwc2: dwc2_vbus_supply_init: fix error check Thread-Topic: [PATCH v4] usb: dwc2: dwc2_vbus_supply_init: fix error check Thread-Index: AQHTxOD5IYVs/LbjlkS2pJRFzyTVB6PiNtWA Date: Mon, 26 Mar 2018 10:56:15 +0000 Message-ID: <4abf7dee-8cb1-6d76-2f75-82db12f096a2@st.com> References: <20180322093943.49717-1-tomeu.vizoso@collabora.com> <20180326090001.57627-1-tomeu.vizoso@collabora.com> In-Reply-To: <20180326090001.57627-1-tomeu.vizoso@collabora.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.47] Content-Type: text/plain; charset="utf-8" Content-ID: <76147D6AB3557A46B014023D41D6123A@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-26_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksDQoNCk9uIDAzLzI2LzIwMTggMTE6MDAgQU0sIFRvbWV1IFZpem9zbyB3cm90ZToNCj4gZGV2 bV9yZWd1bGF0b3JfZ2V0X29wdGlvbmFsIHJldHVybnMgLUVOT0RFViBpZiB0aGUgcmVndWxhdG9y IGlzbid0DQo+IHRoZXJlLCBzbyBpZiB0aGF0J3MgdGhlIGNhc2Ugd2UgaGF2ZSB0byBtYWtlIHN1 cmUgbm90IHRvIGxlYXZlIC1FTk9ERVYNCj4gaW4gdGhlIHJlZ3VsYXRvciBwb2ludGVyLg0KPiAN Cj4gQWxzbywgbWFrZSBzdXJlIHdlIHJldHVybiAwIGluIHRoYXQgY2FzZSwgYnV0IGNvcnJlY3Rs eSBwcm9wYWdhdGUgYW55DQo+IG90aGVyIGVycm9ycy4gQWxzbyBwcm9wYWdhdGUgdGhlIGVycm9y IGZyb20gX2R3YzJfaGNkX3N0YXJ0Lg0KPiANCj4gRml4ZXM6IDUzMWVmNWViZWE5NiAoInVzYjog ZHdjMjogYWRkIHN1cHBvcnQgZm9yIGhvc3QgbW9kZSBleHRlcm5hbCB2YnVzIHN1cHBseSIpDQo+ IENjOiBBbWVsaWUgRGVsYXVuYXkgPGFtZWxpZS5kZWxhdW5heUBzdC5jb20+DQo+IFNpZ25lZC1v ZmYtYnk6IFRvbWV1IFZpem9zbyA8dG9tZXUudml6b3NvQGNvbGxhYm9yYS5jb20+DQo+IA0KPiAt LS0NCj4gDQo+IHYyOiBPbmx5IG92ZXJ3cml0ZSB0aGUgZXJyb3IgaW4gdGhlIHBvaW50ZXIgYWZ0 ZXIgY2hlY2tpbmcgaXQgKEhlaWtvDQo+ICAgICAgU3TDvGJuZXIgPGhlaWtvQHNudGVjaC5kZT4p DQo+IHYzOiBSZW1vdmUgaHVua3MgdGhhdCBzaG91bGRuJ3QgYmUgaW4gd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