Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp777411ybz; Wed, 22 Apr 2020 07:50:39 -0700 (PDT) X-Google-Smtp-Source: APiQypL0dCnxi0HALXsy4TUInjQFtnaX8JqDcdN4S+XorGoG8hdShEqzueN7htxfKRE8vlc4PU3F X-Received: by 2002:a17:906:16d0:: with SMTP id t16mr25711679ejd.303.1587567039303; Wed, 22 Apr 2020 07:50:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si3966120ejr.370.2020.04.22.07.50.15; Wed, 22 Apr 2020 07:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=GhZrAiHg; dkim=fail header.i=@synopsys.com header.s=selector1 header.b=eRYzu79i; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726718AbgDVOtD (ORCPT + 99 others); Wed, 22 Apr 2020 10:49:03 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:60962 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgDVOtC (ORCPT ); Wed, 22 Apr 2020 10:49:02 -0400 Received: from mailhost.synopsys.com (badc-mailhost1.synopsys.com [10.192.0.17]) (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 CC6C6C0B87; Wed, 22 Apr 2020 14:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1587566941; bh=38TA8zEJ2eQQzm3e3PrgiAixNlTw7edM3oLvlFL5vLA=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=GhZrAiHg4gDQdL44m3Qk6ZI53cbxXkXdsPFiD70dRSWRJM2iFOvaIgR/bURVgJKvB i9wpeY01UJ/GWxXgPZ+ENb9c43EEVWuXlljF32JTs2Wj1dvGBM0ap1b1c3CeBk1Rss P640doklJqDNC3OalpJrh+Kc23XtlUNR2hB7mIl02ZBWiraST/hNqAiC2MZre52gQ/ ZuHIGjHTnWFV6IHVhxX59NdwPjFTPCjpsFkCjw389DSqEg2ucOeglslHGIAm6DaOeJ KIQejdM/c94prJdURtaMO38u6/Pe3f5sffnPH1c64lot4L4BsDBL2PaMGvv5lLJXgv rZOPe6j1kG1wg== 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 49E4BA00D4; Wed, 22 Apr 2020 14:49:00 +0000 (UTC) Received: from US01HYBRID2.internal.synopsys.com (10.15.246.24) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 22 Apr 2020 07:48:55 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (10.202.3.67) by mrs.synopsys.com (10.15.246.24) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 22 Apr 2020 07:48:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQq4X4cZCh+F3uwBaHGWD8mZ0KdLqDqa5dh67PTe1fqZYoJIpQcGTdEAiNSvFvqWsKtLTNZArPSBXf8P1WcNFiSKAzQ1gtwUHbgR1LEBQCo7Hz4LGH8+d+H5xXG60be+S8TZVWYVDko7UXIMC552KZjp92KC7mtijCZn+mXoDwVWU9Lh0TY5uc9F+rUW0iZyZYZWJKB0NT5QJ61qb0CVnEgYyEMhDePcBOSNL9IgfnHfKs4D5n4x10k70qo0uOwFXjxEC9azdxeHHo43Q+cQLXCU25kP4dQLrc7kgkzg27+ObgMhmr0Jsoh4OFldbx5yEcL73vMjrm0TaAJnwt9Crw== 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=38TA8zEJ2eQQzm3e3PrgiAixNlTw7edM3oLvlFL5vLA=; b=E1lQX+5By5JL1R8bulsyIiYP83KVS/l4ocmQFEwiZSQ87QYYMrGVluCI9AH0zLNIAAxRG+Gmn9tekGBwa8Bj/DFqVNBTnuVLlAut2vdqhS2+g3PwyeBJ7cblXA2GdSW6twZIPTSiDDRghzF1FXpirb/QLOCgyS//Ith7v+9vomySRdFLE1XlagYvQhiVrc6hSPzDwIveWluyJ1dOZ11QuZoVxk0p2SUD364IyOQ5x6dfp97NY31ZNZBVDBjoyzyF/ZZR6vjA+WC5pM4BS+2Hs8Oa/j5cbFS4tofRFdWtVaWrTbrkvCj5iXakDBli9DvaZshPFr9UrDPIfH7s0T45zg== 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.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=38TA8zEJ2eQQzm3e3PrgiAixNlTw7edM3oLvlFL5vLA=; b=eRYzu79ii8jSzomKSCoUPzPYPa93Mqn/2UJX8bWmybpKdukcuLDkFLXqga57otFAH6p3RGUO5j61si8d5ryG6QbfVLQLC2wgpjBtL2tg34xbloLCt1Lkf0KSPpkxIhHqQpPLiDDUihGrNolkqFOrHI0bTI5DPIE2SwrnDcT3l+w= Received: from SN1PR12MB2557.namprd12.prod.outlook.com (2603:10b6:802:22::15) by SN1PR12MB2574.namprd12.prod.outlook.com (2603:10b6:802:26::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.27; Wed, 22 Apr 2020 14:48:52 +0000 Received: from SN1PR12MB2557.namprd12.prod.outlook.com ([fe80::20d2:fe98:5580:932d]) by SN1PR12MB2557.namprd12.prod.outlook.com ([fe80::20d2:fe98:5580:932d%7]) with mapi id 15.20.2937.012; Wed, 22 Apr 2020 14:48:52 +0000 From: Minas Harutyunyan To: Fabrice Gasnier , "balbi@kernel.org" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "amelie.delaunay@st.com" Subject: Re: [PATCH 1/4] usb: dwc2: gadget: move gadget resume after the core is in L0 state Thread-Topic: [PATCH 1/4] usb: dwc2: gadget: move gadget resume after the core is in L0 state Thread-Index: AQHWF9kltb5ivodInUCMhTw1JrJADqiFOpOA Date: Wed, 22 Apr 2020 14:48:52 +0000 Message-ID: <5391768a-da52-def8-9b2a-aeb559d8e26b@synopsys.com> References: <1587472341-17935-1-git-send-email-fabrice.gasnier@st.com> <1587472341-17935-2-git-send-email-fabrice.gasnier@st.com> In-Reply-To: <1587472341-17935-2-git-send-email-fabrice.gasnier@st.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:68.0) Gecko/20100101 Thunderbird/68.7.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=hminas@synopsys.com; x-originating-ip: [198.182.37.200] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d88aa6a9-9df8-43e5-7881-08d7e6cc46a1 x-ms-traffictypediagnostic: SN1PR12MB2574: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 03818C953D x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN1PR12MB2557.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10019020)(136003)(396003)(346002)(39860400002)(376002)(366004)(8676002)(53546011)(31686004)(6506007)(110136005)(316002)(54906003)(2616005)(86362001)(81156014)(31696002)(478600001)(186003)(4326008)(71200400001)(8936002)(36756003)(26005)(91956017)(6512007)(66556008)(64756008)(66946007)(66476007)(66446008)(5660300002)(6486002)(76116006)(2906002);DIR:OUT;SFP:1102; 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: J4OLJ5PiRHKX3s/6wpY1JCKp9+/ZdJN0oaeqjkrtrDZZWMWa+1qYU/qrkLRAtBg/VWBeXv9MTrWCUDESws8Ofhwfr9iecgzU7MiWvOxEZ/tbJdMd65B25i5yREDPqcm+a1qb+3VtZ4KlUEGDKErYYWmuIrm+3PxYR8n3rbZZdfMXgnmzk7zf43eb8xrXIvm5OA/4j89K0Ay6uRyd9syAoBV4V/HUuNwVjx31SbLY7ffIni2hMqk1rp0S+w2r9qh/arzcwUzCGftQ5M8AIqP8Xls5I8NLMv8Os79TFEerCk0VwRUkWZOmg6SrCm4AlVMeb7D7GoM/jaAb90/VPys/JfBk0hU5iBcQlm8MN7Jh3/iSdk+kjZPZZ+pbSgrDDBjKaSu3yTt/xBXTrDQcDcWlM92oenIp9EaT66cnOor/gFflTzh3vZEyGKRHrOJdL3sj x-ms-exchange-antispam-messagedata: E0t0i/JSmyD5/Kmy+Y64lWC1yRsGF5EHCfqJT7gGE/d0qEWPhNlWHcBIu4IZ1K4iGsjp0p/cGwN6mxsiu2J3yxoeuduNwXqWV/HiadQtndelpkcpXWW9rfcUNZm0JDmu2lXCB0t1NPHVphWmhzX77g== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <44B65D7E0EC7F24DB7E0461B4EFC89C7@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: d88aa6a9-9df8-43e5-7881-08d7e6cc46a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2020 14:48:52.6679 (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: cE5tO3O/59GpLnGUDvMO9VckQE/G04wCYkv+OBPLf7ZxJMfoIQUEzh9MZjJDbhHQXxgLdieKLB3IaYVCxHrdHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2574 X-OriginatorOrg: synopsys.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRmFicmljZSwNCg0KT24gNC8yMS8yMDIwIDQ6MzIgUE0sIEZhYnJpY2UgR2FzbmllciB3cm90 ZToNCj4gV2hlbiB0aGUgcmVtb3RlIHdha2V1cCBpbnRlcnJ1cHQgaXMgdHJpZ2dlcmVkLCBseF9z dGF0ZSBpcyByZXN1bWVkIGZyb20gTDINCj4gdG8gTDAgc3RhdGUuIEJ1dCB3aGVuIHRoZSBnYWRn ZXQgcmVzdW1lIGlzIGNhbGxlZCwgbHhfc3RhdGUgaXMgc3RpbGwgTDIuDQo+IFRoaXMgcHJldmVu dHMgdGhlIHJlc3VtZSBjYWxsYmFjayB0byBxdWV1ZSBhbnkgcmVxdWVzdC4gQW55IGF0dGVtcHQN Cj4gdG8gcXVldWUgYSByZXF1ZXN0IGZyb20gcmVzdW1lIGNhbGxiYWNrIHdpbGwgcmVzdWx0IGlu Og0KPiAtICJzdWJtaXQgcmVxdWVzdCBvbmx5IGluIGFjdGl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