From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BED20EC1438 for ; Tue, 3 Mar 2026 12:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dAy9H27YCZRrRDVVt/piyeZOMCccn4pu6d70FpgUbyk=; b=x3xnev3HUeFzq8XOFmfuwS6bCg GxrWy0X7zFN1UrlAp+JPuoAu4Ix0y6g+AD69+ADdaP9P7kpRB/xpOgXUgM5CLhjlIfyvMSvC8Lmxz TvIMCX2gH59ebGz8SAdfmf40XnFdgq/DzoaOXCuxZ8iv5o6/uI/+1Mwbzv5eqyjaS2gImNd2wF6vc yC9KI7h/4SGUKKFIFDK5w9CNjxgcIwldC/FTnUD5vJjt/Qa///56dUKTYCNnohhOp8B53TfieuWJc qd+sBCjkg8ncwJcdt66BejehKje8YM78/+Qzz1JxWFYM5287qJXpoMrVDpkMY6PGexsjP10+NyZ6O 4o7S6nxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxP3X-0000000FA0I-1rSW; Tue, 03 Mar 2026 12:40:55 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxP3U-0000000F9zX-30uX for linux-arm-kernel@lists.infradead.org; Tue, 03 Mar 2026 12:40:54 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8B0D9497; Tue, 3 Mar 2026 04:40:43 -0800 (PST) Received: from pluto (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B8B7A3F7BD; Tue, 3 Mar 2026 04:40:45 -0800 (PST) Date: Tue, 3 Mar 2026 12:40:32 +0000 From: Cristian Marussi To: Geert Uytterhoeven Cc: Cristian Marussi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arm-scmi@vger.kernel.org, linux-clk@vger.kernel.org, linux-renesas-soc@vger.kernel.org, sudeep.holla@arm.com, philip.radford@arm.com, james.quinlan@broadcom.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, etienne.carriere@foss.st.com, peng.fan@oss.nxp.com, michal.simek@amd.com, dan.carpenter@linaro.org, geert+renesas@glider.be, kuninori.morimoto.gx@renesas.com, marek.vasut+renesas@gmail.com Subject: Re: [PATCH 03/11] firmware: arm_scmi: Simplify clock rates exposed interface Message-ID: References: <20260227153225.2778358-1-cristian.marussi@arm.com> <20260227153225.2778358-4-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260303_044052_802163_6C41ABB4 X-CRM114-Status: GOOD ( 18.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 02, 2026 at 01:48:00PM +0100, Geert Uytterhoeven wrote: > Hi Cristian, > > Thanks for your patch! Hi, > > On Fri, 27 Feb 2026 at 16:33, Cristian Marussi wrote: > > Move needlessly exposed fields away from scmi_clock_info into the new > > internal struct scmi_clock_desc while keeping exposed only the two new > > min_rate and max_rate fields for each clock. > > > > No functional change. > > > > Signed-off-by: Cristian Marussi > > > --- a/drivers/firmware/arm_scmi/clock.c > > +++ b/drivers/firmware/arm_scmi/clock.c > > @@ -157,13 +157,27 @@ struct scmi_clock_rate_notify_payld { > > __le32 rate_high; > > }; > > > > +struct scmi_clock_desc { > > + u32 id; > > + bool rate_discrete; > > + unsigned int num_rates; > > + u64 rates[SCMI_MAX_NUM_RATES]; > > +#define RATE_MIN 0 > > +#define RATE_MAX 1 > > +#define RATE_STEP 2 > > Any specific reason you are not using a union here, like in > scmi_clock_info? > No, I will fix in v2. > > + struct scmi_clock_info info; > > +}; > > > --- a/include/linux/scmi_protocol.h > > +++ b/include/linux/scmi_protocol.h > > @@ -51,6 +51,8 @@ struct scmi_clock_info { > > bool rate_ctrl_forbidden; > > bool parent_ctrl_forbidden; > > bool extended_config; > > + u64 min_rate; > > + u64 max_rate; > > union { > > struct { > > int num_rates; > > You patch description read like the actual rates would be moved > from scmi_clock_info to scmi_clock_desc, i.e. _removed_ here? > Yes they will be removed later in the series to avoid breaking the build...I will add a _removed_ tag for clarity (that TIL that exist :D) Thanks, Cristian