Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2600262rwn; Fri, 16 Sep 2022 12:58:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gDLzEPEUskDSAHyvw4b2AxNN4PuoCJIa4lUHVWQZ+CWBwCf9bQhhNTP6+t/JPXXOVuxP4 X-Received: by 2002:a05:6402:379:b0:450:dc5c:f536 with SMTP id s25-20020a056402037900b00450dc5cf536mr5290399edw.298.1663358301933; Fri, 16 Sep 2022 12:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663358301; cv=none; d=google.com; s=arc-20160816; b=EAC7gXUI1jmJpy/U+UOc/xxkd7OOIHCJI45/7iGglvX018bSH8LzqqOOp6Ybt0S4MY Ta0qTGdFjVhpqfxqkDAGb6WewcU3kxm7r8UTmLEoBewSRieXJ06QLz1QSolJHITYdQYJ RGZAOXWo4PZa8M+KZ9Dl/K8s/OVlQzcuM+FOgFrmbMRoZHQlcVOOdK1HBSxMZhCNhdCY HSw99NJerx7Ok9xgczU3Bw2/84DpnWrkyWx3It3ov0q++vfTX99J1GPPoEX9UtAovo7T ErSi97DtUzhu5bpMPbNHRl+Th7Z0C56Nnl+aKNfqmL4R1ydDOKBaLk/b1hmB/+fRI8mi Xuog== 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=/Dx5fm0RqR5Xeoi260vUuyg3SaG9oF/BoR5t/W8SvDw=; b=PFTtUQetiNfnvZlNZNtVcSTpjYnuOFODL/w5h70diPuJ10f/9pzD1qNADxPdovhN0z 2jnGbddT5PLSbZ+UrhA0FUYk0biuPU+OlYpCfG/4nQHmPB/1V2p3yOMqGwkA9aMh3MCJ 7jiGSs1xykwNExDBm4KJrpngW6zUSTvbQPDDMJUK32TjCkikGKgPTQQhEob8CMQFajnK wB+1JrlVQsP9gMJVxd5g9HPwP30iRfUPVVECPCrjMeuwghmPAz+BwSqvCYd91UcZPJWD wWJLN8REAgtYo2BDfk5Tqwymzlrr8Nm1K/RECTmW4Us1bl26ZzFmxLmbE/sI+ANFTMne D5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QRpf35OS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a056402281500b00451a3b1670bsi3577319ede.539.2022.09.16.12.57.55; Fri, 16 Sep 2022 12:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QRpf35OS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbiIPTHH (ORCPT + 99 others); Fri, 16 Sep 2022 15:07:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiIPTHF (ORCPT ); Fri, 16 Sep 2022 15:07:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4997FA6C0B; Fri, 16 Sep 2022 12:07:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E8CB5B828FF; Fri, 16 Sep 2022 19:07:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B44EEC433D6; Fri, 16 Sep 2022 19:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663355221; bh=uVb/OpxkjxZvGpMjJCBUfOYKFcSN1A5P5jgb3RoZdEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QRpf35OSJJIk1lN/3zpnesC5MPYXphUvNSRJecsPVUHfKokyS3NRtamGLjdokI63F AMDSYmprvNrPbT9YpPCUHLdf6HYr4UCIr3zm1iydITRAd/pJZGnWxFtCv3V+j+QbPR 2gDx3XZIQ5gomf9KP5VNtbC2+Q4T4UlAeg39QIlUe2g49wxfccBh+zdmFsoga5VzuF xVs4uFetUhSTpU58/aEWjhuopsELN22Mkwz2PFGKBOEPSzlqYosdACTfGzZgm5o/XE P4uQGaHsBPVxTdT9gWq6Zo/ONXDCkT48df0DKdmQbWZ3sHhijtFW8OqxYtwpnop+1o wk/6tzw/9bXsA== Date: Fri, 16 Sep 2022 14:06:58 -0500 From: Bjorn Andersson To: Rajendra Nayak Cc: agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org, mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, johan+linaro@kernel.org, quic_kriskura@quicinc.com, dianders@chromium.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v2 2/3] clk: qcom: gcc-sc7180: Update the .pwrsts for usb gdsc Message-ID: <20220916190658.2g7hegdkl6efda6r@builder.lan> References: <20220916102417.24549-1-quic_rjendra@quicinc.com> <20220916102417.24549-2-quic_rjendra@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220916102417.24549-2-quic_rjendra@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 16, 2022 at 03:54:16PM +0530, Rajendra Nayak wrote: > The USB controller on sc7180 does not retain the state when > the system goes into low power state and the GDSC is > turned off. This results in the controller reinitializing and > re-enumerating all the connected devices (resulting in additional > delay while coming out of suspend) > Fix this by updating the .pwrsts for the USB GDSC so it only > transitions to retention state in low power. > > Signed-off-by: Rajendra Nayak > Reviewed-by: Matthias Kaehlcke > Tested-by: Matthias Kaehlcke > --- > v2: > Updated the changelog > > drivers/clk/qcom/gcc-sc7180.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c > index c2ea09945c47..2d3980251e78 100644 > --- a/drivers/clk/qcom/gcc-sc7180.c > +++ b/drivers/clk/qcom/gcc-sc7180.c > @@ -2224,7 +2224,7 @@ static struct gdsc usb30_prim_gdsc = { > .pd = { > .name = "usb30_prim_gdsc", > }, > - .pwrsts = PWRSTS_OFF_ON, > + .pwrsts = PWRSTS_RET_ON, I presume the same should be applied to gcc_usb30_sec_gdsc? Regards, Bjorn > }; > > static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { > -- > 2.17.1 >