From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796293911; b=BHNG7xoMUy4geGo7H6Oc/quhj4RD1+wlVnlVHZMdo0UGHdSx8QXE6eFDF6oTxPYbm0jQ 4VhZKNpObziOeVD1jBPE7sx2zmZDQOF+OVguzgX/JXuECJe/vPBlx4PlPdXh5CfKHwN0n rH6sLjU6tZ/0hKoG22D2NvAeLls2eRuXzfwkpyQKXdut9lgb2iWhisYX3WeJ92CYXDhBT OzMWL7d47+0sADZcvDy2sP31wihGvRxPLq/4frPuq52O5RNHm0dR5AWXvyzExlfTy83OS ExAWPfkis83IIevHU3dcQqIc0yJ+FBKas+M5UGdvRFgUKFF6s7O2iSMzwmN2gv84ZLA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796293911; 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=jFZ80J/+03/4orszLluwmaUwAy4bMJQefEQT98/M2Vo=; b=mt4fltbF8o7MuKRW/1uVJqZhAkHmE4BOgp08AvnOQu3RtWCv+xCh0hkRYgQGR8KaDWN6 YTTFyPw1+OY+QE93G5vb4Ghg6/93xqVkyydyFwthsQxDXqwxrw1XV0qb/K8N7C4J2Nlm0 77soFDBu8qIsuTKy1aUMqNCO0oqeIpsj9RW9O5zVpss3LFxHpQgbP3VRngapOMYnLKCjB btcbnzgqrv+CN6KN95XOJa74YCH9HelPHltGD1Vykjo3sFL8kZOwT/LlfoQYQswmofXqi ZUx928TBcM7m/NFmPq7JBOPwQZC/eKmJNBGgBbhZyW18wKFgTZKof2ySLwaY7qV5g3g== 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=N5LJT1U1; arc=none smtp.remote-ip=74.125.82.174 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (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 A3863606A32C for ; Thu, 3 Dec 2026 10:31:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A3863606A32C 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, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=N5LJT1U1 Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-3866a784546so19536133eec.0 for ; Thu, 03 Dec 2026 02:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796293910; x=1796898710; 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=jFZ80J/+03/4orszLluwmaUwAy4bMJQefEQT98/M2Vo=; b=N5LJT1U1TC6vZtklAXrUJ+v2hDKL87rlRCPQnewBCTzMFVbzOKfCxuqJaFS9Q+Q8Gn VVCHiL91ruA3O5e/u/1859GlpiD0jSbSd0AOrFeR0YkHDoPQCs490tXSgP3zANDSAjKC Qcqz4mFY4wTux6CotVkAqY67VBJFyM49WVtRYDXCmnF2/Xgo5HyWHCZr+epmU0l/3Bas wN5of7nUK4HiKiNS3R+UXSKpO1TjVKGpzv7yL7V2b6FA3dXbAqr5aNRPfGDraGeZOMCU Iht2NUohDY8304ZUZWXgjrnYXiBXRLSnl0LOXam/N/jSqphyHHlFbCyN6JnKCHbqHgim 4neg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796293910; x=1796898710; 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=jFZ80J/+03/4orszLluwmaUwAy4bMJQefEQT98/M2Vo=; b=pq6NYT8dAo4xWqaSOUN6K5ZjodbVpQo4cass4XBq/WFKBKGBHivG6nYcLS5WrCwEeX 1CGDtn7V91dxBMKIEiUX4zsKw7N4VeFqTjmes3wC2OUi1nAy+2nj40F+Wlh8EPQaaENC PiGDwMbTQedKTXwWgeFQZrmGpbucyY1tvR1ty38FRNA60wP8q0f9/gtYPPZ0xaxK65HL EAOxT7Eyd0aoMBsTFbpAbsdDe0Ht36STCfMbtQlaaxahPe2UAGxxqSkl8TEqB0Jzw2ku Rupse9Si4CAjLsOvz20eTaUAlWfSJSDRee44jYT21+jkPOLOCMhBa1cmW513yGMSWQC5 UOXQ== X-Forwarded-Encrypted: i=1; AL+hErHwTBhw74iOUXSRs4coX9yw2SWJ6FDC0jnq0l582fGhQxEa5h234wZlE5Z50z5VO0jNPPiGrEiMtKu5BEs=@vger.kernel.org X-Gm-Message-State: APuU4Z96AJ4x6fuR3sX1rvsLQOEm81kRSXv6Nl63b7hkX/S5MKSmqsBY Rx2XEz9aXKuu6X9Rr6LyUx8mrchXYyTXyriep2DKbgs+4FuQxZrduixYJIkbTQoDmi4= X-Gm-Gg: AZFdTZemlllvEa7b7lCiD1hj/vAQQlokoFt0s9HrP8BbZrD4ESPEO9RQJ/VzlFECj3T 285ucMmOqyXHG1DN7LSwL4g0yfIJ61CGpMTrnPRijc5frOOt/4L7fXnKi8W/4XZq2l0lvzHQ3pU D6nXElPPn3PjRINAEBlylEdkWi9UHjABlPyjLKiXzY/Vh6+Rh9ujIzvYVBmLSp9ce1oJ3HY8Ivk Dw1oBowHHpoNUyuvQ298FXpgrSxS7pAv+N+G1kMkcmHQYQejrbmM6lxZZ3lqplTjq7LZpGt9FVU OhGM8mkTdvGg81XDKFSBIE19gK3yc/ps4GJGcZAvfgXT6I21jMes7uH1u+gfHDOqEbO1njiqE1c HHSChTCRmUdPhnKx8ARanffwN1DKUtPpWD6vq6U6S15wPCCuPDkahCE8g3N66wj6ZxIumvA3HE5 hMQGTbl6Cx+7smfYo4BrRjShdzTGp/HJZ0Wa3FPN61ycggDLK5xl0jg1mqfWBPEHyn5WAhFyKvw 1lqApgQC/RbTOy2qmhB+c7bDaMwJIm856yixGhXVkEs9jt/PpQCMYj8eg4dDANV8Rnzvi9SeMCg hggCcMaISvhwX3cayeNngw1JfCIg X-Received: by 2002:a05:7300:ce11:b0:385:4608:5679 with SMTP id 5a478bee46e88-3857141ad51mr44680920eec.40.1796293909410; Thu, 03 Dec 2026 02:31:49 -0800 (PST) Received: from localhost ([122.172.83.31]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-386aaae4960sm91358727eec.18.2026.12.03.02.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 02:31:48 -0800 (PST) Date: Thu, 3 Dec 2026 16:01:46 +0530 From: Viresh Kumar To: Chuan Liu 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> <142270f1-f22c-4264-b141-6b67c3d3fc61@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: <142270f1-f22c-4264-b141-6b67c3d3fc61@amlogic.com> On 01-12-26, 21:01, Chuan Liu wrote: > OPP core uses opp_table->clk as the primary clock in several paths, e.g.: > > dev_pm_opp_set_rate() Right and using the simple set-rate routine for a multi-clock device is incorrect. We need a different routine for that. Keeping clk as Error in that case is the right thing to do.. We only agreed to change the assert, as single-clk assert == clk[0] assert (as index sent is 0 in those cases).. I thought your code worked fine with just that change. -- viresh