Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp200866ybv; Wed, 5 Feb 2020 04:07:12 -0800 (PST) X-Google-Smtp-Source: APXvYqx2sYrIHBDGv24TShctMOvxQqXvULGgtZG1IfKrO9ocnCR4Iwf/JFBiJouTzbCI50S9nlyG X-Received: by 2002:a9d:7315:: with SMTP id e21mr27052532otk.255.1580904432267; Wed, 05 Feb 2020 04:07:12 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si13033856otg.128.2020.02.05.04.06.58; Wed, 05 Feb 2020 04:07:12 -0800 (PST) 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=@synopsys.com header.s=mail header.b=k4N7IVeZ; dkim=fail header.i=@synopsys.onmicrosoft.com header.s=selector2-synopsys-onmicrosoft-com header.b=X+HwUBb7; arc=fail (signature failed); 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727109AbgBEMFx (ORCPT + 99 others); Wed, 5 Feb 2020 07:05:53 -0500 Received: from us03-smtprelay2.synopsys.com ([149.117.87.133]:39956 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgBEMFw (ORCPT ); Wed, 5 Feb 2020 07:05:52 -0500 Received: from mailhost.synopsys.com (badc-mailhost2.synopsys.com [10.192.0.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 0C5DBC0597; Wed, 5 Feb 2020 12:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1580904351; bh=EOkW2IkJtwyhjmP0Z2o8jJVLarggTibA+p6EhERtcE4=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=k4N7IVeZhRXY6TL0fkLLGFoslvDn0JaC8hfr52h6c3Cn3U4ShLOuQ11SfmhdFq4/q uBuyDvIr5/l7NCKBijP5ImP7vVQpPlsvRYYEYNvHaWECRGXL8Ocy+J7SQcig/n+tBv z+Kcr2mGAaTZyPWiT5YEwoQtGxpmT4InGorZZRACs8/jD9MhbYD462OO6KiorWR7M7 epyPy/jwDJr73wQD2UlXpLEtnTM+wvifNfxshhMvZKoEKp7W5n4ww0jMGT0my4Z0rR MJm9qKFzCFMbb4ZWhFUDzj9EhXTnkLoSo+btfmtAbYBn7MF45PBmhcgjwHgxOllh+d Xm7vZrkpFjM1w== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id E8895A0067; Wed, 5 Feb 2020 12:05:49 +0000 (UTC) Received: from us01hybrid1.internal.synopsys.com (10.200.27.51) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 04:05:39 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (10.202.3.67) by mrs.synopsys.com (10.200.27.51) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 04:05:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JttMwME1P/JniGexumefLWI62CcCVRrL7kNUa+OSMGNvqHmWFjZcLQO72t6P5cViN74193IrCTT4fs5JYY1YN7R4J/6Il1De3Vp1Xbupby4XxEjqLyAcJOIBeOHj4DCWm+CNsbABa3UrxcWmSASjKq7Y4OfSc7cIAmaJhwZrwmFdPp+7Vzy+nF41oGiuJy1dBLj+0FJz8fp9ncipPoUtwlIrU+QlwivMlGKXd8Mt6JNROAAMiNBfroGhNTEdBSpFz3K9DKo6eyjCYSp7UXjcb0JFzN0YBEo9DT9p6FDvO26MFS0qKvR0ZAIOqPeGoMmxynqnMCCzgMCu5DupTEP8QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EOkW2IkJtwyhjmP0Z2o8jJVLarggTibA+p6EhERtcE4=; b=Jq7+2LSTF3bzL3Js91HBgeXsPKB2GG7Nzcq+3w8azvtNkkDukcAt+O1yPTEp8XDtMVuvA5qYU8zGRuqfHTWlN/BYD2/Ql1HRmY5+qwg96Hoi+yhuRW9fk2mqQ0w4oxxLVbZr0M2YaVpg6uByOQ/2tY5GCO6acsF20nEIxb6a695hZFwnkY+0t07aNWGjALMwI0f0AT0g/2P5KPPC6xLsMJsmD7q2tSIb1GLdguzq0JQUkiNl84SDkwt2XEDO7oQEjSTadaL7AiKVNXFt2tMQCANWv1++YBbNyPrMDFNJZCqmG197ATPz1kyGIECyBKDJKyrATjwnxeN2lZkV7ueRAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.onmicrosoft.com; s=selector2-synopsys-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EOkW2IkJtwyhjmP0Z2o8jJVLarggTibA+p6EhERtcE4=; b=X+HwUBb7XfkcLKhohfKEhBSwB0eypOfxFNS7d8lzesWd9O9evKICWFgtSHzZW3tU144hoXsspPqnHXQlVTG30xjbDAdKWtWi5og+r2IdWtSwkBRHUUhePVAjhrSIbKBdrrllbW1pqsNVA8FPngkGX7EFpwL3JOnIy+Sm4KPtF9I= Received: from MN2PR12MB4093.namprd12.prod.outlook.com (52.135.51.203) by MN2PR12MB4221.namprd12.prod.outlook.com (52.135.48.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.27; Wed, 5 Feb 2020 12:05:38 +0000 Received: from MN2PR12MB4093.namprd12.prod.outlook.com ([fe80::35cf:644a:cfa6:72f8]) by MN2PR12MB4093.namprd12.prod.outlook.com ([fe80::35cf:644a:cfa6:72f8%7]) with mapi id 15.20.2707.020; Wed, 5 Feb 2020 12:05:38 +0000 From: Minas Harutyunyan To: John Keeping , Minas Harutyunyan CC: Felipe Balbi , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] usb: dwc2: Implement set_selfpowered() Thread-Topic: [PATCH] usb: dwc2: Implement set_selfpowered() Thread-Index: AQHV23AHZCKSO2mqU0iflYr2FT5Mp6gMPZgAgABCQQCAAAJugA== Date: Wed, 5 Feb 2020 12:05:37 +0000 Message-ID: <326e87da-1ac6-33de-1d6f-5ba4852c7e99@synopsys.com> References: <20200204152933.2216615-1-john@metanate.com> <34b74e48-a3ea-f68f-540e-121ae98afb31@synopsys.com> <20200205115656.3c698385.john@metanate.com> In-Reply-To: <20200205115656.3c698385.john@metanate.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=hminas@synopsys.com; x-originating-ip: [46.162.196.54] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 028cff06-d4c5-4940-8e17-08d7aa33b6a0 x-ms-traffictypediagnostic: MN2PR12MB4221: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0304E36CA3 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(136003)(39860400002)(346002)(396003)(199004)(189003)(53546011)(36756003)(6506007)(2906002)(86362001)(31696002)(71200400001)(8676002)(81166006)(8936002)(81156014)(76116006)(110136005)(4326008)(26005)(54906003)(6486002)(186003)(2616005)(5660300002)(66476007)(31686004)(316002)(66556008)(66946007)(66446008)(64756008)(478600001)(6512007)(91956017)(309714004);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR12MB4221;H:MN2PR12MB4093.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: synopsys.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EjRfZSI/Mg4daFipR9/2h5O9PAt92A1Sd1uwocgPyNIXbZ8Tjk3+BZzAAW0UqTGB9oiHzFYrUh5y5PsA3enB/sSLQHGkR/scKCVaf3go11RovGgUU79+tcxAh45NbjmERQyBnZxDzO5xELr5geTtoYZFiRpqoYUxI7JKhBseAvoyya5Wsa0SlX16gAWlyOnlMEesLj3l4xxHYE3GpE629CJucTAeMxjV5bZapumSitiF47lBwP+zqY/f1AKO6QzENu/j0n4erFELE8oho6jSBea4K6Mrykv7ooONdYVlJEHEN5GD50jBA0OGqSrJADoZE0KjDs+skSOngKRaUD3chTaVUd5YcYhZqz4I+Bbq5gdJX+Q7N5ftKLACw6SlUfKUfKfU2JgSnMDYiVPEpDsXUaZS4AfjlDJ8zUlenTCqB5cuKzNU9d5PFImGpVWGMxrStcHT5qnz5e3eXNpE5LRHr8NfvIppNoMOyRhxnSU+ZQhYBUhRNYol6HgiK7UQz0YR x-ms-exchange-antispam-messagedata: gVyiJ1AWKEpnENt5Rq+doY58G7iL/5oKU3KvnkwoQS0L7CmBS0pVIwnkEgncPa8HyXUmVKctMJjkdmrmgFurJxvM7D0iDQ5Ghtu7VxsxW3R+X60D0DouGPxx1IIMSq2osZC0qr5V1V/WWbdh43nDHg== Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 028cff06-d4c5-4940-8e17-08d7aa33b6a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Feb 2020 12:05:37.7944 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c33c9f88-1eb7-4099-9700-16013fd9e8aa X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: adwIaRwJbJ5UDAlyux5oV7TzOxYUwh8wjsMXE24P+EnZS1VCegjtSZca1f2ND5tYBB7sVP4ssLjEtoJA35/mIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4221 X-OriginatorOrg: synopsys.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksDQoNCk9uIDIvNS8yMDIwIDM6NTYgUE0sIEpvaG4gS2VlcGluZyB3cm90ZToNCj4gSGkgTWlu YXMsDQo+IA0KPiBPbiBXZWQsIDUgRmViIDIwMjAgMDc6NTk6NDggKzAwMDANCj4gTWluYXMgSGFy dXR5dW55YW4gPE1pbmFzLkhhcnV0eXVueWFuQHN5bm9wc3lzLmNvbT4gd3JvdGU6DQo+IA0KPj4g T24gMi80LzIwMjAgNzoyOSBQTSwgSm9obiBLZWVwaW5nIHdyb3RlOg0KPj4+IGR3YzIgYWx3YXlz IHJlcG9ydHMgYXMgc2VsZi1wb3dlcmVkIGluIHJlc3BvbnNlIHRvIGEgZGV2aWNlIHN0YXR1cw0K Pj4+IHJlcXVlc3QuICBJbXBsZW1lbnQgdGhlIHNldF9zZWxmcG93ZXJlZCgpIG9wZXJhdGlvbnMg c28gdGhhdCB0aGUgZ2FkZ2V0DQo+Pj4g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