Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp294674rdh; Wed, 7 Feb 2024 05:12:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCURf3t3Trxa2IHT5oxmGx8lmUBC7i4hvi8ZRPTQFUjN8E4IB3axEC/guptpapKyzFpsOiAGonE9z1t+0jg+3xb4ziQFNdY1u43DOPBGoQ== X-Google-Smtp-Source: AGHT+IGQQirqGxthdzHAMwm7ZFVMHr8QQYhUFNyC8Y7sBFrQnzKaszbpRCcAcDKroNDN40pxE0Vv X-Received: by 2002:a17:907:788f:b0:a38:9911:cd2e with SMTP id ku15-20020a170907788f00b00a389911cd2emr314558ejc.3.1707311567109; Wed, 07 Feb 2024 05:12:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707311567; cv=pass; d=google.com; s=arc-20160816; b=Q7hTmpG7OPZuQeuGwubfBqWqYmkdSrAWJz9XDY+RHPIIEP+6FCgVdSz9FN78Ekm7t0 qUdVmqoc6lMwsu5apg8/lxSPxAoRxSEdGteBoiJZzu54ryPuztAsRt3Zl/Ne1yH1daOX pacbJDlNFN6IUDHWarjax68ShsMwOSHgId1IZypWTSxqaubtv7GxhuM7gdd2sRF6U/l0 dl32MQ3LtJYUhjf/7PWny1g5BmPK4NGMlspJ9Vxq2PizG2zFa4UHeHpWg7nwaeK9phpF fD0R2tbA9S8ICt9xsBwPYNgNc926EGOXXAeex77YW/EeVoVo+ueDASyhmKcE8WjFE3Iz R0Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VBFC04ajuUywX7zgVv37Mz+xT5BCyZWN/G5H45gUkes=; fh=hQGQGSMHO5DK4gLR838uEvRzH2vixsoDDrBbEAZYW3A=; b=F6cRVJflsPIaP2EqJ+TN8BiVe4SFHKM9DKiTNbb7W4yfQwurYL4arxjmfPC30Rx5Cv y574xN/SeKnPJDuit3xhbuIpnFu9X4tKUiMs/LVfpNTtQdi0NEBCo6/D9UK0WQzHU55Z 2uV4fyZyoek+yzNe82yRSjB52iaUYtRu8co4FuWL6xOXQBa4IuWs8J59sHZCPRFUq32G 5vNEXcujaGVhrzfzobZvU5LuL11nbJzF3ngKZlGZgQUtKc53+fdgcH92DZzs3RYlAP4B MRZplDs6O+vNvn8/inflxPLHYe2JYEQFKQ7L6yUmDdxUWth7c/xPlQN9UWZy5G+HLCuJ 0NrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qaN4izum; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-56526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUKFCAo1/u+/hrGsk7ctR8fNHipVSSCT/PoO+4aVAG2AoK1jegWp8EBgYvW1YTk6u9V/NjC3r6Ylrsq3NB3rpPEVpcmAaaYtpwCiy42RA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t4-20020a1709064f0400b00a384bfe38d8si881319eju.779.2024.02.07.05.12.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 05:12:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56526-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=qaN4izum; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-56526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56526-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 D4AEC1F23406 for ; Wed, 7 Feb 2024 13:12:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25D8A7E569; Wed, 7 Feb 2024 13:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qaN4izum" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 597CF7CF24 for ; Wed, 7 Feb 2024 13:11:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707311481; cv=none; b=Jsq4gXGDy3lydIPEHvBhSFia2ger5yKD8Ojw0ARL888nHC3dMAxcxp/7IKZjwIb5lvTTEiqCxGPIIanPiBko3CEyEdyP7GzkyLZDuvq3cv30sOq4CFCgAvVDi8XNW9HVT5PM9DSRLkjOTpLqarUBhyg87O5pEYbJL5//a+Un2uE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707311481; c=relaxed/simple; bh=R0QoTkpqrfbEypqfuVgfcQUAGnbIyMTkH94BvCYKsms=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W1rmI2Kjb+8XXxMRzy2xRYD5k0x8BwKv8u5L3Fe1+zHYpX/0sCmxO/HOA3sOpa8TzmPGyCeYZRU83KbLebeS1Ru5xuK6oKb8MUV124bFepCZL1P2b3p323bzzQ3ABf4Kb+eGPmozhdrF73Qb66tKXoD5SxU7QGpnOsyFo3KZDlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qaN4izum; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33b29b5ea96so364688f8f.0 for ; Wed, 07 Feb 2024 05:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707311477; x=1707916277; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VBFC04ajuUywX7zgVv37Mz+xT5BCyZWN/G5H45gUkes=; b=qaN4izumts6yIkcMeGa8EJhyI3e1Rf4xXR1/1YPZmp5HvqG/pUSGHJ8N135RdjvOqA rI7p4QCSneKUoRInwqcQs5ZiJt50YJQemC8JRwRECiRzmKN+m1hf2bNCz+j2t8CIFEku 2Wq2hnJWM2GKVUX1R03oGsvFCnWBMWjAsqXmGjsGu4MDgr3/xTC3HCj0KhVXEXXOHTCe Jv8UyTwMLiZVR0MTzT6tKsOhP6xzW050Nd1hvrFBqyYh/PjhyEa2AKiN1cfVSfQHwKLg T4ISD0jTx5TualijHxj/Uki1vY7I/4aMNd6JZhPsJrxHhOmUPTzG31xmy5GoQg8SSlAy EI3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707311477; x=1707916277; h=content-transfer-encoding:in-reply-to: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=VBFC04ajuUywX7zgVv37Mz+xT5BCyZWN/G5H45gUkes=; b=LNYnQiu3m9TF7NBXsS6XjRJCS1Ocr+UgfqFSj9f4ni7/da6qkLf4YiXsG5bfK4rw6y 4hw//DybX9v5uwbjMNK3ZC8uN+XQ0HKX2AnT+wiAqZlu0jePauMaDFpvxPx+MwKcUnUq ra3BQyaHYDrwPKiI4IBMzV82YNz8t4/uQ8GPxRdriEBjsufF6XK2PNxPVOjadnb/yT0N 8QTuo+tB54ggYlzeRgbkxifAM1YDgEynQzyd6nlX9CeoNQm8toWq/i/v+4lPFJUQsXbI t6F/8fYOKSRxllVeCY1UycLXClUz78uOX8PvEpoT66ujhtqz3wXtDZpU3DaOwWS/yFc0 4chA== X-Forwarded-Encrypted: i=1; AJvYcCX/E0W5nKtH+qQO7Z+4iJMfpfCUh3KQY8jMa6Ya9PCGIcLXWUW2ZkATm5X4vJIs8Ln3wsakr0hzJTSQf0AdDUx2DP+OR+bypvNeFYVO X-Gm-Message-State: AOJu0Yyvd36y6+nUf1NWX2IkVoKWaAVCT3tEoRZraBBosGK9Pu8yxDg/ DYswoMNnN5DFH2jXO8SdFzVFUyzCUnz7b4VYiKy58vt+xw/C3rOd9e2vIILRC+k= X-Received: by 2002:a5d:55d0:0:b0:33a:ff6f:815e with SMTP id i16-20020a5d55d0000000b0033aff6f815emr3801177wrw.8.1707311477518; Wed, 07 Feb 2024 05:11:17 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVvJFqVFkOE0CT7NM1P3ByTvsuELdsidzrJi3hCKofPEptwr0hGdqfS8Zv44GFyKLbdZUWraMHTbqnjWD6twPOS4+Ph2JioCcYQReZA43qGGmifHPDO5Q2iarcSpCDjkZgJPp0mtgKiVL1H3Y/d9Ct019mUeTXC/eG2zwPxbAtGKqddigtLuEN3dlKTNS5WC6bEGcWNDFmOoaKykuWmvLKq8wEvrfoGPaZjtKnWO5xCyZNF1grNw1BHL3krqVW6EpLrSVs1HwgJjkcc4+2Q2QOdrUzGsae5e5JbFS57B5ZT7/h9em8LH8RRIyYHyLejhHjoAjphUXZu9gfGjzYh2dR1AYhk716gKswarAPuHDwwuMC6UvTidE7O4wvCIQGJ2v1lBI3Lvv6jlpFC8DMJxhy+pf8Wx1XO931qgeKT9tnLC3Mc3MSr/A8S+M2N0AYwQqf7DaNixNFT9FvP58rCrjudcNo5QVD0ro9M0iTEPuuptiS67bnIES6J1rthB4zb/YQ8qD/3babkPeQsEW3hPR0axg== Received: from [192.168.0.102] ([176.61.106.68]) by smtp.gmail.com with ESMTPSA id bv7-20020a0560001f0700b0033b525dbc70sm222811wrb.79.2024.02.07.05.11.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Feb 2024 05:11:16 -0800 (PST) Message-ID: Date: Wed, 7 Feb 2024 13:11:10 +0000 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 4/5] clk: qcom: camcc-sm8650: Add camera clock controller driver for SM8650 Content-Language: en-US To: Jagadeesh Kona , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Vladimir Zapolskiy , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Imran Shaik , Ajit Pandey References: <20240206113145.31096-1-quic_jkona@quicinc.com> <20240206113145.31096-5-quic_jkona@quicinc.com> From: Bryan O'Donoghue In-Reply-To: <20240206113145.31096-5-quic_jkona@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06/02/2024 11:31, Jagadeesh Kona wrote: > Add support for the camera clock controller for camera clients to be > able to request for camcc clocks on SM8650 platform. > > Signed-off-by: Jagadeesh Kona > +static struct clk_rcg2 cam_cc_mclk1_clk_src = { > + .cmd_rcgr = 0x1501c, > + .mnd_width = 8, > + .hid_width = 5, > + .parent_map = cam_cc_parent_map_1, > + .freq_tbl = ftbl_cam_cc_mclk0_clk_src, > + .clkr.hw.init = &(const struct clk_init_data) { > + .name = "cam_cc_mclk1_clk_src", > + .parent_data = cam_cc_parent_data_1, > + .num_parents = ARRAY_SIZE(cam_cc_parent_data_1), > + .flags = CLK_SET_RATE_PARENT, > + .ops = &clk_rcg2_shared_ops, Nice. I compared this to WIP for x1e80100 which looks nearly register compatible. Use of the shared_ops indicates to me you've thought about which clocks should not be switched all the way off. > +static struct platform_driver cam_cc_sm8650_driver = { > + .probe = cam_cc_sm8650_probe, > + .driver = { > + .name = "cam_cc-sm8650", That said .. please fix the name here "cam_cc-sm8650". The title of your series is "camcc-sm8650" which IMO is a much more appropriate name. The admixture of hyphen "-" and underscore "_" is some kind of tokenisation sin. Reviewed-by: Bryan O'Donoghue