Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1257186rwe; Thu, 25 Aug 2022 20:05:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR50Ag2ArXwaW8cljngayxcD24ZdnL4Cf95+aiRzIG/fRnsnRdrdBmtLfkwvw5S3gdOz282V X-Received: by 2002:a17:902:b28c:b0:172:cfe4:bd2b with SMTP id u12-20020a170902b28c00b00172cfe4bd2bmr1924284plr.44.1661483140403; Thu, 25 Aug 2022 20:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661483140; cv=none; d=google.com; s=arc-20160816; b=NDZysP0U9xN60eXG3C2rQDNQ6/H/J0dxNbgQ2kqcpP/Er21oxNb7xNTlSy5ECj0qj1 pXXN45HZUXVzXw4NP67ItbIqeQyxTZs0cs6zaM02l5YeCvUwDhDWqcE7wqAa3cDngVwg U2HLAlhObrq8SLC4Ka4aQjaaluo4MdC5X2lC8TzuZka++cJt9Cf02RjrfcXNLKNVIaIX moMu6qnwtOpduqyKMJhLCBuwuxUqG5cPadEIqAuglmz8LVHqHJt1k/QKEBoy5jYSWmGE z8Nea3MCGgNujt5lD6/8phDrcTKi7L6SoBTuraPCrP+sPRsooTNCOBO22Vx8BpxGzLet ZuAQ== 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=74Wl74szRlk12koQ9fYlpkqkkbsRee2W+VfPc6AvHg4=; b=MP1Hk+5xDcqYkPqP0okPdminYbDch0S7gk9KQIta0TUXMLv1DNKeiZFw2gP7WM8vh1 59mtRWQWz8h719ntEUtWLIrlwGrMascN7Da+O8lG/f8oRAbVK9Ckw84DvfMs+5LNy8Ub WYGWWOTUWJpuxpdP2ZGvTPy1gloCwm9U9SJK5kgxSqNRxG5a9lemA9gBKq7DOP1Oesip pZ4+kgFe1ThmePwdkFZb65eyXHv2J5SR3A0lxUjm5kygOsISlkpgefzJZ3+z5pPqsoDE Zr6/k3zVtlARYZcG67SRLhmLODXmKUN7O4iK3u9rBU+4lSR1V6RM80H8UC71tIUGChlf xDEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PqRDbFlP; 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 t4-20020a17090a950400b001f28dc085bfsi839356pjo.115.2022.08.25.20.05.29; Thu, 25 Aug 2022 20:05:40 -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=PqRDbFlP; 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 S244247AbiHZCkQ (ORCPT + 99 others); Thu, 25 Aug 2022 22:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233284AbiHZCkM (ORCPT ); Thu, 25 Aug 2022 22:40:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF742140FC; Thu, 25 Aug 2022 19:40:09 -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 71DE8B82F67; Fri, 26 Aug 2022 02:40:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFA6CC433C1; Fri, 26 Aug 2022 02:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661481607; bh=F/XrCpR9e6lLBg9nz08XniZFdkkOADRu12wJy7b0C1I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PqRDbFlPCk05E8YnGrrMdNZNjAjJI2WJ01UElGjl4bs9oNqKYy+IH4/hqBpwjCX7+ 1PpPmr70tQkFgqodpDSelmlZTwC0zTYz/IBKzcdiv9awRI/dXeAafwlOuuTcKLibaI iawv0wLvrlVzuL0Ktm5agTauZHVAGJR7U493kwVAIPevCJeNODIY/YlYx8ThMXjhZa 7gDy5M46y7rP4aVIYjfeQOvejxmYepkCHrA0KUvpBPAPLpH+zLFvEUmYKNfj2v7MDc zg/rMin0QzFZPD5gsvkoj1CXb7rzDPtJ+fhPZgGUIxvJ1Z91R5cCTn4vdhKeb8E9Cy IuDJ/m+MCiChw== Date: Thu, 25 Aug 2022 21:40:03 -0500 From: Bjorn Andersson To: Matthias Kaehlcke , Rajendra Nayak Cc: Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Johan Hovold , linux-clk@vger.kernel.org, Krishna Kurapati , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Bjorn Andersson Subject: Re: [PATCH v2 1/2] clk: qcom: gcc-sc7180: Keep the USB GDSC always on Message-ID: <20220826024003.qpqtdmdohdmpcskt@baldur> References: <20220825182152.v2.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825182152.v2.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> 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, Aug 25, 2022 at 06:21:58PM -0700, Matthias Kaehlcke wrote: > When the GDSC is disabled during system suspend USB is broken on > sc7180 when the system resumes. Mark the GDSC as always on to > make sure USB still works after system suspend. > > Signed-off-by: Matthias Kaehlcke Rajendra, where you able to find some time to look into take the GDSC into retention state? Do you suggest that I merge these two patches for now? Thanks, Bjorn > --- > I'm not entirely sure that this is the correct solution. What makes > me doubt is that only msm8953 sets ALWAYS_ON for the USB GDSC. Is USB > broken after suspend on all the other QC platforms? > > Changes in v2: > - set the flags of the GDSC not of the GDSC power domain > - updated commit message > > drivers/clk/qcom/gcc-sc7180.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c > index c2ea09945c47..c0d7509a782e 100644 > --- a/drivers/clk/qcom/gcc-sc7180.c > +++ b/drivers/clk/qcom/gcc-sc7180.c > @@ -2225,6 +2225,7 @@ static struct gdsc usb30_prim_gdsc = { > .name = "usb30_prim_gdsc", > }, > .pwrsts = PWRSTS_OFF_ON, > + .flags = ALWAYS_ON, > }; > > static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { > -- > 2.37.2.672.g94769d06f0-goog >