Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3892873rwa; Tue, 23 Aug 2022 12:02:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR7EHvYl7pOi0d1UjLWAdQspsgSDYcH94QDK2VfGVI+bg3SF3Y1xypUx0CvBzhq2DNH+eTei X-Received: by 2002:a17:906:9752:b0:738:364a:4ac with SMTP id o18-20020a170906975200b00738364a04acmr613187ejy.759.1661281323341; Tue, 23 Aug 2022 12:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661281323; cv=none; d=google.com; s=arc-20160816; b=rcIdazIZZEZyv0xFl8pUNl3OpYNJV0ekiUGX4NHpA9uz/RciIuis6d2RmlAJAt/O7C zlnFZZLH17sjpR3dP7CHRL6m8TnUTgvFHB69ZGq/nJecGSQGbrcmEd/pC8sLZEKKg8L4 txLRDke3zTny5NfVVnlooDLzHzRHaBExpGFA25x26oiGYWEzyydFCGBK1S1K+NJhApSu IKS9/NylihqsaH9s3Iofu+yKjwH4kzFwhCt1h6qM8cYoMlfDGebD5FQ3+3npzhkaY0pS wPW/xAzdNyCoBWi6roSTrf1V6VUtXQFuRHIzeRRV+KjZJvZpCCNszXNARVHEuVWL4Ya0 eahA== 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=CiTVAMBmeZgTNns54/ZRjjMIll+fZRM35ET0N/iSCew=; b=QdnXC9ICigLARHVpA8KbnwwJy/Pfy7ywThAdBIEAk1dGQGld4n0SdPmrRAypQ4jADj OZsEoDsDePKFrtvSAHfyT8h/lshnP8hkMKpL9fxYKanDOzXlqix1lWm4zz6zejBO6xTq hZahTE69b1dbTRWTbw/o86KX01WKhHdqovImSxzTyvPA1ejH3FOZONlRXmI/EE+UzlM+ zJBpoFoh3TB+LQInEfn4jeCvUwzxxOHVF/Hww0tvlaviznUVqvk+X8ROSMKhScvda3hx TeiM8MbCaIUxK3VtOi/0x1d+XN54KACkMakGf1dd6GXSL706LtyrgxGTbtLRiXBXKwQg 50/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gM9QSsTQ; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i23-20020a50fc17000000b0043ed80b44d9si1170271edr.142.2022.08.23.12.01.37; Tue, 23 Aug 2022 12:02:03 -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=@chromium.org header.s=google header.b=gM9QSsTQ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231276AbiHWSZz (ORCPT + 99 others); Tue, 23 Aug 2022 14:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232798AbiHWSZ0 (ORCPT ); Tue, 23 Aug 2022 14:25:26 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE847E814 for ; Tue, 23 Aug 2022 09:42:55 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id d71so12731636pgc.13 for ; Tue, 23 Aug 2022 09:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=CiTVAMBmeZgTNns54/ZRjjMIll+fZRM35ET0N/iSCew=; b=gM9QSsTQkKhWzpfwX/ZmC9QIytz881CKpNrrJlXiSi70CtWBcfBGdCBmHaLM2eWszH FK+bdgBu9fnF6/omQ5DvDr/CNzqUfLnL3lM7LHAVyiHcQCRltHkopFIcHkRarM3g/s+7 Q86Y/S49n0krQ2Bl+DoWxWEtpo0Xu18WStexI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=CiTVAMBmeZgTNns54/ZRjjMIll+fZRM35ET0N/iSCew=; b=1mby4UAU8klZFnUsV0CZSI4mZFuVsGQ/uhHQxPjdMJAuXkJYm18zz2uw8XertcpC+P HPadWUofLIGyGrK1EkIN8o+Fk6+j8+00/W4g2f6ZOe5cc36ZOH/rn1NRr7MOYAmPinm9 cUl2S4e3sQrQZq7Ib4N558BnuF9gPR2DSWQI/85UWXsTuPfH22nHHLN6NVBuW56reXM7 ZcwCPvr3bZyA0c78y+VKulU1yQseg253ASrGa32rDFoSk2SwXf0+kFF5MGxSSH4fA7/r kOLZsvW9MBPTBm3yfxTa3EUsmtGS5jSopwfpmm+1NG4aTw7BXugsUtqQGJHBuCUzXkJP 4xqg== X-Gm-Message-State: ACgBeo1iJgcK32JXqq/0H3VYoVS4bwg/4KRbY0jLbr2y9t7XUxpNryhj 48IqmQ3LkcYvTm3Zx3rn+A7d0A== X-Received: by 2002:a05:6a00:35c3:b0:536:ab9f:ceca with SMTP id dc3-20020a056a0035c300b00536ab9fcecamr9635768pfb.37.1661272975462; Tue, 23 Aug 2022 09:42:55 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:fee6:a961:5d1d:553]) by smtp.gmail.com with UTF8SMTPSA id p4-20020aa79e84000000b00535fd0cb58bsm9425178pfq.111.2022.08.23.09.42.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Aug 2022 09:42:55 -0700 (PDT) Date: Tue, 23 Aug 2022 09:42:53 -0700 From: Matthias Kaehlcke To: Johan Hovold Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, Johan Hovold , Douglas Anderson , Krishna Kurapati , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Bjorn Andersson Subject: Re: [PATCH 2/2] clk: qcom: gcc-sc7280: Keep USB GDSC power domains on when USB wakeup is enabled Message-ID: References: <20220822115246.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> <20220822115246.2.If09027f73daa6e1ed95f5eab02326b543c67132e@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Tue, Aug 23, 2022 at 01:16:36PM +0200, Johan Hovold wrote: > On Mon, Aug 22, 2022 at 11:53:11AM -0700, Matthias Kaehlcke wrote: > > Set GENPD_FLAG_ACTIVE_WAKEUP for the USB GDSC power domains of SC7280. > > > > Suggested-by: Johan Hovold > > Signed-off-by: Matthias Kaehlcke > > --- > > > > drivers/clk/qcom/gcc-sc7280.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/clk/qcom/gcc-sc7280.c b/drivers/clk/qcom/gcc-sc7280.c > > index 7ff64d4d5920..4ff855269467 100644 > > --- a/drivers/clk/qcom/gcc-sc7280.c > > +++ b/drivers/clk/qcom/gcc-sc7280.c > > @@ -3125,6 +3125,7 @@ static struct gdsc gcc_usb30_prim_gdsc = { > > .gdscr = 0xf004, > > .pd = { > > .name = "gcc_usb30_prim_gdsc", > > + .flags = GENPD_FLAG_ACTIVE_WAKEUP, > > Have you verified that the power-domain doesn't need to remain on also > when USB isn't used for wakeup? So far I haven't observed issues with this on sc7180 and sc7280 when USB wakeup is disabled. > This is the case for sc8280xp and indicates that there are further > missing pieces here (at least for that platform). What are you observing on sc8280xp when wakeup is disabled?