Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2755565pxb; Tue, 13 Apr 2021 09:24:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy80WqU7lIYOzbYUbLcumLFSuJvGcdMgJBnW0a/DDSvthBjeSDwQFqoOXKUw3DOHmSa6LSc X-Received: by 2002:a17:907:f93:: with SMTP id kb19mr10687625ejc.207.1618331042350; Tue, 13 Apr 2021 09:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618331042; cv=none; d=google.com; s=arc-20160816; b=yrhT8bxDI0mYUhNpM8N6bL4/083uHLfSQFuOWbmDQ4aVlG+0fzPIw8u0AwiK0pqQkS XgxyS846rYhDyuctan4/lY4PwsrOmjwv53Gm5qv3TP+D6boR3eDtuSa+RjYgP4E86tjq AKxos8a2rD4uHLHtO77Q8MeTP+mOOYwpBO7i/qiOXxor47c+rnpN+di/y+0VTuoqN1am pLmVLpeECWho54dqjlDm1AshyopTfOyCVz8KD/DKEDTWHwm8hF5mwZEqnztMNy+vIZ56 BvDgTdSxpv0E/zMxDA1+eh7D7/OHpxSRM8Af06HTQdSoBpn0A8cQO4DIG4BO89+poD3d BS/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2ASxn6udfLk7fTI9NyMBVOfc5B+KIphmqkOJ2ctioVI=; b=RjMgr8S4fDn5wzu0fBKn0OJ2Qk4AsDjxe6n2Tw/EDbhm/8PN4/LIX2h2zXqwmyu+qk cxPEbhd8+5NEHc475axU2+K3ZqZUkXLagMRuEt8Sd6MfcZTiWAeP6O5aZaR/5lAkk0+7 kn4HRj0iqMCt6z+S2tTmuF2xnqcWCoX4ij84JrYRH/+Gp6rcXOqmqTxEf3LIx5kOBRGs feGYZgQmu3PKF/Jpk1WhBsQKkgAL6hqjIco/kfCNmKDUZNAPjcvmRM8GPPM/spK/D7Ub FeJl03PdWbeQZNbcmQMJs0ZmFmeYD28FIAIofolPUD+sNA9D1D0WunVqMX7GsLcLFV8Y mi5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vMn9xkkj; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si10712280edv.534.2021.04.13.09.23.38; Tue, 13 Apr 2021 09:24:02 -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=@linuxfoundation.org header.s=korg header.b=vMn9xkkj; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241408AbhDMKZR (ORCPT + 99 others); Tue, 13 Apr 2021 06:25:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:44162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbhDMKZQ (ORCPT ); Tue, 13 Apr 2021 06:25:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 266A6613BC; Tue, 13 Apr 2021 10:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618309495; bh=ONbuNQKp4fLe2bXBPC0OBnwwqYpiefNv8y21f4kKdvQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vMn9xkkjtmrWuorc5uSelPm2QrS+0jAN9sEyslN3+Wac72MPnsWzYwQpT64qjE1x6 0LEaGRZmMHFdgPjsOVOpp9WwSIXrJd91lpoiipqpZV39NBecaOIo4ZFryDpwu91DV6 Uc1FXC0/ZxIX8y9seQrHLp09QBGPQJGUQ5uwcrVU= Date: Tue, 13 Apr 2021 12:24:53 +0200 From: Greg Kroah-Hartman To: Sergei Shtylyov Cc: Artur Petrosyan , Felipe Balbi , Minas Harutyunyan , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, John Youn Subject: Re: [PATCH 07/12] usb: dwc2: Update enter clock gating when port is suspended Message-ID: References: <9ed1da9780cddf995841cc5867f195024f5a16d9.1618297800.git.Arthur.Petrosyan@synopsys.com> <2dc3798a-6a89-b363-aade-e127decfdf20@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2dc3798a-6a89-b363-aade-e127decfdf20@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 12:22:35PM +0300, Sergei Shtylyov wrote: > Hello! > > On 13.04.2021 10:17, Artur Petrosyan wrote: > > > Updates the implementation of entering clock gating mode > > when core receives port suspend. > > Instead of setting the required bit fields of the registers > > inline, called the "dwc2_host_enter_clock_gating()" function. > > > > Signed-off-by: Artur Petrosyan > > --- > > drivers/usb/dwc2/hcd.c | 19 ++++--------------- > > 1 file changed, 4 insertions(+), 15 deletions(-) > > > > diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c > > index 27f030d5de54..e1225fe6c61a 100644 > > --- a/drivers/usb/dwc2/hcd.c > > +++ b/drivers/usb/dwc2/hcd.c > [...] > > @@ -3323,22 +3322,12 @@ int dwc2_port_suspend(struct dwc2_hsotg *hsotg, u16 windex) > > break; > > case DWC2_POWER_DOWN_PARAM_HIBERNATION: > > case DWC2_POWER_DOWN_PARAM_NONE: > > - default: > > - hprt0 = dwc2_read_hprt0(hsotg); > > - hprt0 |= HPRT0_SUSP; > > - dwc2_writel(hsotg, hprt0, HPRT0); > > - hsotg->bus_suspended = true; > > /* > > - * If power_down is supported, Phy clock will be suspended > > - * after registers are backuped. > > + * If not hibernation nor partial power down are supported, > > s/not/neither/? It's fine, not a big deal at all. greg k-h