Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1220715rwl; Thu, 10 Aug 2023 08:06:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfaKTKbLjWv4gQhJ0bX9hG/gzRVFP+TTO8xAjOfXqX62q9tOtJtRIY+C8Vh0Sh1lDu8+fu X-Received: by 2002:a17:902:6ac7:b0:1b6:6b03:10cd with SMTP id i7-20020a1709026ac700b001b66b0310cdmr2654113plt.67.1691679986816; Thu, 10 Aug 2023 08:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691679986; cv=none; d=google.com; s=arc-20160816; b=FG5MzZ0GKn5mYU5RD8qs2z/88EqmJNSTxZvjRN5Cv6InsNSztZ11NErBLCGGyCQ2EQ KivtrFu3DjWZWAaG4FRwudKDrAxJzg8xzNkDloDtkL4od0GNw8eHm/i752pX5DEpFaej 6WK9ynsaYm7sW4qR81K/cFh4uqpOIhrtP/sxRy7TxYPOsey2pg66IkhpHni0RS9XH4i4 nNVG613KNmOtnx+uqx8CYuIMCwmmGs2QBG668ELEJdtYgDCKOHYN9A74edpBaZQfOiVb D6kTxw/oIMGgw+TQG3HLtuNTa3WwxCfg5RV/Iu+1QHzk+bc430jJhtrBxaOU42vJTgmV TDPg== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=wk+zm0d06jLEAReFRShjOq87rLOotXXr0iiPkZag8v8=; fh=bL1EL34vWxj2wNhUc/OxWdKV4Lq6Hub5j9pUJkviVLQ=; b=fk0phdgl0NV7OG6FuDWwA+GqaYhq3mB7AeZMTPOorN6suONZNWimW3v2DCp4pTRVQr klqBePJbXn+fZVKi2iHC7VnDaoRG6QLRM8RtVKBu07+H+rK5RmuiEvzDq553Ymr2rcVu enWaK20IffObi9etHMVFhGVEHHyOOBnaUUUg6ObnSmsDI8i2zDpAsk6E+FTjx5bmq8Kg tI1ZlATTuk/Fi1F7qbi1tHs9nvV7iZzD1t7mj7Gz7ikK6yaROhOBMawtElod52cP/F0/ PT4STw7DH1Np+n5JOYEkEQwTejeNeRxwaKg/YkrNG6KVZEtZhpjJ9RlRCgkdasmrsq9I y++w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B2ZGQfi0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a17090322cf00b001b9d335180dsi1690170plg.618.2023.08.10.08.06.12; Thu, 10 Aug 2023 08:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B2ZGQfi0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234633AbjHJM7a (ORCPT + 99 others); Thu, 10 Aug 2023 08:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233876AbjHJM73 (ORCPT ); Thu, 10 Aug 2023 08:59:29 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 840A72691 for ; Thu, 10 Aug 2023 05:59:28 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b962535808so13949171fa.0 for ; Thu, 10 Aug 2023 05:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691672367; x=1692277167; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wk+zm0d06jLEAReFRShjOq87rLOotXXr0iiPkZag8v8=; b=B2ZGQfi0E7+mq4GCi8OBMFKMDMOjt4TrHm+hgbNq8F3Aqm3MAL3Jobc9Ha3MZWhOZy 111TJ7gn1uN2vB+eBX9mEtn05EE2WByZLoAvvsJPMqpTEYHLcmBNiZbub125LZQNEDPB sSO97uANHNKYP2Mpxlsz6iZx/Q/X5hprkwqopbO+RJShvrATMHCY1C/GV56njdtl452a 46bBueehDI1O8D6ITJ1JJJoyTp/PFCTeGx7MFvFyUh1dTYZR0ZIW41VOyIJHIu/JBlLf +2cfGm48gvtSDhQfggumQebIM6yzy9tVxKhw51JUz2pvCfE8/PLjkaVWYmuupsMi+6GM t4mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691672367; x=1692277167; h=content-transfer-encoding:in-reply-to:autocrypt: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=wk+zm0d06jLEAReFRShjOq87rLOotXXr0iiPkZag8v8=; b=Fp+jha9hORwNFnkeKJTrDV6i3uz+6ym+6Aqleldkk5Q3mLfYA2Zxa/fAypv3BSoA/i +LJ2qAXptrzx9FGD3t35JlwBE6QHE9C2kxDm9TPqaEETUPxDuZiAQYV3W0PkEBPAM4IH 3IMl8CXZqQW7P5xIM/pazDQqyeCRSZm9KwKqlt5GdYYdZwJhOs7AR4tFDooL6EJCU51S ZtlRAnlJEw5Lg2mNrd3eexb8ywhWcg30aj6dI5gXcOrAmX7TCqEe5KCAmPsaKpIxDyjO 5Myv/wdQUTLkLK8H7Jfnmjv5myoy1ZOns1iyyP4YmYpAhCwpgUbD4sB4eXJch8QSDi/j VIfg== X-Gm-Message-State: AOJu0Yynh+M8uY9ybTeYRxAAY9eQ+5IxmaLVxyQnoxduA3OXpuj2BA9d yHX6AzzvG5go7aCkKXX+ID7HRg== X-Received: by 2002:a2e:8555:0:b0:2b6:ad79:a4fb with SMTP id u21-20020a2e8555000000b002b6ad79a4fbmr1937417ljj.1.1691672366726; Thu, 10 Aug 2023 05:59:26 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id n12-20020a2e720c000000b002b9fdfdab75sm354562ljc.12.2023.08.10.05.59.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Aug 2023 05:59:26 -0700 (PDT) Message-ID: <9dec09fa-a5a3-416c-9b4d-4b4c4e10320b@linaro.org> Date: Thu, 10 Aug 2023 14:59:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/3] clk: qcom: add clock controller driver for qca8386/qca8084 Content-Language: en-US To: Luo Jie , 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, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com References: <20230810115419.25539-1-quic_luoj@quicinc.com> <20230810115419.25539-4-quic_luoj@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB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MHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20230810115419.25539-4-quic_luoj@quicinc.com> Content-Type: text/plain; charset=UTF-8 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_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 On 10.08.2023 13:54, Luo Jie wrote: > Add clock & reset controller driver for qca8386/qca8084. > > Signed-off-by: Luo Jie > --- > +struct qcom_cc { > + struct qcom_reset_controller reset; > + struct clk_regmap **rclks; > + size_t num_rclks; > +}; This all, including the probe func, is required because of the MDIO dance, I assume? Commonizing that would make more sense should more clocks like this appear in the future. [...] > +static struct clk_branch nss_cc_switch_core_clk = { > + .halt_reg = 0x8, > + .clkr = { > + .enable_reg = 0x8, > + .enable_mask = BIT(0), > + .hw.init = &(const struct clk_init_data) { > + .name = "nss_cc_switch_core_clk", > + .parent_hws = (const struct clk_hw *[]) { > + &nss_cc_switch_core_clk_src.clkr.hw, > + }, > + .num_parents = 1, > + /* Can be disabled in PHY mode for power saving */ Well it clearly cannot be disabled if it has the CLK_IS_CRITICAL flag :D What's the "PHY mode" you're talking about? > + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, > + .ops = &clk_branch2_mdio_ops, > + }, > + }, > +}; I see a whole bunch of CRITICAL clocks.. please make sure these clocks are actually necessary for Linux to know about (i.e. if we don't need to call any operations on them, we might just skip registering them with the driver). Konrad