Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3699349imm; Wed, 5 Sep 2018 04:42:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZUweku/+jCFKLAutKjuYzrKBSADzV0uKz65i8/+1m3ycgqH1hUnmYV8R0izEOpx+sNTmS1 X-Received: by 2002:a63:f966:: with SMTP id q38-v6mr35180469pgk.213.1536147720455; Wed, 05 Sep 2018 04:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536147720; cv=none; d=google.com; s=arc-20160816; b=fFjxcXb2A/DYY7Cwj2R/dZmj3CVYzOsX5MxSuEWzCcfnWH6fzYcH6krqjdMnXdr0Ay LZjmn+p0paqAEieb9t4zAWqidV/PsEpIv8K5lxzC47dfvrh8L00wi1vkN5K3OygZbpk/ U20Wsnla/Mn6gqm9tqJdSC5AhKS9Gm7bygcCNtHrsBpH/48JFmlkthnfy+lcpn9zhRIE 5fPJs2njtHYKk8Au/MQBOOAOnmNrcO4sYlaWQVEs3kr61F5zOIZEgMKAW0AWM4s4ZyCT 91M3R/ftWCYtozAlXTt8X68ywfHNMoRrHgughX5sfzh15FRl9ESDOxC0QafLsn2k1c40 z1UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=0mj7/LvvQd9LMk8tvqph0i/9fUuL0ORiQU/rqVWt5SE=; b=MkeI+5g36IaocNBnsA7a4VdlAHlg1wJI2ezIQhMOBlDeUWyC8STxvlApxh8jUpEpL7 AzUZ4/Ht7h9eUgUbJXYS9uUFGAQy75G1dvIAqj0IWnTKg9Evl72mxpoxmCsA3Io8hHGg m3B5Pslefxy70raNitWko2wGL/y3Vu38owmXddzWktKSAeqB1OPxVFe3yOKOLzLg+EgZ fBMqBdFeOdjkzLaz8hffiuxbIkChDSWrSXYzgQnqwKlikfZn63EtjE3cnjAuebmHW2xD M/PWMsndV8XHaIz/aXPZEo7BRNcGNRLxAeOOSYpbtF/YBvbM5usbIL1/GwehuIJudbRT d6HA== 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 y2-v6si1741509pli.100.2018.09.05.04.41.43; Wed, 05 Sep 2018 04:42:00 -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 S1726416AbeIEQKV (ORCPT + 99 others); Wed, 5 Sep 2018 12:10:21 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:33134 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbeIEQKU (ORCPT ); Wed, 5 Sep 2018 12:10:20 -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 w85BYEBW004130; Wed, 5 Sep 2018 13:40:23 +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 2m7g7wxh5t-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 05 Sep 2018 13:40:23 +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 774C134; Wed, 5 Sep 2018 11:40:22 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 578372B7F; Wed, 5 Sep 2018 11:40:22 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 5 Sep 2018 13:40:22 +0200 Received: from localhost (10.201.20.5) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 5 Sep 2018 13:40:21 +0200 From: Amelie Delaunay To: Minas Harutyunyan , Felipe Balbi , Greg Kroah-Hartman CC: , , , Fabrice Gasnier , Amelie Delaunay Subject: [PATCH 0/4] usb: dwc2: fix host mode external vbus supply management Date: Wed, 5 Sep 2018 13:40:01 +0200 Message-ID: <1536147605-26279-1-git-send-email-amelie.delaunay@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.5] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-05_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes and improves host mode external vbus supply management, mainly around suspend/resume use cases. It also avoid 'vbus regulator" to be requested lots of times upon each call to dwc2_vbus_supply_init(), especially when pm runtime is enabled. Fabrice Gasnier (4): usb: dwc2: get optional vbus-supply regulator once usb: dwc2: fix a race with external vbus supply usb: dwc2: fix call to vbus supply exit routine, call it unlocked usb: dwc2: fix unbalanced use of external vbus-supply drivers/usb/dwc2/hcd.c | 45 ++++++++++++++++++++++++++++++++++----------- drivers/usb/dwc2/platform.c | 8 ++++++++ 2 files changed, 42 insertions(+), 11 deletions(-) -- 2.7.4