Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2450395rdb; Mon, 12 Feb 2024 05:31:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbiUEHYRXq9gXTM0BE9YCgmXOEO+MEOM0/ojslfshP3ybH4DyhcI9k3BF9jgdrRfsKJc0K X-Received: by 2002:a17:906:b42:b0:a38:984e:2e5a with SMTP id v2-20020a1709060b4200b00a38984e2e5amr4430314ejg.33.1707744709971; Mon, 12 Feb 2024 05:31:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707744709; cv=pass; d=google.com; s=arc-20160816; b=SmNb0pSd+uh+Nxk6DrGQ41g8AGtYQFRaCEXBRJYiz5qsJzOYwO7yrvCrUF4xfVmDd9 7Er/RRyK1Oz/veUGiUJVvnDoB6vM/oD4OS5o8yYAEZpu+7qDTupYmK0PsGZvgLIKoJFw zZK9Y1xVTeYsqG8Y1Amur147pT8oEtKD0/zbJbU+AxNf5vTwGpM5jOoSCFeoKt8MkkFC hUL0Pl4didiBi92SBIUeWEqxbky7OYM8Mu84JqoUnweLa4ODOGPdXcyxNXGkNvSaCrRj t7FtYF002YQh3slBXGYwOUHELqtHs89g1YQn6rI3kbI52HoxPAeiq0BbKIDzGtMX+Kvp UP8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=/+XEKHxpbfeHopZyLoPZwvUQi1sJb8QAohlEN697rP8=; fh=4egAEwPftd4F1H8CoUfGE9hx41S0HVfsS4mvJulcMck=; b=zsRxh0O0iD+6tYq5oFZ1hSfaGsvQjaEvLj3A2qNpwtp2Uu2G0X1NjsDV8fJBqn4JqI yMMFTLh1Eg+OKSpdgSusz5WrYKKZLFu1NFBMJxpZpWxDmDNH0Fzk3nUQ8ca3s/nMhp8e xY/lkbLNhYAu3AUwYkqkECAXRqyxN17rlB1eE6Tle0SSfuVT+jwjwh9x7McsubRi1WGo ahrBdOejR3HXhVC4LpTNfIFrO9NuMKiRHmyzNJ4UVbiWDHqHGan7SarLqgNvnCH0TIUP 7fUOLKSNrLED+Es3OaKLO3Sf5efE/aYJoi91CH+bhslpTK7n9oRC8bQ5muah2aN2E6Ai n9WQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qZXPEUyv; 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-61669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61669-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; AJvYcCXTI7vDmIY2RCrV5RFun6GEEaME6nr1cl1+rT/kmwGFEjXqItfyDXS9poT5Umh26CEa3fFWQOidHq1dkzPL8Ikrx3l7YKlPJEdYkAAAJA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i12-20020a170906264c00b00a3c476d7dcfsi196709ejc.404.2024.02.12.05.31.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:31:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61669-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=qZXPEUyv; 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-61669-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61669-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 9879C1F21618 for ; Mon, 12 Feb 2024 13:31:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 062AA3D3BF; Mon, 12 Feb 2024 13:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qZXPEUyv" Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (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 8F51C3D0BF for ; Mon, 12 Feb 2024 13:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743829; cv=none; b=oCLMgMzt/C075dW4iYJzfKBxUE43FetGt4gmEQivsYfGPTNpi78yWYYHlPntjRZPXpnzebivMVw/RvWWK9EHv/Sg2YqUIL+641BhWHZAsAx6ww38d/6A36Yx3Gf+3ASMNouHnTNnlclYlT+oFcImiAn70q78oAj4acj2KDGk3II= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743829; c=relaxed/simple; bh=EFPEqd46s5I3E5DiBGISav+OKrKybFE1x7xvB+oOzus=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=k8hDxJ2TipnCkmtSavOT5Q+8zwP1C/y9pFItowpTlxuv8N5ITIGhDAtpPyymDXE58f/6rpSIkwgdzZgyPAvTQ7FgeTNa42Ed8GWlgRkzf1EusTT0XBKzcN4TQXjSLDdqTvfqqkVzlkCzU3ezMHOEYFtcWeQkGFoZQ5Z1yH2bkmc= 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=qZXPEUyv; arc=none smtp.client-ip=209.85.219.177 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-yb1-f177.google.com with SMTP id 3f1490d57ef6-dc23bf7e5aaso2827619276.0 for ; Mon, 12 Feb 2024 05:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707743826; x=1708348626; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/+XEKHxpbfeHopZyLoPZwvUQi1sJb8QAohlEN697rP8=; b=qZXPEUyvRsWhEPAPJqiBITzGzJk+QE0USleiyN+YaJFpv9g6CViWKPGzp0Ok8N1rJK 46wz1C+bfHvjjwPYt8mlgwy96IghTfD/QyyjgyZXiLepzfIJhM9Q+EOKvKbWM7Ed/gw8 6zhT4C/OjPqcUVi90evrgyEbMAFsfA1AF+VrmJjTbcFxm93zUA1oEaPz3hPXlOsjxgC1 0TkTvEeU0q1Mh0ihUwp5kn96YPHX2EvDA3cC0XpcYxawYUuX/In5+HL9ShHPlLUfduAe G3GcRq2ztozgQchrqPmateUUvOObn3QKz8+Sy4uhyG4KkT9f8iYh3pHVUQUgGjIdNKiO LZFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707743826; x=1708348626; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/+XEKHxpbfeHopZyLoPZwvUQi1sJb8QAohlEN697rP8=; b=DfhKnBwucShSAeB3FLThBWAwI3VN7zx0uxSdoBi7Xmo1/3qiNxqkx/t0kwCVSq5nkn lhZ/qjkmyBRWoAuegwC+sFq4zY7cQrZzWARZw0a9iZu4WGg0Pfa7cu5gNzPleWY/jCzZ JvXD9woo2+nGIPb2aMr+HtLp2Q1OWIU30D3t845VmxKb6zkYZiCuDN0307jnqROXNFuI vuZu46QNknzZTl+s8KwMATZkKluS261pdAd4lDMW05WXWcTQ8rdkDOLIIPgq8hC/QaRJ 5q7WqfeAn8JPPU813H+hYLTFq9kuv6Rber4CKTJ/WQmHqRGk2fuSQHxpxxFkTM8ptCLP wlSw== X-Gm-Message-State: AOJu0YypXo5sKtX6xEkEnSQ9z4N2rLepG294/zoKUfA767u6Xo5TDZCQ i7wOD/TQqV/9Bkzvd2FVWJNEI5fY+F9rku9QUlFxMbgjD9yVnNZEKYxG3KPlBPGIiVstcBMF+HC gwvqPq/kiSu39T30SDTSKiXkjlyTLA6/UDqMZcA== X-Received: by 2002:a25:ae9c:0:b0:dc7:43aa:5c0b with SMTP id b28-20020a25ae9c000000b00dc743aa5c0bmr6076081ybj.21.1707743826518; Mon, 12 Feb 2024 05:17:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206113145.31096-1-quic_jkona@quicinc.com> <20240206113145.31096-5-quic_jkona@quicinc.com> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 12 Feb 2024 15:16:55 +0200 Message-ID: Subject: Re: [PATCH 4/5] clk: qcom: camcc-sm8650: Add camera clock controller driver for SM8650 To: Jagadeesh Kona Cc: "Bryan O'Donoghue" , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 Content-Type: text/plain; charset="UTF-8" On Mon, 12 Feb 2024 at 15:09, Jagadeesh Kona wrote: > > > > On 2/7/2024 6:41 PM, Bryan O'Donoghue wrote: > > 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. > > > > Thanks Bryan for your review, We want all RCG's to be parked at safe > config(XO) when they are disabled, hence using shared ops for all the > RCG's. What is the reason for parking it instead of fully disabling the clock? > > > >> +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. > > > > Sure, will fix this in next series. > > Thanks, > Jagadeesh > > > Reviewed-by: Bryan O'Donoghue > -- With best wishes Dmitry