Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2935912rwb; Fri, 16 Dec 2022 08:12:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Gpn6EfroAFGB/lu1ptDWc1UtTeInxg6KUfRTOblmPtOeLWF7mzfQhc0w1YgXc6rxQZytR X-Received: by 2002:a50:ed98:0:b0:46b:4011:9863 with SMTP id h24-20020a50ed98000000b0046b40119863mr28753059edr.39.1671207144362; Fri, 16 Dec 2022 08:12:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671207144; cv=none; d=google.com; s=arc-20160816; b=NVQuxzINyRnIEfQobOKjQg8PegSCFm/ERV70I5Ne0Xl3oByj2KCDBFHK1ME2UoN+qr VQa4wF6UGOP+NphRY4rLljDDFEGzEVMhdDT53RUVgA5JRnvZ5cVJeZkKsmNLr+69YI+x cd2RJqhVP+UhaKynJusMgWkno6efYt18QyrYMf3a59ximZEOlLLTNNr+4d98f7QGifPf 3s9VK6/Cz1EPznPdjf58b+e0eta7npaW3s9BBhrcx/dif2ZqaT+MkpHmRH03kOmsla8Y 22jAEO02ElZTBWkWD+Gq/27ErJ29LIGqN2Xydp6LpdL+/e31EiGaZYHe6q2YIQrzAmdb cX6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=WeujBJQ13L7g4+A/5419dzCsubCIjLcne6B4KFN16bc=; b=0IMnVeDoNgYjjhBWbqEgc55l3swPKYljrr0eeaRuOW9BJJJsOKxssysO3cPOOamM7E XwfqWbNlHqy7yb8+vCrUJWJq2tI/zFMullRhl/RNsM2xBCjq1xQFlm55AWXqu3OtVwuY fdLE0+Hd3qPr0R8SjBMwS2rmnkrcUdQCR2HGcwT+zREjVp7vx5Bvv7hBIGTRoPNBAkna U3FNx6HQEDQJmEy4pdIKH/Ao/Y4BcRjCw+gQH9lagc3jiYfcGjUePOGqaGKk2e+4fykC +ueGQqsQMhh74QcODpESZwCklhEDQxDftegeOnGsBVKUOR2i7eygq7wkhMK3I+yFyFqS LIiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NtRD3Vnd; 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 s10-20020a056402520a00b0046b1c26d81dsi3352595edd.80.2022.12.16.08.12.07; Fri, 16 Dec 2022 08:12:24 -0800 (PST) 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=NtRD3Vnd; 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 S232106AbiLPQKj (ORCPT + 69 others); Fri, 16 Dec 2022 11:10:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbiLPQJs (ORCPT ); Fri, 16 Dec 2022 11:09:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F175A8FF9; Fri, 16 Dec 2022 08:09:32 -0800 (PST) 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 8BF8F62163; Fri, 16 Dec 2022 16:09:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1AF5C433EF; Fri, 16 Dec 2022 16:09:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671206972; bh=Pd4cwhB/ZU6dBLtjwdLjnwes8/oi7QJg2yi0YsWb/s8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=NtRD3VndI817OODNmbTpU841LM8EChnIpjTQ5bWsg1ipK9e6AjcPz2Iz5KNzoORgC if68KOtpvOquSNF8C/SwqZYQAWIH6g62XGFy+douxnxiTH28vAvIj+x/rXQp/n2y8f djEd4KOlkTbCGqzw6v50SaqoIx7pdkStQRIMpt0QH5++CFe8zSgQpoXXGctsStJomM 6pePh3cpi2p2nAP8wYWhj+zzOHHD/1/o6h0zk7qTpFmkluFhpWPldlMKm1DBfvV2U3 cYMV8/mNlEaUvGH9Q9dWrBGz7tdsxcYO1dssn0ksciG9rYWcG9mIa7E3grAD/lAg1M aoIyRmXyBeqPQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221215203751.2.Ic128c1df50b7fc9a6b919932a3b41a799b5ed5e8@changeid> References: <1671117062-26276-1-git-send-email-quic_akhilpo@quicinc.com> <20221215203751.2.Ic128c1df50b7fc9a6b919932a3b41a799b5ed5e8@changeid> Subject: Re: [PATCH 2/5] clk: qcom: gdsc: Support 'synced_poweroff' genpd flag From: Stephen Boyd Cc: Akhil P Oommen , Andy Gross , Konrad Dybcio , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Akhil P Oommen , Bjorn Andersson , Rob Clark , Ulf Hansson , dri-devel@lists.freedesktop.org, freedreno , linux-arm-msm@vger.kernel.org Date: Fri, 16 Dec 2022 08:09:29 -0800 User-Agent: alot/0.10 Message-Id: <20221216160931.E1AF5C433EF@smtp.kernel.org> 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 Quoting Akhil P Oommen (2022-12-15 07:10:58) > Add support for the newly added 'synced_poweroff' genpd flag. This allows > some clients (like adreno gpu driver) to request gdsc driver to ensure > a votable gdsc (like gpucc cx gdsc) has collapsed at hardware. >=20 > Signed-off-by: Akhil P Oommen > --- >=20 > drivers/clk/qcom/gdsc.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c > index 9e4d6ce891aa..575019ba4768 100644 > --- a/drivers/clk/qcom/gdsc.c > +++ b/drivers/clk/qcom/gdsc.c > @@ -136,7 +136,8 @@ static int gdsc_update_collapse_bit(struct gdsc *sc, = bool val) > return 0; > } > =20 > -static int gdsc_toggle_logic(struct gdsc *sc, enum gdsc_status status) > +static int gdsc_toggle_logic(struct gdsc *sc, enum gdsc_status status, > + bool force_sync) Maybe just 'wait'? That matches kernel style and is short.