Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp491624rdb; Sat, 30 Sep 2023 12:43:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnWk1fCzo9nY1ZH1YgHrdzn6dzjAcrR3NpRuAb0GSLlfnubAHt+VL49VPVEhDQ0YHRBATg X-Received: by 2002:a05:6358:33a4:b0:143:5180:1700 with SMTP id i36-20020a05635833a400b0014351801700mr8521691rwd.27.1696103019926; Sat, 30 Sep 2023 12:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696103019; cv=none; d=google.com; s=arc-20160816; b=A06T8X7Wr6vK7sfVd+bdf+lQWorXgE5+f828T5yq9lnXRK5nzU5j88SbkeSxDv1oPG StrdFR73ybln4QvlLM0bUTf0ZRdgC6mbPrm3VyYq0Yena4/hbESmJm+uivherQcWGbwl rEfDY3/FOm7uSz1aSA/dC7cl6khtUsbrXfwUfX54FWLdG/qFWUYLtqD9m8pdSNmJwzTy n6VJSB1DGT2zjoS91h/wj0e0636oOY2+0WRrJzLcWAa2CEKIEp3j+UC0t1NZKstC6SkB dQnntGMt1LQGVrZGZ/iSlgtl/pOuxGQ4Yx0HCUszwsAxiuRLUWHSCkGb1dYSPa7J2QbL R6pw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YsYBBmmijjJDdkK90sdg+zbm+nxIwxTrAlWHp+1fd+Y=; fh=O9epZdJJTe/lHxjNpO41OxfG3HiNQF+pDvWiZRvscmY=; b=zPjPFNaoDAesqA9zO3R3e+eY2vyQNd+4yXiw39C2bnFByR9He0gffiPyl8Y3J1OAXz tjuWbJHsQ+c3TBNZHwWvtNdqPlVJN0oNOKwYFeI/e+P8CGVrFUBo1MlmbQcTRnz0s5ml ne8at+EuFjWcRky7rln7mVzWK6BBfLve7ifP9nHy9Tr28jcILqYUNie18ZTXrVsG/rzO IgkNOrMgnOkN8piupfaB6syvfUBC51cwb8GYAPNCqL5KJqt7wwOaUrWq2KSBkIsziQtb WhTvnc0n4oS1hyubABSj+rZH/w+ngHSKymuIXYbPnoEPS8+baIHa+0Z98jm/DrehwVEa 1VBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tKfzMxou; 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 bu3-20020a056a00410300b0068fe12efae9si23484206pfb.15.2023.09.30.12.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 12:43:39 -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=tKfzMxou; 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 613F0801E877; Sat, 30 Sep 2023 09:39:47 -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 S234550AbjI3Qjo (ORCPT + 99 others); Sat, 30 Sep 2023 12:39:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234543AbjI3Qjn (ORCPT ); Sat, 30 Sep 2023 12:39:43 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD7DDD for ; Sat, 30 Sep 2023 09:39:39 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2c135cf2459so224936111fa.0 for ; Sat, 30 Sep 2023 09:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696091978; x=1696696778; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YsYBBmmijjJDdkK90sdg+zbm+nxIwxTrAlWHp+1fd+Y=; b=tKfzMxouj0rTv7eFFPkSoAy5jZG53xL9Di7sLREnIWQ359Kd/4SbaHXTuw825QOVLL xAn1JpUdC9yhcC3RpUNp76QafwEC5qfrRC42TDECWViN/VbEK8480KaDNdC51yWUPn05 CTxO8kGSN96lmcF4Syu0KYkYmtKccTTGIkqpyQxNZrZVog6cNE1L+sNR0jDEHk/i2NvB s5+tLbx6dxBWhG/uM3UHEO8Sh4qiIkfrwg3CCgv4dGPn+AvUCM7wVDmK1a9gEWkeczVz L65xGTZfw9X3synDM8oUM8gBgLfaKLqbimDry9Oe3v19H6A7bUYocPb9cG/M+hMhgA5o 7ZdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696091978; x=1696696778; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YsYBBmmijjJDdkK90sdg+zbm+nxIwxTrAlWHp+1fd+Y=; b=kcYBaeunzUUC6h6Q1mLm9EfCwllCwY4qzYcOxmDbk98f37WAs8S70VMDFjk7T8ZEey 8Jlye1HdN0w9d1eW6wCpi37PZ0zy/O5s15MZXndwnvRmfxh0Ou/QOf2FgnPKH1yFnchV m/fdCOcbK5KbxZ3t8hn/wSKAFNwCSO3zFv9TOcAof5L39dvweNCFlpGBJGujPV0+hMt0 Ytf+/ZLFfwx6eFGxAIzoI9i58sw0aFF9IMaEyoRie19Sde8xD2ZMsEe0O/azpplatLbY UCMDRgADmGy8bGiDOHZbWbntS+i2Tfwb0FM1tMVGJdwdeGlv8BsQB7TpeoUbRlBL3coI /3Kw== X-Gm-Message-State: AOJu0YxjRSQjZlm78i6TwdLMicPhKOxV5+CwYsF9oM/H60u7Mcg1goPf Cn/sVT0SPqPJ/OuYnvuW982+1Q== X-Received: by 2002:a05:6512:3e20:b0:503:28cb:c073 with SMTP id i32-20020a0565123e2000b0050328cbc073mr7954114lfv.58.1696091977744; Sat, 30 Sep 2023 09:39:37 -0700 (PDT) Received: from ?IPV6:2a00:f41:906b:9c4e:a878:12c9:4d61:a6f2? ([2a00:f41:906b:9c4e:a878:12c9:4d61:a6f2]) by smtp.gmail.com with ESMTPSA id c19-20020a197613000000b005033948f108sm3895415lff.272.2023.09.30.09.39.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Sep 2023 09:39:37 -0700 (PDT) Message-ID: Date: Sat, 30 Sep 2023 18:39:33 +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 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> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20230930134114.1816590-5-bryan.odonoghue@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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]); Sat, 30 Sep 2023 09:39:47 -0700 (PDT) On 9/30/23 15:41, Bryan O'Donoghue wrote: > Add the sc8280xp CAMCC driver which follows the sdm845 CAMCC lineage > with additional CCI and IFE blocks and more granular clock parentage. > > Signed-off-by: Bryan O'Donoghue > --- [...] > +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? I wanted to say "just chuck it into gdsc.cxcs", but upon actually reading the code, I realized that just doing so doesn't event turn the referenced clocks on.. That's.. a realization.. I think I'll be able to solve a couple bugs with this knowledge.. [...] > + ret = qcom_cc_really_probe(pdev, &camcc_sc8280xp_desc, regmap); This conflicts with [1] > + if (ret) > + goto err_put_rpm; [...] > + > +static int __init camcc_sc8280xp_init(void) > +{ > + return platform_driver_register(&camcc_sc8280xp_driver); > +} > +subsys_initcall(camcc_sc8280xp_init); module_platform_driver, please Konrad [1] https://lore.kernel.org/linux-arm-msm/20230923112105.18102-4-quic_luoj@quicinc.com/