Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4897444rdh; Wed, 29 Nov 2023 14:05:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsJhlXqIr3F64UjEyzMSkYi6zMln6eWarqx65zXOIYM2mX7kiA1bQQzv/07t5q2A542QL/ X-Received: by 2002:a05:6a20:7d9e:b0:18d:1321:c2b3 with SMTP id v30-20020a056a207d9e00b0018d1321c2b3mr2971484pzj.36.1701295554838; Wed, 29 Nov 2023 14:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701295554; cv=none; d=google.com; s=arc-20160816; b=XS2A8tWhzfz4HhJKVIcx6yHjH0FIfiP5zCP/gMF+6mhs0ELe5y/i6aiOgWli44+LeN FsS6Vw3ShF/FdqcE4lugSM7aXQpEkktuzmIDH7PCUQJs9RqjgqFW92Nlrp/SFoWwG2QK 8xKxNaY67RU8zwmVwBcUMzOJE27CMfgcVnvefWnn91jCcbLkflHOwewXjsi4H308f6CG 75FyK5Mu05q36Ozl4YhYPZVaKDd8QeV5NKphKIUr+vLCCt9wOptQVdW/NqMrFbHEYN2E wqLip07G0K2asjwR9P/nXICb5r18CNcla3poNx2Nekahj6W1l6MJWxWxAbVWExDMp7tp lbNA== 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=Y8E9IL2rTxndKeeYdbk/Y9ijp2mjFLxuDcVfuc0PDkA=; fh=QhSkf6j4Kuhj8Z3jkYmE/9BEd/Ep5JFYAbKE35YeqbM=; b=qnU0QBQPQYz74LjCmw9Knz+yCnHx50XGp4Q992B3HHk6t1iUb29Mt7/VNqNlDQCb02 NVFgHod+T/zSZngZlABWdPMEqg5c7q68dOvH24DPB2lfBMaqXL5nWiH1dsmtVfa+AXtE U9SAv2gWSQfQPCaEapWhZ2x4SE2bPnO0Dk/4LCplIO9QQ75I92AhwKAW43lagwghxtCO jxn7e6eyhnVOEt760nLmpQTPnxYAlKI6ZM9Qp+j6RTW8tOx0CRfTMjsQ/SG3YA6oMA0e Qxn6b85dnEVf3i3CYbsmRW2y+wOtWdtFRJzX5BEWvYk468TUR3tZ64+lVCrMFhgZ15Lv LiJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LPt0dBlK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 195-20020a6301cc000000b005c21fa725casi14051417pgb.596.2023.11.29.14.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 14:05:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LPt0dBlK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 565DC8032A1A; Wed, 29 Nov 2023 14:05:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234559AbjK2WF1 (ORCPT + 99 others); Wed, 29 Nov 2023 17:05:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjK2WF0 (ORCPT ); Wed, 29 Nov 2023 17:05:26 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11507B2 for ; Wed, 29 Nov 2023 14:05:31 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a00c200782dso34242166b.1 for ; Wed, 29 Nov 2023 14:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701295529; x=1701900329; 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=Y8E9IL2rTxndKeeYdbk/Y9ijp2mjFLxuDcVfuc0PDkA=; b=LPt0dBlKTevtKSW51sKJS4ObsJ3Y3vdw2pRZa/9sVpBSo3P3rn8ObBHf7e5FtLLTWF mir8+WNBcd8cgCez3qdcLcbPGkX/y/pB8buIp1aYlPnTZgb0g0DqCNxVADZ7wEJFV1w0 nBUiFmMyzQveIF1F2QJil4FIfkUGCtKQLh40a5ZCTroedwZgFJx8VEV5GgJrZh8tHEWL 7cJlhQEuS8U6iGLNxzkhblA1/tFCrPZaGncokweAH3IRI0Ii7d3PhXZ9ghqoEUd90hGS c8nuDR7fxehTopKgqQ1hE4OTk++HlghB6txkSlED7YExyUHDkdZelG0vh+S5A3JCT5J1 mHYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701295529; x=1701900329; 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=Y8E9IL2rTxndKeeYdbk/Y9ijp2mjFLxuDcVfuc0PDkA=; b=b80si7NE2qhESf5tYFn3hJE/jcTJ27eUrVlqp1LOsGIKO1cVUl7fS+Z5oSjQXArH+C RMOwp5Zr1bbhydy5zu4AWjNcbnetpf9K7vpXxnqf+0NsCguFBM8YBeIrsHGyO0HScU3f cLrgHTzi1jycAhZgk8u55wa10g+yCsUk5jLwIYnkeb6jbXzEueU7Pbn9T0Q7PPN84dmd /Tl4x5MUVaEJdEkFrnIKdKnAJB42BLIPKDIbWqsmbUb3SD5WEP0GmKhFgKRDZK5i7b5d PX0f/NLHseDS7me5A4Sk4MK4Hx0By4gjIjVeqZxBXj+/69aqgUmAr6vioK3Gt98U429y X96g== X-Gm-Message-State: AOJu0YzvPK4kYBdXR14efAej28tynCXvdiubykdNf2uhAZ7tQ42lIZF/ k+CV3DgqOmZMsPat16GCs12tWw== X-Received: by 2002:a17:906:51dd:b0:a18:7e19:5347 with SMTP id v29-20020a17090651dd00b00a187e195347mr11591ejk.47.1701295529518; Wed, 29 Nov 2023 14:05:29 -0800 (PST) Received: from [192.168.209.83] (178235187166.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.166]) by smtp.gmail.com with ESMTPSA id a20-20020a1709063e9400b00a0369e232bfsm8274504ejj.75.2023.11.29.14.05.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Nov 2023 14:05:28 -0800 (PST) Message-ID: <27380394-093e-4b8e-94f8-a1eefc72a020@linaro.org> Date: Wed, 29 Nov 2023 23:05:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 02/15] clk: qcom: Use qcom_branch_set_clk_en() Content-Language: en-US To: Bryan O'Donoghue , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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-v2-0-2a583460ef26@linaro.org> <20230717-topic-branch_aon_cleanup-v2-2-2a583460ef26@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 kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAmQ5bqwCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQR4cBcg5dfFjO BQ//YQV6fkbqQCceYebGg6TiisWCy8LG77zV7DB0VMIWJv7Km7Sz0QQrHQVzhEr3trNenZrf yy+o2tQOF2biICzbLM8oyQPY8B///KJTWI2khoB8IJSJq3kNG68NjPg2vkP6CMltC/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wh3dk8i 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: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 14:05:43 -0800 (PST) On 29.11.2023 21:59, Bryan O'Donoghue wrote: > On 29/11/2023 18:59, Konrad Dybcio wrote: >> Instead of magically poking at the bit0 of branch clocks' CBCR, use >> the newly introduced helper. >> >> Signed-off-by: Konrad Dybcio >> --- > >> -    /* >> -     * Keep clocks always enabled: >> -     *    cam_cc_gdsc_clk >> -     *    cam_cc_sleep_clk >> -     */ >> -    regmap_update_bits(regmap, 0x1419c, BIT(0), BIT(0)); >> -    regmap_update_bits(regmap, 0x142cc, BIT(0), BIT(0)); >> +    qcom_branch_set_clk_en(regmap, 0x1419c); /* CAM_CC_GDSC_CLK */ >> +    qcom_branch_set_clk_en(regmap, 0x142cc); /* CAM_CC_SLEEP_CLK */ > > This all looks functionally correct to me, wondering what your motivation for changing the comment is though. Perhaps I could have included this in the commit message, but: - it makes sure ARRAY_SIZE(clocks_in_comment) == ARRAY_SIZE(clocks) - gets rid of different capitalization and wording between files that triggers my OCD - also makes it easier to see which register corresponds to which clock, which is especially helpful if you wanna validate the guy before you Konrad