Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp202162rdb; Sat, 16 Dec 2023 05:40:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUzjENU3m+sDbd8fq3io3m/CLuParjQ4RvNyPmuuRLou0mLNmhNh/i8uIJLJUfhmaBAfRY X-Received: by 2002:a05:6a20:1390:b0:18f:97c:9780 with SMTP id hn16-20020a056a20139000b0018f097c9780mr13299097pzc.104.1702734004040; Sat, 16 Dec 2023 05:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702734004; cv=none; d=google.com; s=arc-20160816; b=RdmDL1V74wixr1N16Ufg8r4iOJylASVUApN9lvxvVBHVjPgbuZfpuWlosUqi/VWa7J rAByq/LSrxCUn4rM8kaPn9KEgruerykCf5cWZ2rB5HU5HDdVd2E4JYohMsNSYVh8pghU yymzQ31hnEux6g4gURfFlzgZ1cwNy0dJwiH8wRWtNZbSCiPjP5zFKMF28uARileVrJSD Imujsi/38UFCGJqBJJ4IHo+CHuh8R5YGSm87KbIoCoOxzZ9cSUhxoyNHj2jk3Jg4KLtV bW9XyfoS8hNl0Ql/NEBrzXhf13+BIxkbEJWCvrOXK9q7t0AllCMoOOiYDSuQcxB2QhLt K/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=CgQAUQAM8cELSeW2IEx5byiUzC+z8jup1PU8Zejs1w4=; fh=34MXgEuQdImw8QSLxv7pHC7mTHBwW4XeOfIi7KUSHC0=; b=0wJhsbenRpIvWdqMMUylfTnF5lgFeBj+EkV7L0jo/WtSixzoKXuP9VshE07iNpOq6x L83cJCcuV1QrtG21CVoMCnE7JM+2BuvwCHJwpQFMe+AbRP3fKHeL2Q6tPzX/eXo03GUo dzBTZF/uL+ADr1b/8kdKP0q/02jxOG2ALVTL0bL/FONot15u+ohRkoF3Zi4qto6npsjb VOc24QCr3TQ3VMzgSnbjVLjECYxafPZm+FTEj3ciAvYkPcX8OYrCQBZkyxXsSq+eC8x2 iGEFAcVbJzCYUuczTF6N1pSKXAKvRPa/suaa2+4I10HvP93nK6NzCWjaanRc3EhvTV7P 07CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mvg833Vk; spf=pass (google.com: domain of linux-kernel+bounces-2209-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c10-20020a63350a000000b005c660acad7asi1129282pga.4.2023.12.16.05.40.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 05:40:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2209-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mvg833Vk; spf=pass (google.com: domain of linux-kernel+bounces-2209-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 928D3285353 for ; Sat, 16 Dec 2023 13:40:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C07A72D63C; Sat, 16 Dec 2023 13:39:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Mvg833Vk" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6944025119 for ; Sat, 16 Dec 2023 13:39:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-54c70c70952so1883949a12.3 for ; Sat, 16 Dec 2023 05:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702733992; x=1703338792; darn=vger.kernel.org; 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=CgQAUQAM8cELSeW2IEx5byiUzC+z8jup1PU8Zejs1w4=; b=Mvg833Vk0ockkKydGh+VB8upA5B0YAz+npyfm9270wgdfORDvil/uy3gzRaI7ol8o3 QtXAla0LVcoURehtc3am36IO6SyHeQ5qGim6TwZeR5xLEFYyCC14YMuADR8AuCkPm78l AXB3NtsdXMSvSUU+S2qlpBbcVdvb//sWEKZ2ja3Zg1nrlOlu3FJ4wdyUK0EeTxlXAVrL cZ7aclGMLZioDGlfWeJjS64S2rJ+qI6Y8PPVgaPe4N2sGg8zLA+AN0XeNIL9xZqsvEzI S+aB1w7gaUC5//Tx95Dt1LygQ+zLG2PtwZEHfF9e7Nby1HBKkr3ycyOe4NOUnf8415zO MIQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702733992; x=1703338792; 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=CgQAUQAM8cELSeW2IEx5byiUzC+z8jup1PU8Zejs1w4=; b=xL9wlppl4bKd7JY2xV4t71oyPq6ukaDha8KSQFSsxSIcXwj3pa+x1uQsPj88YSZhuw QfBwslmCFUvq33SpowabvgNns9+DvHyiAMkDvCSCHp1cRwzVcyjpwMewR8egbatf5M1R v7u0Xhtcnvt8m3Hl3bH8yUQoDjWCw3Z9+K4UPwOCkoEKtjjMBndNnXR9C85M8tMqNL78 h3SH6zxzfiSB36doKB6eSYwqdWe34Nfn4heTVOofvlI+iT5G/xCOzfP2WRxdMVX5x6LT RzeJmi9GEZBdr9U8mPkWEViIogEkisiAopynkEGY3A5AJYA15arRmM8KBUf6zvMtjH7s pXZQ== X-Gm-Message-State: AOJu0Ywx4b0fAakryKsoJ4brWolOwDRnZm5eY3XtDL2ZmcfRLzY0489R zlabHF/u4c2REOt8Eq4ZCxPQLQ== X-Received: by 2002:a50:99d2:0:b0:552:a7e3:6e6a with SMTP id n18-20020a5099d2000000b00552a7e36e6amr1150338edb.107.1702733991678; Sat, 16 Dec 2023 05:39:51 -0800 (PST) Received: from [192.168.199.59] (178235179137.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.137]) by smtp.gmail.com with ESMTPSA id 28-20020a508e5c000000b0054b686e5b3bsm8928082edx.68.2023.12.16.05.39.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Dec 2023 05:39:51 -0800 (PST) Message-ID: <624956b6-d7ea-43da-bb8d-32d9166a0272@linaro.org> Date: Sat, 16 Dec 2023 14:39:48 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 10/10] clk: qcom: Add camcc clock driver for x1e80100 Content-Language: en-US To: Abel Vesa , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Neil Armstrong , Vladimir Zapolskiy , Dmitry Baryshkov Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Rajendra Nayak References: <20231214-x1e80100-clock-controllers-v2-0-2b0739bebd27@linaro.org> <20231214-x1e80100-clock-controllers-v2-10-2b0739bebd27@linaro.org> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhT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5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20231214-x1e80100-clock-controllers-v2-10-2b0739bebd27@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14.12.2023 17:49, Abel Vesa wrote: > From: Rajendra Nayak > > Add the camcc clock driver for x1e80100 > > Signed-off-by: Rajendra Nayak > Signed-off-by: Abel Vesa > --- [...] > +enum { > + DT_BI_TCXO, > + DT_BI_TCXO_AO, > + DT_SLEEP_CLK, > +}; > + > +enum { > + P_BI_TCXO, Please don't overload this define with DT_BI_TCXO_AO, add a new one for the active-only clock. Please also do this in other drivers in this series. [...] > + clk_lucid_ole_pll_configure(&cam_cc_pll0, regmap, &cam_cc_pll0_config); > + clk_lucid_ole_pll_configure(&cam_cc_pll1, regmap, &cam_cc_pll1_config); > + clk_rivian_evo_pll_configure(&cam_cc_pll2, regmap, &cam_cc_pll2_config); > + clk_lucid_ole_pll_configure(&cam_cc_pll3, regmap, &cam_cc_pll3_config); > + clk_lucid_ole_pll_configure(&cam_cc_pll4, regmap, &cam_cc_pll4_config); > + clk_lucid_ole_pll_configure(&cam_cc_pll6, regmap, &cam_cc_pll6_config); > + clk_lucid_ole_pll_configure(&cam_cc_pll8, regmap, &cam_cc_pll8_config); Do we know whether these configure calls are actually necessary? > + > + /* > + * Keep clocks always enabled: > + * cam_cc_gdsc_clk > + * cam_cc_sleep_clk > + */ > + regmap_update_bits(regmap, 0x13a9c, BIT(0), BIT(0)); > + regmap_update_bits(regmap, 0x13ab8, BIT(0), BIT(0)); Please make the comments inline with each line Konrad