Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7565451rwn; Wed, 14 Sep 2022 00:15:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4QF7rrbtvEaPITVX0J8Lvuf0GZS7crBJBiw4FrOkqH1lOmWFFXtsp5eUu/HFlRDb0eD+w8 X-Received: by 2002:a17:907:5ce:b0:730:bae0:deb with SMTP id wg14-20020a17090705ce00b00730bae00debmr25177740ejb.181.1663139706038; Wed, 14 Sep 2022 00:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663139706; cv=none; d=google.com; s=arc-20160816; b=jzQn1kEpFSFrfCRiREguD9GaFcKJu4e8KdcZDLZsjUd5AZJimnaEp18Aaj07cRAzmu DazejCFCNkyKWITpMB4vZ0GZHr0vKD9H9gYLqLmaKyKAzDVvYXze6qa6u4WKyceI3EEq v9LT+MgVDJXqj9y6pJUXIn3RyaHW3SAAwO4ESbopVSZVwKJasMIjEidkyBwBmsqB47Fv rkMkJN5caOa1j9c+sE19I6INlNLYWDAsCOlgfjjue6g3R/WjHMn9D7jeGxxCMMhlgklX kO3+8Ehk5UnsHuDTDaIxYeUcX8R1EYazezwbsXDSkY9d+7vpBigB7tVrP1YguifSgtaH ydjA== 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=Vvz6i46CIV9usWtx+dvC6C5x2yIraLAuZQOMXQIiH2k=; b=UhJPloG0MeR7O6hhkZpA/3n3Fhhxrq78rteTmnXYQPbNfhDKHOQURCTRBemHT6rere rgMt9bfpaUvGPPSmEaOA72Mklmv8ZD1njt4+HDcIoMkwaqU1ZICjo5j2pF1SN1h7Yqj6 cZ65AL4SFhNO7p4nwWk/0uaEQOU8ArKma9C7lhTe9vveNlO4hzfWucJFyZrjBUIsF7ii TD/A1quPq9k1og6DST4X7hrMJ3VvfUBjBu++Dl6NU463hbubRR8UgQHF6ic/VrNXJ4UG xUaz1B4maGQIwSnl2iwKyiCyOcsnUoRA+vp5WxPdeqHYM+wv6ImjxQ8uFmk5k05oxV0c dMBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G9WzKer3; 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 h20-20020a50cdd4000000b0044efa993924si1869005edj.298.2022.09.14.00.14.41; Wed, 14 Sep 2022 00:15:06 -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=G9WzKer3; 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 S229913AbiINHJ0 (ORCPT + 99 others); Wed, 14 Sep 2022 03:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiINHJY (ORCPT ); Wed, 14 Sep 2022 03:09:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E37C5A8A7; Wed, 14 Sep 2022 00:09:23 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9E655617C2; Wed, 14 Sep 2022 07:09:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F179FC433D6; Wed, 14 Sep 2022 07:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663139362; bh=4qaiOzRX06Dcp86Qw4AyJXoFbpAVDJ6myGvrqmUKEVM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G9WzKer3Fcmv9pO/0wa7orIhM29sqOtc5CKviBsgf8TZ6WMDjGK7YybhHooprjrDQ CKqyXLvhL2EqsEosAFSk9v1+9ohcxB6uC2ZhpCE8c8MiR8IhJnsWcYZtJR8ELn+oaG J8kNucIEkvZk+JGmZ8uRKbOx49w7gEyhvZX4SAiLmGXHJVyOq4DsJLJpRT80j8vtKy EUtAd1n/MNVtQUlpXlmdHwT3Th/if1G/cHRacpi+ekzzuXbfQFXms8FN2FajNCkxhq I/gTvEDFpTBalSIygYF6vzX03gbFGbZWIjujZNYFAeOlrNnDC6hglY4B0u21mWMGuw 8NjTOcju0bz2w== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oYMWQ-0003Go-2T; Wed, 14 Sep 2022 09:09:22 +0200 Date: Wed, 14 Sep 2022 09:09:22 +0200 From: Johan Hovold To: Rajendra Nayak Cc: andersson@kernel.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org, mka@chromium.org, johan+linaro@kernel.org, quic_kriskura@quicinc.com, dianders@chromium.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] clk: qcom: gcc-sc7280: Update the .pwrsts for usb gdsc Message-ID: References: <20220901101756.28164-1-quic_rjendra@quicinc.com> <20220901101756.28164-3-quic_rjendra@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901101756.28164-3-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,T_SCC_BODY_TEXT_LINE 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 Thu, Sep 01, 2022 at 03:47:56PM +0530, Rajendra Nayak wrote: > USB on sc7280 cannot support wakeups from low power states > if the GDSC is turned OFF. Update the .pwrsts for usb GDSC so it > only transitions to RET in low power. It seems this isn't just needed for wakeup to work. On both sc7280 and sc8280xp the controller doesn't resume properly if the domain has been powered off (i.e. regardless of whether wakeup is enabled or not). Are you sure there's no state that needs to be retained regardless of the wakeup setting? > Signed-off-by: Rajendra Nayak > --- > drivers/clk/qcom/gcc-sc7280.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/qcom/gcc-sc7280.c b/drivers/clk/qcom/gcc-sc7280.c > index 7ff64d4d5920..de29a034e725 100644 > --- a/drivers/clk/qcom/gcc-sc7280.c > +++ b/drivers/clk/qcom/gcc-sc7280.c > @@ -3126,7 +3126,7 @@ static struct gdsc gcc_usb30_prim_gdsc = { > .pd = { > .name = "gcc_usb30_prim_gdsc", > }, > - .pwrsts = PWRSTS_OFF_ON, > + .pwrsts = PWRSTS_RET_ON, > .flags = VOTABLE, > }; And what about gcc_usb30_sec_gdsc? Johan