From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796119973; b=MMD3OLKKYaLH1Mtq09/7zZxtzajAUNaQMRjD2wu0dE3Zq3kDkwqyur6mYGMd9QEFR/Wl RWSqJos4FQHpZQISHJnXCeksqWLsGSG1CRE2/AE6TpqnStHoM2v6ocLPVMBz37rTE5mQX ttSC8yqS8b56prPBnrBxlqarcBAg/lC4FLFyhUx3oi+RCEh/xHZlEk1uUpPhChbhuAjoj jMyQzAW/kdRwUNMBk/lJf1eDL6QYTCqsgSKQpxE3RUs0obCtPYPmzj1jtS0ILQrEWxvFo 44B0+9wkIPeYbaoOs/NLmjR8Ae5/bKE6mvt40hFdW5xLqKXglECT5rN6R6CDlstxGDg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796119973; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=zJPfoxN43RDquqXdqiaULU423Eh9oh89Rabz/3P+w3U=; b=L+a0H0WvQ68+rDs2Nx8NRUwFmAf8KlWJbnRHftRhK/qtQj13m88aZzdrxljFa9y3FYHb f8eSex2OMmi40W59uyZWdIpsmUMDO9Eqr0sDS9AiDaLoCCgvMv/3AOcnErhx8eXi2t0Nm oOxV3mlCpSxglfHPfLt08P4JqcSn6qbq212KLSH4G71acJTdS1x5FBRw5UyBsYIoCD5hW Ms1gAHovitWq2il2squpHBWx5861pz/xnl3Z123pMLG/D1JbK5M8IgKKCD/db7jgoMpBN Htz9zENmyOsr1bzKYx0XG5QZ+9aIZS+34068cPcKItGZ2kmHlLTjYYPI2lrzN7Mk0bQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=vyWcPAos; arc=none smtp.remote-ip=74.125.82.48 Received: from mail-dl1-f48.google.com (mail-dl1-f48.google.com [74.125.82.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63BBB606A32E for ; Tue, 1 Dec 2026 10:12:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 63BBB606A32E 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=vyWcPAos Received: by mail-dl1-f48.google.com with SMTP id a92af1059eb24-15ea896ddc8so18921559c88.0 for ; Tue, 01 Dec 2026 02:12:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796119971; x=1796724771; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=zJPfoxN43RDquqXdqiaULU423Eh9oh89Rabz/3P+w3U=; b=vyWcPAoslqxKkXau3zPT8UKfBngPJBLGT3UUEMEGZDiU4ftOPltadbuKvLhHnojH11 EsERTlII218ZJLAwIv/Ni92aG2SD6CWPYHVogs9Tj8MGvt7T+DhuO7AvWIWRvSHW2+kX cHRtK2cKz3LP1kEyoU9sJPMsIuYmDIRn+/MV++nb7kG7Ym9/7ovmGiqbCLWB48fO6vH/ 64QkriGQTjBe8Hy6e/DSbbZZPqHdmqRF8Df+7yYut1D/udrLUfV1TscU/nDAYmYUEvO/ MOBXw8gdRJqPCHqNov/ByWJQG9Yf8jxn8Hf4s66HYzKeMCukajmgVQ29ti7WhuoiIKSz 0uEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796119971; x=1796724771; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zJPfoxN43RDquqXdqiaULU423Eh9oh89Rabz/3P+w3U=; b=wW49Hm7HA7qOlsxsAYwUBy+71gKxcyn0cCDcgoPRwyY8M3yMeuLx5fZro+zDnlY8Pn NWTuTXL7BSMwWgLlNjSVoGyL0WXjOgSnVznH1rDH12jrzso/yBGOeYiil0Sw9Dp9C+qY ZzPUskPjjh2AdpW0Y2t+/dPJKJBZ3vqV/Dt/3twHR2J5gmXSt9MDW+4tnDQiEwPkBRI8 cJjljJgjOHl6C1BD607hxlRTR79q7D/qqDfYXQw4+lxTtJbT+h2JXTy3m+t6eCjUCN+O KrB2DTqieS3M76oYyeZFB5kXv0Jop7V1cpaCRAi4sMmDDPTZkKbBb1iYmNxuB8CUVE9v J0ZQ== X-Forwarded-Encrypted: i=1; AL+hErHc0wKM5dG4jsJFipuomIrnx3rv4w1J4Y64kJooW3FvgGjtITP8UXqDfyoq2z4g4mkKZuaHePHJ93dyBS4=@vger.kernel.org X-Gm-Message-State: APuU4Z9WIVQYgvMPpggSJ/7zXMulXaPL8h/unkIQkcf75h7BLw+Y4C8U UkDA2tKLT+jmXMJ/KrAYoHAmiuTAupvI9VNzclgfJXEFLoYdWQvmQKtipxWo/lTKMk4= X-Gm-Gg: AZFdTZe+5ZzkwkqvVmO657uhsSAJYKMJsr27N4nuXdesZPBfd6q9Pf3zSCqf8rpQWaY XT7JF913vY+jJFz/9Q5n24nekZvkffRMSX+DeX6arPA6XXcYDVA85OaIyRHGerJ6MRR32Dy+woM MGP8SC93FshhYASi+5nTBj66gimvTjzKa+2ACQjAkfpzcScqXo6BbH9BqiP9FxBz9wTagtr+G+r +ZdqmdGHZPFX7oR+cpZY8c5cliGMXt00NwjcQB1Ne8LpylJel/IwMocozyasHr616HZMIzdRJ8u 7QFNvpP+sYNuCueHRDDCgJdu7CzwVrE9gApOhrKsZ9Lxa0tEAQfAuWvkPewdIanM9LSkYnxQexJ NIYMatbTArgxTcF/jx+YW3VtQGJ7m5N+VuSsnwRqkMiQbdgb+HYbIvpUwiwjEzvjC/Fb3LP09rn HD1ZJxK8uVCKmAW8VKTkhyADCWtdZnfqWpDdBzxHGpm7+IrJOia4RQ9FhARcTw/9ONrk53n+MrM 0HxR/CSAMrmgTJC+kE5wYffSig8Pu9N/5cZ+bcELyiZvjIdQzr+jzFQmC28DBa5jcXM6+roXSIR 80J2PRb+bP/5Sjth+JegiWSHNeI8 X-Received: by 2002:a05:7301:4d18:b0:37d:bd4e:c378 with SMTP id 5a478bee46e88-3857181d8ddmr34413406eec.41.1796119971123; Tue, 01 Dec 2026 02:12:51 -0800 (PST) Received: from localhost ([122.172.83.31]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38567ea2cc5sm96992371eec.29.2026.12.01.02.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 02:12:50 -0800 (PST) Date: Tue, 1 Dec 2026 15:42:47 +0530 From: Viresh Kumar To: chuan.liu@amlogic.com Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] opp: Allow multiple clocks for primary clock operations Message-ID: References: <20261201-opp_core-v1-1-c43c8f010b5f@amlogic.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201-opp_core-v1-1-c43c8f010b5f@amlogic.com> On 01-12-26, 17:34, Chuan Liu via B4 Relay wrote: > @@ -2376,24 +2376,24 @@ static int _opp_set_clknames(struct opp_table *opp_table, struct device *dev, > opp_table->clk_count = count; > opp_table->config_clks = config_clks; > > + /* > + * We could have just dropped the "clk" field and used "clks" > + * everywhere. Instead we kept the "clk" field around for > + * following reasons: > + * > + * - avoiding clks[0] everywhere else. > + * - not running single clk helpers for multiple clk usecase by > + * mistake. > + * > + * Since some OPP helpers still rely on the primary clock, update > + * the "clk" pointer to the first clock. > + */ > + opp_table->clk = opp_table->clks[0]; > + > /* Set generic single clk set here */ > if (count == 1) { > if (!opp_table->config_clks) > opp_table->config_clks = _opp_config_clk_single; > - > - /* > - * We could have just dropped the "clk" field and used "clks" > - * everywhere. Instead we kept the "clk" field around for > - * following reasons: > - * > - * - avoiding clks[0] everywhere else. > - * - not running single clk helpers for multiple clk usecase by > - * mistake. > - * > - * Since this is single-clk case, just update the clk pointer > - * too. > - */ > - opp_table->clk = opp_table->clks[0]; Why is this change required ? -- viresh