Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7612133rdb; Thu, 4 Jan 2024 01:57:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtJFHZb8sq9x/ZeD9YWwmoBMfnodF4L6IQ6yvlkmIG6vo4enhFvyBYbp4BSBlYohlRyvA7 X-Received: by 2002:a17:906:6b92:b0:a26:d98d:58f3 with SMTP id l18-20020a1709066b9200b00a26d98d58f3mr170206ejr.133.1704362233607; Thu, 04 Jan 2024 01:57:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704362233; cv=none; d=google.com; s=arc-20160816; b=EgUy5rXVZ4x4gyTGYJuREP2+4mjUMW6CSgRErw1zJVJnOGHjdplT7TnZm+bwq1uIdK YD0ebFMUX/EVfJx3TIkO55ayTuF3LD2hZbPnXQRHxkM29L7VeYlrU1WfrtQMfOwoL8kG JutAtjeORNqIVcTH8BQxuskdfW/AcuGFmmgq5TellFrXpzmTUGIsPaXjmfpzlpw770xL 8jh9k4D1kqnXae1hN3ZtEHTPafjhaJ5THNTz7GOoE8Q8pj/vCeNRmPff4oAEC4fNwHU/ NeDZEKTABrSW65rREx016WW3aZxWc3xWCheEHEmDwda2Mm67+cl+TdQfhGlDycewDw6r OSSg== 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=wO8OC0Dzb3+yM1rxiFt6WTsH4sWuKnHi0Z9bM/kkbiQ=; fh=Shi52h4Fqvzee04a/+zB/0vHEO8bpvUDz/YobS6gOlw=; b=DO6rr215J0HPe3n4XZ8ykMpCTu6xCK43HlL9LhJv4CnMIEHG+CtooOmYUO/hMlwulz 25BUnNPW3PUqvfYYgnxg3LcQGMIBMhIZpAHDEYILSnz4nqXYTCEyThch/667xwpv1Sap ZriQ6CaVCmq8v0mnXW8nc/6wep/q5X/0kqNmDRH0isTDi4uo9P1VyuxqM6tYSHn4ElGh WiH7KuVCgTM0KtmiSxrRRQ/mqkWxDqSiFqdDBSwETkrcsXy7OaORUMVLtwcq9ECB+cH+ RYHkTiIO8oWW97Wkmh8Nq+20VxSMzpIwZgn3R+PtiTq4bhiarJR6Aftj0UXJOXHkxoK3 6/Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wmx//jxu"; spf=pass (google.com: domain of linux-kernel+bounces-16473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16473-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qx7-20020a170906fcc700b00a2827a6c816si2618622ejb.835.2024.01.04.01.57.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 01:57:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wmx//jxu"; spf=pass (google.com: domain of linux-kernel+bounces-16473-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16473-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1F8E71F2518A for ; Thu, 4 Jan 2024 09:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92F3920B06; Thu, 4 Jan 2024 09:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wmx//jxu" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 40C02208D1 for ; Thu, 4 Jan 2024 09:55:32 +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-ej1-f52.google.com with SMTP id a640c23a62f3a-a28bd9ca247so31570066b.1 for ; Thu, 04 Jan 2024 01:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704362130; x=1704966930; 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=wO8OC0Dzb3+yM1rxiFt6WTsH4sWuKnHi0Z9bM/kkbiQ=; b=wmx//jxuABvm2y49gbqV6XtIlD9HQgY8cFOjGH/7Y/StmIVb0cjHHgOmRUkV0kq72c s0wQZSgYIepKl3hLYMNbhUmX2Q3p30i/RkADbt9HDLhsSQK5/6TyEU7m1HVYiYjrD1H1 GG53ZoIDhwFrXs4V18giI1lOCHhSfV46vJW9HwdmbLMV3cSaO5m1ag8ZUDOUgKmYOvEW DTXhG+K6ghU+/ideKaXhyYvvAzfv3HptD7trvn5M62KhPD9xy8cXO78BAgMO59pOZSsz SoHG205h5L2PNrL7j7oQpn92KwmWkPMX1lnyaPdHmPic9v5X/TxJww3dhSk2lZ1wxqxp DEeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704362130; x=1704966930; 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=wO8OC0Dzb3+yM1rxiFt6WTsH4sWuKnHi0Z9bM/kkbiQ=; b=jdtTnpnwwCn8Qh1QE+sQ1qPANRNVZj00s4VLVXIzvwSucJ42vZfW439pRflRLDCeSr 47IanFOdDzYouF0d4GYz6Cyos9LqAl8SZHCKF5VDXpvcbI1qzrnnxKGhin5lxsWfHiaO i0sd2pxYLl1ll9etpLV5FXBU5Vlym5TT3z1j94vavozFrw/6pdjt5PPGSNmSWXOx2bLp nU86XCQ8QnD0XRQ2IsVdfV44swR9lLxHLCOyfk8/xVsY68OYOH8FJTIXk2SfBWEAyzFs t99eydNgmyKysk9MVkCI7kLUcKP4lCjzkkA9sWHKB3/y88Yq9EqJEASACKiqXZXdmnRp L7yQ== X-Gm-Message-State: AOJu0YwRENhJfN/uJLB39gK3U3N9LhPx4jLr+bYQzuPJx6s1sqkKv8Jf tvU+NN4Tybu+M60qNPog72gZce/4PmUKmw== X-Received: by 2002:a17:906:d7a8:b0:a27:f2b7:bfde with SMTP id pk8-20020a170906d7a800b00a27f2b7bfdemr178795ejb.130.1704362130400; Thu, 04 Jan 2024 01:55:30 -0800 (PST) Received: from [192.168.199.125] (178235179036.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.36]) by smtp.gmail.com with ESMTPSA id gk1-20020a17090790c100b00a28a8ca1c55sm1184525ejb.212.2024.01.04.01.55.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 01:55:30 -0800 (PST) Message-ID: <7f2f738b-a2a7-43ba-b63a-bba59e76bae4@linaro.org> Date: Thu, 4 Jan 2024 10:55:28 +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 v5 03/12] clk: qcom: gcc-sm6375: Unregister critical clocks Content-Language: en-US To: Johan Hovold Cc: Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230717-topic-branch_aon_cleanup-v5-0-99942e6bf1ba@linaro.org> <20230717-topic-branch_aon_cleanup-v5-3-99942e6bf1ba@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/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 8arzfyiB5wJ9tb9U/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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4.01.2024 09:35, Johan Hovold wrote: > On Wed, Jan 03, 2024 at 02:36:01PM +0100, Konrad Dybcio wrote: >> Some clocks need to be always-on, but we don't really do anything >> with them, other than calling enable() once and telling Linux they're >> enabled. >> >> Unregister them to save a couple of bytes and, perhaps more >> importantly, allow for runtime suspend of the clock controller device, >> as CLK_IS_CRITICAL prevents the latter. >> >> Signed-off-by: Konrad Dybcio > >> @@ -3886,6 +3797,11 @@ static int gcc_sm6375_probe(struct platform_device *pdev) >> qcom_branch_set_clk_en(regmap, 0x17028); /* GCC_CAMERA_XO_CLK */ >> qcom_branch_set_clk_en(regmap, 0x2b004); /* GCC_CPUSS_GNOC_CLK */ >> qcom_branch_set_clk_en(regmap, 0x1702c); /* GCC_DISP_XO_CLK */ >> + qcom_branch_set_clk_en(regmap, 0x17008); /* GCC_CAMERA_AHB_CLK */ >> + qcom_branch_set_clk_en(regmap, 0x1700c); /* GCC_DISP_AHB_CLK */ >> + qcom_branch_set_clk_en(regmap, 0x36004); /* GCC_GPU_CFG_AHB_CLK */ >> + qcom_branch_set_clk_en(regmap, 0x79004); /* GCC_SYS_NOC_CPUSS_AHB_CLK */ >> + qcom_branch_set_clk_en(regmap, 0x17004); /* GCC_VIDEO_AHB_CLK */ > > Shouldn't you keep the above sorted by offset or at least try to group > them by subsystem (e.g. keep the camera clocks together)? Guess I assumed order-of-appearance sorting was fine when I made this patch. I can group it by hw block, though. Konrad