Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp683504rdb; Sun, 1 Oct 2023 00:23:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdwqzovzqyRxKfxMKN4fy1s8qImoIqdXDh7NuGAT7BY6j+FflJQQRdPhGb2wxdj4F66X5T X-Received: by 2002:aca:f1a:0:b0:3a7:55f2:552d with SMTP id 26-20020aca0f1a000000b003a755f2552dmr8035738oip.58.1696145015545; Sun, 01 Oct 2023 00:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696145015; cv=none; d=google.com; s=arc-20160816; b=WUnskHSiSC6Q+M0Jd4U/O9JFROlIazI4jcp/LQAg1jPxR1kgHNtbnY1vL8MfeuhPs7 ckLPevTyXlegDfvxvuh5mBD8x7yhylBZCRzZYiCb4D+kCl5dfD46uvx95Sueg+IYQeHH G2sL1plL4uExlnp3B1UvNL79b/W9xBlEkXuQWhlIS2dtEkSE5iFqKxH7aErosjZb25sO 7Wasmv6nedTtumU+lf2uzjuDGrjenbqxNpf28v0qo+1/PsSsoyptHeYFcFIEmO+PwqL6 APGDT2NmP9JbAfxlvJAHQaBWP1KhxoOXT4rSvRjngFIS2rvV+eoB7mbryzLmSR9Vzjd/ fx/w== 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=mlBxctbB9FTcE/uWPk2Y2YEJ+iBtqk0tDnwZVGzZTPg=; fh=jWkPgk7yH7Di9iPl3pEPdAF1AoQUhBt1SMkxMnRyE7Y=; b=hDqjkkaz9YQl7V2iqgTNF0RKXZ4NC8UBkVC2s7bZR6xi9FLetRirp0/hMkllgZxAS7 3g4q/Ni8pYth5AIt5srcKx2sj5PIUmUhvOpupWSi4yA+4kUyq7Dn5R8rQfO1ctKlbQQV cTcY8YiCcOz0mUvVB1v1e8M9H8CpiC3vH/TyWdHfnxWo2KoQOKAxqIMBtTk3MtBOqGPw w1C0dEvEzsJU2UHghIOhPzkRohjABw4Ffxho1V8uKfnZvgL2C8IgxXxGBaOmw73mxKDv lI82NvP7ylysV5/yDMKv5z2aXkCxWSDwm90ygD7+1MOfaz0Ki8z2b5Rs1C3Ifo2ocM2+ R8cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQlWxRzh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q6-20020a17090311c600b001c3e9170068si25653123plh.61.2023.10.01.00.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 00:23:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CQlWxRzh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 014C182CEFC0; Sat, 30 Sep 2023 15:53:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234010AbjI3Wxg (ORCPT + 99 others); Sat, 30 Sep 2023 18:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjI3Wxf (ORCPT ); Sat, 30 Sep 2023 18:53:35 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 208DEDD for ; Sat, 30 Sep 2023 15:53:33 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-32320381a07so10955287f8f.0 for ; Sat, 30 Sep 2023 15:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696114411; x=1696719211; 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=mlBxctbB9FTcE/uWPk2Y2YEJ+iBtqk0tDnwZVGzZTPg=; b=CQlWxRzhpYeC5cfeXXFAVRNh1F/zkPTKC+ALBbflUCMAuXG/2x7l5U0qVBSois5o3/ UJyCjsnxUJHUBvtbjObtIy9Lm/yFpyCT/eHwvdcQOaWzcUvDH47ExZ7KNzof7j3binOs fTTk4eVcmMHhHcrYkQ+QKqOIVc1na/6iYYpX8/MyoYNowxsRZYdY2s9sIA6k2TSpGL6n sZwtgNY/g18hoCCaSRpKchVVPlcIhckJqRCx2tOKw4zAJY8X6LFBTN2vmfWa8O+udA/T dp6R170AWO2oLYNXbFspOUgSPJYjPaV1VeqN+yO79hYDY0Va2eBUqUQ8BqsDV7P+UMsM IgLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696114411; x=1696719211; 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=mlBxctbB9FTcE/uWPk2Y2YEJ+iBtqk0tDnwZVGzZTPg=; b=iO5vuKIEymNmtfB8YgF6Vs2AqOOJkX4shVqS5O2Dg2otbSuffdV2+6AyH55xQgyMDV AsnXbtOqHNjvnkY6uy9v3RxDTfCJixI1KLYDhH0CY0oIOaZ11heo+5ODs+je/63kvJ0k lqoao6iWBeeHuw1pm5KtoYvMo8hFVi18AlMAXVIsyPT1tX0U8K9eavab4VuiqlaJUOst LICgLc+7Tw1OODWkjAuHDSrteP100VUnRNcaCsq3rhF6xmTQHGBbIJ2dx69JJChHHIa1 TRwaHz2qbaM/c9UE/vEwmqcT+n5lFLvwf2Cfd6pzy1a97VZqrFB/ztShj1Rq0UVtzdF4 P1ug== X-Gm-Message-State: AOJu0YyTRp2TLGbr9bxYmoj9zUkXSLr9Y8GvVIuyuSi/vpV5r9gc06OD bLLgv5FBhQuQ20a7HNqvC9jJFA== X-Received: by 2002:adf:fd47:0:b0:31f:fa38:425f with SMTP id h7-20020adffd47000000b0031ffa38425fmr8260573wrs.9.1696114411331; Sat, 30 Sep 2023 15:53:31 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id x17-20020a5d6511000000b0031fd849e797sm24550153wru.105.2023.09.30.15.53.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Sep 2023 15:53:30 -0700 (PDT) Message-ID: Date: Sat, 30 Sep 2023 23:53:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/5] clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC Content-Language: en-US To: Konrad Dybcio , 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: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 30 Sep 2023 15:53:49 -0700 (PDT) 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. --- bod