Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2409951rda; Wed, 25 Oct 2023 01:41:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGEzXtMcAaD5czwA84++/xtyRAN+s/YwSs1IUrguqQ2y71AaIRSWRyfFkR/zP9De1ikCjD X-Received: by 2002:a0d:e347:0:b0:5a8:1d75:65c3 with SMTP id m68-20020a0de347000000b005a81d7565c3mr16164528ywe.13.1698223284311; Wed, 25 Oct 2023 01:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698223284; cv=none; d=google.com; s=arc-20160816; b=XU8LXWaPTXWScwkmNBwTdAmoHuA6Zza4MKBzuxpMn1lmKLZlH44qX4b2BNbdn96wWe pLT+dDJwqXVhd40sgbb1pKo5dmeBjaLlbaF2u2naHB17Aj7DakCTaYjW8x0DgUp6LzT/ 8mGyjDYgsdtBHHf6LI0FYYS+UszqcuK3nvJ5pSdgwIVzKLl32EKywALjIM77yiG1IbzG Ktx4dnNX9wr6Hi9Nn0SzHLdu+HLWWLEG+LcTXBTkWSQsWv1xqL9XvdpVzad4Ln+Dyoxh kqLd2QX/LQjqOhqSKphPs7yQTL/teKAyGM0doLdERTgPxus4nLKjcVEFNEB6oKIsrXRS tkoQ== 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=wwbaq49bUIJIzGkkWKUf0VmMFkjnuPsGrEUtSJczEhU=; fh=sJkSEl7PN9L2Bt4/HEoogvwxnIw6534+lzz2gHQ6UJc=; b=V3aNnUCE6kkd1NKpzm0rCaENJYbrlu8bwY/nQEawUhSrsMbGfzi+i5HpIU7WhIZxAY HG6UiiEK8eoSF19yf8eB30tWRi4a+H2XS8auwFJoknwUli8YzBBofO6EO/tUDRBaOTMg Hd2/D3fzhma/kkJtWmbLnb2IBHj31+D/IaR6Ls36drjcO+Cc/HG2hpycDIsL6CbflgiH uvmOkLWrvoHUTksr3ot1jLGu0afjLwsgaUW8uF2Mtt8OD6jMsA7cmDbZc75DFvChmLkW S8F0ar8GPp+pUlLkowLGcirf7SNmPYPdDpwBh/RS95xNhRIQAmkRUNEemnY/IOy1/4Yf 31Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1KJj6oa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l62-20020a819441000000b005a7b1d9a1f9si11713749ywg.291.2023.10.25.01.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M1KJj6oa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id D9225801D147; Wed, 25 Oct 2023 01:41:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232503AbjJYIlV (ORCPT + 99 others); Wed, 25 Oct 2023 04:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232213AbjJYIlR (ORCPT ); Wed, 25 Oct 2023 04:41:17 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2CA6123 for ; Wed, 25 Oct 2023 01:41:14 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2c503da4fd6so80036791fa.1 for ; Wed, 25 Oct 2023 01:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698223273; x=1698828073; 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=wwbaq49bUIJIzGkkWKUf0VmMFkjnuPsGrEUtSJczEhU=; b=M1KJj6oaJs1lxK0kDgMxKtcYBHJyp5Ot1UpWuoae9u4OphyRH+QpjYe2SGdD39vzLV xiCDVzJFeqzFrbE1l/IFf264NIyVqoe7HPCeIk5esbX5OMhpYYFMOpBczL2+sOOwEjZJ zz7Rq8wJI2/c9QxGcm/ItxasllfqEI9WSlk7EGt9kVSudilgQLXvhtzuSsPA3FVOo4LR GUz+Qm5Se2c6Ny/Xu6vCOVYD5saHLEwPwBWBLqfrTFOfUtrOw/jnTkBknUVWUeU3T4pw CM9P3YT1rrp12aHrIPdXOaY67CsBWJhbeX/u66DQOeGoysCAdD09QNl5m63qYPz4ptsL kDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698223273; x=1698828073; 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=wwbaq49bUIJIzGkkWKUf0VmMFkjnuPsGrEUtSJczEhU=; b=S8xmW5YB2URJB2TGebJW6HXqKCa3EkeoeHN787fUdklhR350bkszj/E0/W8QtsSikJ ClJtOTZ+awL0En+vjmlJyIIR5kFYl8aa4DnIywH0egWbZwe6odj8JisvXvEhSnrokxWi kEKNuVFwK9qoNI8b1poZTTQTfYrNxQFDgEY/osSaCM2uy0b/yxN4cVMEhJ0SEnXGpvhM OtFEkGL+xBITUDB1UGigNRYGZTV3TiaARSy7aJeclyIliaKdb8jkHIcX5W6OOLxSp2m6 gJMT5PI09KnaNmQODEQW2Oax9nfThoBbpHYt6lf3QkfEX2lIMaNo4tNLjm6acPaPu4xe zUTg== X-Gm-Message-State: AOJu0Yx3yyIKdw3iLPRVXiQKNRWR4coZn9GWDAOKIho/8EdkFXN7S8Vg oGgv3sfUiEXv9ZPHHyeapFVezQ== X-Received: by 2002:a2e:a589:0:b0:2c5:21e3:f209 with SMTP id m9-20020a2ea589000000b002c521e3f209mr10149890ljp.23.1698223272898; Wed, 25 Oct 2023 01:41:12 -0700 (PDT) Received: from [172.30.204.57] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id z14-20020a2eb52e000000b002b724063010sm2355545ljm.47.2023.10.25.01.41.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 01:41:12 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2023 10:41:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 06/10] clk: qcom: add the SM8650 Global Clock Controller driver Content-Language: en-US To: Neil Armstrong , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231025-topic-sm8650-upstream-clocks-v1-0-c89b59594caf@linaro.org> <20231025-topic-sm8650-upstream-clocks-v1-6-c89b59594caf@linaro.org> From: Konrad Dybcio In-Reply-To: <20231025-topic-sm8650-upstream-clocks-v1-6-c89b59594caf@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 01:41:23 -0700 (PDT) On 10/25/23 09:32, Neil Armstrong wrote: > Add Global Clock Controller (GCC) support for SM8650 platform. > > Signed-off-by: Neil Armstrong > --- Just a couple remarks 1. looks like there's no usage of shared ops (corresponding to enable_safe_parent or something along these lines downstream) 2. none of the GDSCs have interesting flags.. I have this little cheat sheet that you may find handy: qcom,retain-regs -> RETAIN_FF_ENABLE qcom,support-hw-trigger + set_mode in driver -> HW_CONTROL qcom,no-status-check-on-disable -> VOTABLE qcom,reset-aon-logic -> AON_RESET domain-addr = clamp_io_ctrl 3. gcc_cpuss_ubwcp_clk_src uses the XO_A clock as parent, but it's not there in the ftbl.. Could you confirm whether this clock should even be accessed from HLOS? [...] > +static int gcc_sm8650_probe(struct platform_device *pdev) > +{ > + struct regmap *regmap; > + int ret; > + > + regmap = qcom_cc_map(pdev, &gcc_sm8650_desc); > + if (IS_ERR(regmap)) > + return PTR_ERR(regmap); > + > + ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, > + ARRAY_SIZE(gcc_dfs_clocks)); > + if (ret) > + return ret; > + > + /* > + * Keep the critical clock always-On > + * gcc_camera_ahb_clk, gcc_camera_xo_clk, gcc_disp_ahb_clk, > + * gcc_disp_xo_clk, gcc_gpu_cfg_ahb_clk, gcc_video_ahb_clk, > + * gcc_video_xo_clk > + */ Could you make these comments inline, i.e. regmap_update_bits(regmap, 0x26004, BIT(0), BIT(0)); /* gcc_camera_ahb_clk */ ? Konrad