Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2289248pxb; Wed, 9 Feb 2022 15:16:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLhHtMzunrzCF0dwjfdQR7xt6c0zgjmiMwYf5zANAOuydGt3IUSdiIKlzmTpb1oeBxoRam X-Received: by 2002:a17:902:b586:: with SMTP id a6mr4441952pls.150.1644448576044; Wed, 09 Feb 2022 15:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644448576; cv=none; d=google.com; s=arc-20160816; b=soCo4OHXlwXPB+UILrTiUK+BskU5JOwgHD9wXzODmV+bouzklYMUYzq/R1pSwSxW1/ so0MjewXc4Vzk7GmTSFmtHS6n/fbRrOdKpz9QRHSvfkiN16eHVN2xXjd6vs/QOa96Eao eVCEAMGRoo61BDun6xUvjiBSZ18Rj79J/mVnNw+feykPPQXCnLIT0+IP7mBVzXi2lA7Q EEy6KSmWIoE1SmnxvT7P939JXyIVL/gMkqijiZPqzcP4lsAyLL7BpISTZvVTTWtue1vm hdpYhohTkv6zD/fwHWHH5mjl+TBba7XKmHBY8W47x+oBRyPkZEE2dCF3QXT9E3SYaEBu kjgQ== 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=pU0dqn8lnFCTNLGf/LH82EvPqHzjw/3SXlQybd6OXMg=; b=ypU66uI3UU53kMxWsRvLZRvz2a9ozm7+kfMGzsD4tOPoHmeGiqPsJyqIOqHp/Sf7Lt HWqXR8ypwz6JlpAzvw6QAyQ8/RRM2f44iuZCi2oFX9rjRec3DSRsk+cu0ned/9tws0YB GhxkVwchUkeQGIpG3R7eE6su7VSUcK/tFXvsDVfHWhPwi01sKnmQFesp3eTnNOXHuO8r AVOOUgTgDSAR8E5B2xlncQZ8FznysR/96musVXOFCKb4WfQky67sskDjGVtFHOI2t4gG YV8ZJaayZ52qtNVlXtx5fO3t5m1YJ+JbuOxWw5p6wQ197N9mignMscXrBvHl2heiz+pc TQqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bgOvEokE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t14si974285pgr.63.2022.02.09.15.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 15:16:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bgOvEokE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6CC7E053816; Wed, 9 Feb 2022 15:15:06 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239406AbiBISUT (ORCPT + 99 others); Wed, 9 Feb 2022 13:20:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239454AbiBIST6 (ORCPT ); Wed, 9 Feb 2022 13:19:58 -0500 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62A0C05CB8A for ; Wed, 9 Feb 2022 10:19:42 -0800 (PST) Received: by mail-ot1-x330.google.com with SMTP id s6-20020a0568301e0600b0059ea5472c98so2091122otr.11 for ; Wed, 09 Feb 2022 10:19:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pU0dqn8lnFCTNLGf/LH82EvPqHzjw/3SXlQybd6OXMg=; b=bgOvEokEIgRc/1F8RRAecOt3Dak+BR1J3f1O0/qQkELU7LCKZWzTk+UwchF5ihpMWK BMI7D4VxOsNfW4EOZyJ0HxKLy93u+eL86RcJ5g5+qK5TL3RjxqhabCR6VHCvyKBT4k1s o98e8kKfprxof12SNhGhWourxwmHQtkPVL9o1IIw5JOQgsX8FTMrfg7hKWe/SiUe9765 RIYATVIKX6pvnnAt8WucRowPDtqqcaqtCyzmeXOAx27WtZ52mWRPf353ik1fp7L6DU/V P/3gAwUg52p2cdnqnuyQRG83Wbx77NrsGjiAoUjertMG5NVjlffpmTG+wjQkzbi5GfWX 8Tug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pU0dqn8lnFCTNLGf/LH82EvPqHzjw/3SXlQybd6OXMg=; b=VdtdUeQ64fyGwz+ZdTm/57JIQWFzbSCBYb2Sq2DiicTJNGouEZfZDhPCHMNkSmf0po zWP7RP3xjcaExt4bLoYuETxeoyRvofCJvTzitKDhIv4onjJwm7rd1ti5DbhusMJUVxck 8dTlpmAk7pfiXO1WXN5z1PzbjQA3qXs7eOSxRGOeGXIfs5r10p9IcvvLa68KdFQKtB6Y KVp65t4+5rx7BlIpuvZT2F1/zz9e/jZzCkK8LJNW+QpYM6y9behZ8uSW376R4XKAdHhQ yXQvp2q1fjrTrzl4AercAwPoIDMv4w9UnudOqH2p4+2i+74sI2ahEp0LxkmJnq63otng qthg== X-Gm-Message-State: AOAM531L+9ZtzPXaK+qSrU0dO0CNUIFm8CYlh91cgBb3ln4NUWlo+vUx V/YEAb6MBsqhlJZu+wHJa8Mveg== X-Received: by 2002:a9d:628a:: with SMTP id x10mr1422718otk.264.1644430782236; Wed, 09 Feb 2022 10:19:42 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id q11sm6959373oti.3.2022.02.09.10.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 10:19:41 -0800 (PST) Date: Wed, 9 Feb 2022 12:19:39 -0600 From: Bjorn Andersson To: Taniya Das Cc: Stephen Boyd , Michael Turquette ? , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v1 1/2] clk: qcom: gdsc: Use the default transition delay for GDSCs Message-ID: References: <20220209172513.17873-1-tdas@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209172513.17873-1-tdas@codeaurora.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed 09 Feb 11:25 CST 2022, Taniya Das wrote: > Do not update the transition delay and use the default reset values. > Can you help me understand what "the transition delay" is? In particular I would like to know which other platforms, past, present and future should have this flag set - or not set. > Fixes: 45dd0e55317cc ("clk: qcom: Add support for GDSCs) > Signed-off-by: Taniya Das > --- > drivers/clk/qcom/gdsc.c | 6 +++++- > drivers/clk/qcom/gdsc.h | 1 + > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c > index 7e1dd8ccfa38..e7b213450640 100644 > --- a/drivers/clk/qcom/gdsc.c > +++ b/drivers/clk/qcom/gdsc.c > @@ -380,7 +380,11 @@ static int gdsc_init(struct gdsc *sc) > */ > mask = HW_CONTROL_MASK | SW_OVERRIDE_MASK | > EN_REST_WAIT_MASK | EN_FEW_WAIT_MASK | CLK_DIS_WAIT_MASK; > - val = EN_REST_WAIT_VAL | EN_FEW_WAIT_VAL | CLK_DIS_WAIT_VAL; > + > + regmap_read(sc->regmap, sc->gdscr, &val); > + > + if (!(sc->flags & DEFAULT_TRANSITION_DELAY)) Why is it a good idea to not have a transition delay other than the default one on all the other gdscs? Regards, Bjorn > + val |= EN_REST_WAIT_VAL | EN_FEW_WAIT_VAL | CLK_DIS_WAIT_VAL; > ret = regmap_update_bits(sc->regmap, sc->gdscr, mask, val); > if (ret) > return ret; > diff --git a/drivers/clk/qcom/gdsc.h b/drivers/clk/qcom/gdsc.h > index d7cc4c21a9d4..1bd3ecdd0b0a 100644 > --- a/drivers/clk/qcom/gdsc.h > +++ b/drivers/clk/qcom/gdsc.h > @@ -53,6 +53,7 @@ struct gdsc { > #define ALWAYS_ON BIT(6) > #define RETAIN_FF_ENABLE BIT(7) > #define NO_RET_PERIPH BIT(8) > +#define DEFAULT_TRANSITION_DELAY BIT(9) > struct reset_controller_dev *rcdev; > unsigned int *resets; > unsigned int reset_count; > -- > Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member > of the Code Aurora Forum, hosted by the Linux Foundation. >