Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp67582rdb; Wed, 20 Dec 2023 04:19:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxyuVIY4bcvZF9JFNN7bOmV9shJS6wMoRjtyeKRwhe6KBEf7uk224Hyc4SWby38WF/owXJ X-Received: by 2002:a05:6358:431b:b0:172:fe13:48f5 with SMTP id r27-20020a056358431b00b00172fe1348f5mr2297052rwc.61.1703074787380; Wed, 20 Dec 2023 04:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703074787; cv=none; d=google.com; s=arc-20160816; b=GrtopRxKmIMrMduF3R1Ie/cFXPSq8+Sx5ZTnWG/bjLgVdeCTeDEht6lkBUhyNQlSCy /uP09mPy6EWAtRTaUCZUGD5ifz2wedSokfAifmyLROgPajiO/bQRoIa/3tj3JpvpzsTk uSG6FUrAvSR0mEzDLQxj43bWpOImFq4IB/EgpdHoXC0Job7SeyoKSy8Swr5OkFtMEHfD t1EvtczS5dwYWaOxdoOMoAviN5XPqUHqUjLXuNODFgYCUAe3PsPv3GBaxBxHqy0uCDDF Ts0NAzi5lzHr4be41UpDYNZnq2ZtyKaFYVzvjhpu8vj+Qmq91xfxE7CVNVFLseRs7npi DWpw== 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=WJkVBfoxiqD1PlLE/3Y0GVSjWqb1nX3LX/NzhLRh3Cg=; fh=D/N0V45TdmgrP8vqbesnwRnmshapSAPy4wRfveav3/E=; b=TaATgsoF0c4rDNUsk0v9iF8QxGdpWqf+AGQXU1IVVVlycb89sC6XD9oJ2YDj1sV4KQ JUkf2zo6xcxb7fDOID5OJIwUwjPJVX0rW5WPooL/RQv3uejS3ex4K+4YFRhBcjn4Eabc Br3JunIcucpHWLvMRLf3p/WAj0DaR+3aaHTSbRxAKX8Qx2tal2J0m5cHnRAVRu5RogbV Kwr301sLdIkI1MOfYbA5LR4f4r2nz/bInkcWia6p5wzEq+Ll3Q1z1hTMzzOIeGgkmmyX +LyzWbG6TF6Y2INcQG3dUtmFFKI+fLcOb56zGnMr0IAA+udWZiqdjG6FyVEh+fDwurv6 hoLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YvQWosS+; spf=pass (google.com: domain of linux-kernel+bounces-6883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mn9-20020a17090b188900b0028b645696c7si2865748pjb.89.2023.12.20.04.19.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 04:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YvQWosS+; spf=pass (google.com: domain of linux-kernel+bounces-6883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6883-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E4EDEB2686F for ; Wed, 20 Dec 2023 12:17:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58F1622307; Wed, 20 Dec 2023 12:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YvQWosS+" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 1577422305 for ; Wed, 20 Dec 2023 12:16:56 +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-f50.google.com with SMTP id 4fb4d7f45d1cf-54c70c70952so7035036a12.3 for ; Wed, 20 Dec 2023 04:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703074615; x=1703679415; 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=WJkVBfoxiqD1PlLE/3Y0GVSjWqb1nX3LX/NzhLRh3Cg=; b=YvQWosS+a1pLj4fJlHjZuDyqfcmBf9zOTTCc1dT0hEZI7ZHI1gft5W+MK3Vz7+pncK +gDUmIxo5MjhV1THYFt/h+U7Q3aXXTJoEVUu7INdMzGA7DscSsLByKGqTvafDBQG91Ks hK0mIDVsBO4vL74p2gAeJgeduLH0gTLmKmvnBILf4XWLF8PMYxOE4/seb7yOuzqqS2qq A5GEqRnfGHMV2qlGA+KdoOcW96KKsECJs6WkdtgvlBj2WEGYXIoT7+BwhXgqdBppAhEF mJ5q2+B7trS0sguODcXDkXoRxcR6nF4LikvDLP6JBKYrBcQwPXl4g8DCe5i8M2Aaxm9o Prcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703074615; x=1703679415; 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=WJkVBfoxiqD1PlLE/3Y0GVSjWqb1nX3LX/NzhLRh3Cg=; b=T9S0jA4XMA23aXT0JkOv4NOgI8GYlbHtMteKQohv/1/CyfAyS/wgubJtXTX8idY5ok mTx4Z2jskhxOK+wsqnDAF1CR/nPH09yNbhWCuhlXhG903fNYBJkohVmOCeB2tY3sAIIt 1L2Pt4EbIViXEoYX54SiVS2Sdy/SlID85pEdRibfGOGNwfiILSZzMcoYS7oAKKNfJzx+ 59kyF1h4FboQ6u5F78FPAtOP2WhmNMr7Wx/X/S3tLitCrDXJWFW3B92sNxep03xx/lim oRX2Krh1HapeDeBub5MNAF0Ig/uKYMqDRr9d7GyYtgjLf91RkABLZOGDbZAAU5D6pyDq NSVg== X-Gm-Message-State: AOJu0Yw7isegagp6yyK7zD+s7UmBNMfDni0d1uxR0j9jebCEFzwAy9Nk 7krSItswZ8fWp1D3+noWb/V/Gw== X-Received: by 2002:a17:906:1c9:b0:a26:9924:cb1f with SMTP id 9-20020a17090601c900b00a269924cb1fmr182461ejj.141.1703074615239; Wed, 20 Dec 2023 04:16:55 -0800 (PST) Received: from [192.168.199.59] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id tg9-20020a1709078dc900b00a22f4736312sm10030738ejc.129.2023.12.20.04.16.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Dec 2023 04:16:54 -0800 (PST) Message-ID: <9ebf0185-db0f-4395-b587-66fdb65e7921@linaro.org> Date: Wed, 20 Dec 2023 13:16:52 +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 v3 02/15] clk: qcom: Use qcom_branch_set_clk_en() 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, Bryan O'Donoghue References: <20230717-topic-branch_aon_cleanup-v3-0-3e31bce9c626@linaro.org> <20230717-topic-branch_aon_cleanup-v3-2-3e31bce9c626@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+JthZOWsbIPSC1Rhxz3JmWIwP1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ShwL0MLSC1KL1lXGXeRM 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 20.12.2023 09:25, Johan Hovold wrote: > On Wed, Dec 20, 2023 at 01:30:43AM +0100, Konrad Dybcio wrote: >> Instead of magically poking at the bit0 of branch clocks' CBCR, use >> the newly introduced helper. >> >> Reviewed-by: Bryan O'Donoghue >> Signed-off-by: Konrad Dybcio > >> diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c >> index bfb77931e868..1ba78990b9f4 100644 >> --- a/drivers/clk/qcom/gcc-sc8280xp.c >> +++ b/drivers/clk/qcom/gcc-sc8280xp.c >> @@ -7543,21 +7543,15 @@ static int gcc_sc8280xp_probe(struct platform_device *pdev) >> goto err_put_rpm; >> } >> >> - /* >> - * Keep the clocks always-ON > > I think you should keep this part of the comment in some form > throughout, for example: > > /* Keep some clocks always on */ > qcom_branch_set_clk_en(...); > ... That's a good idea, it may not be entirely obvious for first-time readers. I'll include this. Konrad