Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2591756pxb; Tue, 13 Apr 2021 05:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPthETIDm9J2ivxuiPicBDXD3vpmIpbInFNNZYddXzvkW6G9QcQ0GAGUaWuTlFE5RJWlGD X-Received: by 2002:aa7:82ce:0:b029:242:deb4:9442 with SMTP id f14-20020aa782ce0000b0290242deb49442mr28450130pfn.73.1618318115430; Tue, 13 Apr 2021 05:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618318115; cv=none; d=google.com; s=arc-20160816; b=hIsgjx98Hp5teZ7ovflw94iO3yzcuOxaTiCs9HriwjPjoDY1z8wPHHD7jvNE2SeJIa 0bN3ax6LwOUMXYHnStWVrg+iHAJymWfzQ53bTre+6Ic+wC3gRh8FudNkv3aNyayntzl4 W9Mf7af1qYr8sgRePmLXSsEI1E9zC46/pjlb0vJZxgdzFFqTU6SmKU3aN7IGzRfpSd1d BDH1KT7A4Hn+gyq/IC25tNiukBNeoa7QnT/4TpUnTREVL++xWjN3w/53d5G+4WpVbL/h hhu/nN/wxx9RFAws72kR4ddmqlpcKfVFEqCMzUvi2582MbaOoVliLR8I3u23eSLnSSw+ /3oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:from:references:in-reply-to :message-id:date:dkim-signature; bh=vjR5dU4DMIoxuGG6q3okhVL4E41C7AiEfxBRMoaWTE4=; b=ZmkfllDp0lpHFPzvxR029lkRLOZvO9UBY8G/eWvkjCl7Gq33XAJ7zk0DaQ9qAjiwTs 6/ZS2WZYjYMa8olw1QQApNCOjWWeC2BhClBu6PuF1R/x0mxE/OnsYSkD0d4qhEgkRg9u c9jl1fowP61mgzUYsUOX9qmeEH3nNC2lZJTbApRIg6Tq+ZioYFbDJxAzOHg3GJ8Nb6Fd /w5wR21uLgN26nvCiTg9FRDuIuKr2t6LT5i3bXL0Gm0hYQHhx429q4OQMwyXwE4Q9UQQ JHLg32mzXsVy+YqKynLK5osZkeJQxVAYy5lk1sIbdhdnQYTICXaFIxJNbXeMZkYp4kdS r9hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=kD5FjXJ0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x82si17541589pgx.204.2021.04.13.05.48.23; Tue, 13 Apr 2021 05:48:35 -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=kD5FjXJ0; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238367AbhDMHRT (ORCPT + 99 others); Tue, 13 Apr 2021 03:17:19 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:35716 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238338AbhDMHRR (ORCPT ); Tue, 13 Apr 2021 03:17:17 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (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 7F6554023B; Tue, 13 Apr 2021 07:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1618298218; bh=zf5Cqf60UGZVZhLQtjCB2JLjnqM9Qw3EKME53CBI2EE=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=kD5FjXJ0bLQKMJOf3AaJlZBEkYdH4foP2DJhZNS4zGvOuTwaq2B+OSAacnkCqmbui o+xZpgDDOTThlOk6sRzsM+IefIl3SYogq8KJjfdZ7CaU2XirvIZw116JtmRaA9xzzH LJm4T85KdVe3eABoU2DUn8v9lcQoL+Zn77zzr7c9X77Yom+HgpeYKnMZW4HDWWMVlo wWzJtMtvqtveFbKJ7Rf/boM2NEMefkX0kGBq8KKvfQnzGvWdEedbFLoVJ7duOBg3bh ZphXbFjnHeyQrLoW2ykoW0PdR4AtxIyyNdrp8VHNSJ+/un2rx6jMwftSOrPKu2Ycg0 1Sv+rUE+E0K3A== Received: from razpc-HP (razpc-hp.internal.synopsys.com [10.116.126.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPSA id A61F8A022E; Tue, 13 Apr 2021 07:16:55 +0000 (UTC) Received: by razpc-HP (sSMTP sendmail emulation); Tue, 13 Apr 2021 11:16:54 +0400 Date: Tue, 13 Apr 2021 11:16:54 +0400 Message-Id: In-Reply-To: References: X-SNPS-Relay: synopsys.com From: Artur Petrosyan Subject: [PATCH 06/12] usb: dwc2: Add exit clock gating when port reset is asserted To: Felipe Balbi , Greg Kroah-Hartman , Minas Harutyunyan , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: John Youn , Artur Petrosyan Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds clock gating exit flow when set port feature reset is received in suspended state. Signed-off-by: Artur Petrosyan --- drivers/usb/dwc2/hcd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index f1c24c15d185..27f030d5de54 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -3712,6 +3712,10 @@ static int dwc2_hcd_hub_control(struct dwc2_hsotg *hsotg, u16 typereq, "exit partial_power_down failed\n"); } + if (hsotg->params.power_down == + DWC2_POWER_DOWN_PARAM_NONE && hsotg->bus_suspended) + dwc2_host_exit_clock_gating(hsotg, 0); + hprt0 = dwc2_read_hprt0(hsotg); dev_dbg(hsotg->dev, "SetPortFeature - USB_PORT_FEAT_RESET\n"); -- 2.25.1