Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1557122rdb; Mon, 2 Oct 2023 13:25:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXm8MPl9pXXsAyNUGQRxX85mX6818BCLbmYUl6ItaaOmhnB3R3hUsGphO5ei0hg1++eM8t X-Received: by 2002:a05:6a00:178f:b0:68e:2eed:5ab0 with SMTP id s15-20020a056a00178f00b0068e2eed5ab0mr14097065pfg.7.1696278349284; Mon, 02 Oct 2023 13:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696278349; cv=none; d=google.com; s=arc-20160816; b=LDi+K3MPJDB1CArckOhwGsv+q3ksHIOhrYwovkqxGGzoEnFQYIe1XKu6sNMhbU+z54 wKZBD3jQlpO0ZD+2+0ljvXvFQW2eeN2KWW3dlYNFzBYo6T+BydQZJpwWppFIIMh43kW8 VkRSZYqhieH6mk1SZQBTO3OAULUyKFozRp62hbkwz1wA+jumM67RtkGFnTIuual+2uyJ NwT2tUjqkSucJ66/SSRZcKyXuRfJ3DSc7wx20iyRvSM2a5/7QZO/HQ2Cg5KnF9iAudQl MvnebDhuGJGejDs8+6DgJ7FS0osr7r1xtzDdQvOOp1Lmn+BTedj/BG0ZNHzP1F+7S5/i GJUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=I22ZLDTwt1a3CMGPKW9Vs2iggXkEI+mYq1W9AQhp2yk=; fh=O9epZdJJTe/lHxjNpO41OxfG3HiNQF+pDvWiZRvscmY=; b=D1Z5iYPSaNM2Y3rVHa8dzhw8ZPRXFJeFwpbGWTR3kp9lhTxuK9PJu0KF493mVsoSGh QcleP+UEJVjOVhdPvxKL0yJjSW+1f5Zr284WyJCAeByQ5688qHfl3ywhhRUBeYuLdtTP Kfc8rstrkF4BI5YQita7mgmcac5DtlGcfElNuRwZtIyTFpqhP0aktIx/ADPlAlsPJsQD lG0XcIH60Dp2Ou/+RUWYmsAQhNpZFkZ4lsiSHppiJYIGdeDZW3ROWwPwGXOj5Yp1tByv az38CHXsCDqMf3UzwdrLMZhutyn5oevOTeVInssc95S0nNFT3bqCFLozFzA16I4dTGo8 aCow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p+yPpsRe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bt22-20020a056a00439600b00690dc61cc93si27862477pfb.403.2023.10.02.13.25.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 13:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p+yPpsRe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5BED18083E6C; Mon, 2 Oct 2023 02:18:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236036AbjJBJRo (ORCPT + 99 others); Mon, 2 Oct 2023 05:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235965AbjJBJRm (ORCPT ); Mon, 2 Oct 2023 05:17:42 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE4583 for ; Mon, 2 Oct 2023 02:17:39 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5046bf37daeso15946712e87.1 for ; Mon, 02 Oct 2023 02:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696238257; x=1696843057; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=I22ZLDTwt1a3CMGPKW9Vs2iggXkEI+mYq1W9AQhp2yk=; b=p+yPpsRec6dTSrHy1x8sStsVHP3w0K0Ifm/SgWzMrzttCtSvylAou8fnywhWfxLomA UvPCSsvDsz7+uS4Xd1nfncKRSHeQGzJAKGAT0IIWIhMPNRlY7Y0JdS1dIW7vUR4hqXM7 dvsz5Gqz4LaOI8gFX9bDYVXfHKglm4z9GhvWMBcZ6JSMjuXE2tXz75u/ZXo9sIXfxrUb D6qXu22fcfOOuKkf3CuNdGkkLxxsdwJLdBDp1aikjXOrpbMMv0YR5WfRHKgcN+QZKR+d INTiVNICpth6Zhu6EUBg9mNzGjtkUnpDt0kArg8kwMJdZyrFs5WzlJ6r0wWA3gwpwV/7 CHBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696238257; x=1696843057; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I22ZLDTwt1a3CMGPKW9Vs2iggXkEI+mYq1W9AQhp2yk=; b=qNQyW6awVZ1Ruja84tEFUQKgDQJTk4297kmFJcoiEzcTRKt3BJUYygJ+e78vrZt0yr qtQ/+6S7EmSb2LCltQ9JRODhDcPCVdNAu/INBbVTIUJjND6sWZu6lJQ9w8+Xej2c/ilG H0CcGJfjTE36cUgMnd732pBJAusqZKuScggqbjMvfC99ElNo9JBN2JyHYaU/B8pIua1z VobFM1p3ce7DNMJan5h5ii82TqmbPfH+tKOfd4oGEqhgitUNIJBSqcxifl5AtTEAuBWR 1X28Y+vDN4ZLEwuMdpZKF18kjsR/PApUcvJqsJIw/Ao9Xh66rrEbjMyjVxFnYnD5gz9B Z79Q== X-Gm-Message-State: AOJu0Yw5cdqYvFU3CoIKQch0uvzNn5ggAasgqnedlMtfQbnltxPPb838 9vePk2s3xKyJywEsHs3IgR1wIA== X-Received: by 2002:ac2:4d99:0:b0:500:94aa:739c with SMTP id g25-20020ac24d99000000b0050094aa739cmr8259221lfe.61.1696238257252; Mon, 02 Oct 2023 02:17:37 -0700 (PDT) Received: from [172.30.204.164] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id j16-20020ac24550000000b0050300e013f3sm4661437lfm.254.2023.10.02.02.17.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Oct 2023 02:17:36 -0700 (PDT) Message-ID: <76a5b753-5d65-071f-d43c-512f30a69fa1@linaro.org> Date: Mon, 2 Oct 2023 11:17:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 4/5] clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC Content-Language: en-US To: Bryan O'Donoghue , andersson@kernel.org, agross@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jonathan@marek.ca, quic_tdas@quicinc.com, vladimir.zapolskiy@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230930134114.1816590-1-bryan.odonoghue@linaro.org> <20230930134114.1816590-5-bryan.odonoghue@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 02:18:02 -0700 (PDT) On 10/1/23 00:53, Bryan O'Donoghue wrote: > On 30/09/2023 17:39, Konrad Dybcio wrote: >> >>> +static struct clk_branch camcc_gdsc_clk = { >>> +    .halt_reg = 0xc1e4, >>> +    .halt_check = BRANCH_HALT, >>> +    .clkr = { >>> +        .enable_reg = 0xc1e4, >>> +        .enable_mask = BIT(0), >>> +        .hw.init = &(struct clk_init_data){ >>> +            .name = "camcc_gdsc_clk", >>> +            .parent_hws = (const struct clk_hw*[]){ >>> +                &camcc_xo_clk_src.clkr.hw, >>> +            }, >>> +            .num_parents = 1, >>> +            .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, >> "meh" >> >> Is this clock only necessary for the GDSC to turn on? > > Most of this code is autogenerated in downstream as I understand it a > script is run against some definition the RTL one would hope. > > I think that is probably how the gdsc clocks for the camcc are marked > like this upstream already too. > > grep CRITICAL drivers/clk/qcom/*camcc* > drivers/clk/qcom/camcc-sc7280.c:            .flags = CLK_IS_CRITICAL | > CLK_SET_RATE_PARENT, > drivers/clk/qcom/camcc-sm8250.c:            .flags = CLK_IS_CRITICAL | > CLK_SET_RATE_PARENT, > drivers/clk/qcom/camcc-sm8450.c:            .flags = CLK_IS_CRITICAL | > CLK_SET_RATE_PARENT, > > I can tell you what clocks this clock but I can't tell you where that > clock routes too, so the best/only source of information I have is the > flag that comes from the autogenerated downstream code. > > I think the safe thing to do is to leave the flag as is TBH. Safe yes, good no. Clocks with this flag prevent the clock controller device from entering runtime suspend, which causes a dangling vote on RPMh and prevents system power collapse. Konrad