Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp371214rdh; Thu, 26 Oct 2023 04:51:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFnEwOZ0lu1D+uExmsHJcmjwX/LisBUM4TZb3nErl7puMHPe2/dirdKmr7r+r2bdizGxFBL X-Received: by 2002:a81:6cc2:0:b0:5a8:19b0:513f with SMTP id h185-20020a816cc2000000b005a819b0513fmr20303931ywc.14.1698321101750; Thu, 26 Oct 2023 04:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698321101; cv=none; d=google.com; s=arc-20160816; b=Upq0rgs11BB+BsSQRLkJK0mhJ4fJXdqQlqY8DZDT8GxcPc7KDpMQVqk/yGYzdY8vy2 gvyF5aWPNU4xSIAb1cMK2MChxtEhfDZELU81HgmXbVzL0P/kpvXrG34p8sCKsxNK6o+n 5tQWf5Uni8yTiuUh2iXSeCjXw+xK7Op1iqbmImPXyaYIQQscF81SjULXhHhldulKDj6O kbwwQmXWa9S/r4bYkO2hUMkSgUsfceQ9kKoZ/A8dqs43FCsS6SwJ5cZ7w8xYFkQ6D9p9 SPORSxlZRcYvG4LJ37mHjjKnaxdp2YvxamhZptrdCv9azRKnCPmiGuc3q99RSdsxTSlr YpvQ== 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 :organization:autocrypt:references:cc:to:content-language:subject :reply-to:from:user-agent:mime-version:date:message-id :dkim-signature; bh=+bEXKDY0O2dJcBx8PzS4T9juifD+BCTKEs1j4rNwC1s=; fh=MSsLQQ7XmNXqHHo9Sc5jHwd6hWJtknPvv+uYHHYe/H4=; b=TGq2r8tuZamUV+GLHrM1hLvfO07mdu65Oxq1WrXUO3swl5zG+tH2cuY3GyrBtAK0gq THhYIb/XUwiUeHegejBGtx0AviO5b6CDcNSa5TuhfeF4bxgQ8o9f9hakJ0hH/Kj5hspL 459mNXEyU4J1IxjihIRAcWmz8kpK3Kgxe+NioEyhT0IBHx86g23bCWJ3MTtWPYnlZ028 6M5mg4FGMCEATgyTbQMCMazXIhwPafxETmZ0eeOuvdd5a4w4GG3+gRWCkMy8/niq7+uP PnB/8YSYqxlaiYwmzTGdt9kSD5lxE2eHdGpEjXruzXMBlBHn1Z9OvR47TPz467G835M5 uuGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VTVcVWhc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b68-20020a0dc047000000b0059f4f2da0efsi14288027ywd.220.2023.10.26.04.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 04:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VTVcVWhc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 6E6B781C394A; Thu, 26 Oct 2023 04:51:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230405AbjJZLv2 (ORCPT + 99 others); Thu, 26 Oct 2023 07:51:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjJZLv1 (ORCPT ); Thu, 26 Oct 2023 07:51:27 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEAC41AA for ; Thu, 26 Oct 2023 04:51:24 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-32dc9ff4a8fso531552f8f.1 for ; Thu, 26 Oct 2023 04:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698321083; x=1698925883; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=+bEXKDY0O2dJcBx8PzS4T9juifD+BCTKEs1j4rNwC1s=; b=VTVcVWhcGRkOUFd+5rhYkj+iqsqtMkVgWDX7GVP1GWBFQ90Z4gB/yCqjgNUOSEb42I caFbItMu4G4cABcdR1VcrO8h7N1LdffBy1KPClqqZpy1JCUbBwQzIr9AgpKb3bZ+CmFj abIQeFggxPsS0CJ0ECqy2Wb7r1Rc5bkeIlHDUQIf5KpphR2IjwyNBd1UhrY/Mz5yikNP zgBB2RPqAA8ihia1VnObvmuNbURUqgBTPfmFjexymZLa/T9n+QBGwzJM7yr4Brx4wb5v L//8GncHYTvbt98gUNUynAe8Xtl43zWlShWCSbRyKjQVEpV5YNIQnh67KnRSMmXAZHOB IKGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698321083; x=1698925883; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=+bEXKDY0O2dJcBx8PzS4T9juifD+BCTKEs1j4rNwC1s=; b=H7aKO2959WTrAe0VYupgf/wjezNgc0XJ6WpU5zQs5icsTl85ZQ9cLa1ZIMfWd/rzG4 7E1QjFY1stQJcVHG1/lt42CzjUhx5mIhj88SFJTbzuzcIu8/SVpEjMtHq/LhMOceeGFm dw0D6iVhvYXJXvNMCE5/tMKzlBmE5RSaq2ymzW2hGEomFyyGGvXFCP8TZ3rB2uOOGG+R 0o2oWH79IwuxUI6OG+eYwmkQWfgm88SI1d7Sq2OpbTGMdVqpwGIQR6F8LcMvu1O9gfmh 4jKwgLrT1/lKl5p+k0Yuhb2vH7VQ2nXBWRKZtrkZFPmEQBPeskiXaFDTBGVn5hmtz0md 23zw== X-Gm-Message-State: AOJu0YxakuLCnAls71eab5rGBBA5BRXg8zecHPEG4iauVsljL6VmMlQc 472UZUDcufn4jc37Iyi1C51IDg== X-Received: by 2002:a05:6000:b4b:b0:32d:a4c4:f700 with SMTP id dk11-20020a0560000b4b00b0032da4c4f700mr13224768wrb.38.1698321083300; Thu, 26 Oct 2023 04:51:23 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:f57f:eb08:d29b:8c9c? ([2a01:e0a:982:cbb0:f57f:eb08:d29b:8c9c]) by smtp.gmail.com with ESMTPSA id k12-20020adff5cc000000b00326f5d0ce0asm14094197wrp.21.2023.10.26.04.51.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Oct 2023 04:51:22 -0700 (PDT) Message-ID: <4f0a7c6c-b221-46c8-888a-34b94cafeb8a@linaro.org> Date: Thu, 26 Oct 2023 13:51:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 06/10] clk: qcom: add the SM8650 Global Clock Controller driver Content-Language: en-US, fr To: Konrad Dybcio , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Taniya Das Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231025-topic-sm8650-upstream-clocks-v1-0-c89b59594caf@linaro.org> <20231025-topic-sm8650-upstream-clocks-v1-6-c89b59594caf@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 04:51:38 -0700 (PDT) On 25/10/2023 10:41, Konrad Dybcio wrote: > > > On 10/25/23 09:32, Neil Armstrong wrote: >> Add Global Clock Controller (GCC) support for SM8650 platform. >> >> Signed-off-by: Neil Armstrong >> --- > Just a couple remarks > > 1. looks like there's no usage of shared ops (corresponding >    to enable_safe_parent or something along these lines >    downstream) Indeed, it was missing, I'll give a test before posting a v2. > > 2. none of the GDSCs have interesting flags.. I have this >    little cheat sheet that you may find handy: > > qcom,retain-regs -> RETAIN_FF_ENABLE > qcom,support-hw-trigger + set_mode in driver -> HW_CONTROL > qcom,no-status-check-on-disable -> VOTABLE > qcom,reset-aon-logic -> AON_RESET > domain-addr  = clamp_io_ctrl Thx, I updated the GDSCs. > > 3. gcc_cpuss_ubwcp_clk_src uses the XO_A clock as parent, but >    it's not there in the ftbl.. Could you confirm whether this >    clock should even be accessed from HLOS? Downstream this clock is only used by gem_noc, since we don't use such clock upstream I think it's safer to remove it until we have the usage. > > [...] > >> +static int gcc_sm8650_probe(struct platform_device *pdev) >> +{ >> +    struct regmap *regmap; >> +    int ret; >> + >> +    regmap = qcom_cc_map(pdev, &gcc_sm8650_desc); >> +    if (IS_ERR(regmap)) >> +        return PTR_ERR(regmap); >> + >> +    ret = qcom_cc_register_rcg_dfs(regmap, gcc_dfs_clocks, >> +                       ARRAY_SIZE(gcc_dfs_clocks)); >> +    if (ret) >> +        return ret; >> + >> +    /* >> +     * Keep the critical clock always-On >> +     * gcc_camera_ahb_clk, gcc_camera_xo_clk, gcc_disp_ahb_clk, >> +     * gcc_disp_xo_clk, gcc_gpu_cfg_ahb_clk, gcc_video_ahb_clk, >> +     * gcc_video_xo_clk >> +     */ > Could you make these comments inline, i.e. > > regmap_update_bits(regmap, 0x26004, BIT(0), BIT(0)); /* gcc_camera_ahb_clk */ > > ? Done > > Konrad Thanks, Neil