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 10908C4345F for ; Mon, 22 Apr 2024 19:05: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:To:Cc:From:Subject:References: In-Reply-To:MIME-Version:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5C6XFkqDkNihsuxUg+VFRKpKMnYItvgrQjvztuSXmbA=; b=sfb5pVj9OxR9qI gOClFxyOgKEZ5bJUXFNSwVCL7PuyUqyy59WtGHK9f4UcepnKtZMKa6wmY7RRrH+jZDHBlnd6qIPLC Q8goHxt3MkgdMNOkjDhOWyNegpqSseSTHxCXWBPsa6Pe4pjZuBOM/9hyqy12eEfTlaMrBnuaTjFtl pHYaXGOurr0TvMiuCe/2MwONGGOaYWD6ge3m2UrkR1+oJ6o90i/MggORyG9sjf2HIK0PQDZ2+I8VH K8zVNYpIdWhy8dMnU+6h28ekaO8qasAc4oM7949/qttBS/p5lkQ0RagJ3X/cCRslGmNRMYNY/YvLG gdl/+By6If4NbpWIsdJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryyyB-0000000EkKi-1dIM; Mon, 22 Apr 2024 19:04:51 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ryyxr-0000000EkC0-2cZ8 for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2024 19:04:32 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id DDFC860DD8; Mon, 22 Apr 2024 19:04:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78F84C113CC; Mon, 22 Apr 2024 19:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713812668; bh=olqP1aRLAAfEcgb84p5a52kKbYDcwdtnUJC4C6mq74U=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Qu7dq74UxvzbpEN3NpAX3ogMta4JCap/1wpPrkerB8vdXOcq3jU7dzY1XAyipzaSu xNYzBS4P/lmp31Ga5B21ulSGTtZ40gJpA01IwI0X31rmkewrXOoDbsA5ygWdTjEkPJ zwAVJR2eqgsbjbmP/YBsx5PFq1URqBAB3Tr8DV6cqFxzbJQ+Mpxoi5JhSHYeh+qXL2 tAvLWYCPMr/rFyjGB8W27PsxkbKSVjQQov988OGfbDn9cPDHUQ3gayxBj5ug9bYWEo PJBZSKbmsUtj5Ctkp5HVxqqrW93vYiewLgx+kG/21xDvSE25N9IU9aPIwIiGZJgIWQ MXf5LjXgbSVTw== Message-ID: <3a7c286f269246ea0138ddc960d1fac1.sboyd@kernel.org> MIME-Version: 1.0 In-Reply-To: <20240415163649.895268-2-cristian.marussi@arm.com> References: <20240415163649.895268-1-cristian.marussi@arm.com> <20240415163649.895268-2-cristian.marussi@arm.com> Subject: Re: [PATCH v3 1/5] clk: scmi: Allocate CLK operations dynamically From: Stephen Boyd Cc: sudeep.holla@arm.com, james.quinlan@broadcom.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, peng.fan@oss.nxp.com, michal.simek@amd.com, quic_sibis@quicinc.com, quic_nkela@quicinc.com, souvik.chakravarty@arm.com, mturquette@baylibre.com, Cristian Marussi To: Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 22 Apr 2024 12:04:26 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240422_120431_740692_BEFF0A10 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Cristian Marussi (2024-04-15 09:36:45) > SCMI Clocks descriptors expose an increasing number of properties, thing > which, in turn, leads to a varying set of supported CLK operations to be > associated with each clock. > > Providing statically pre-defined CLK operations structs for all the > possible combinations of allowed clock features is becoming cumbersome and > error-prone. > > Allocate the per-clock operations descriptors dynamically and populate it > with the strictly needed set of operations depending on the advertised > clock properties: one descriptor is created for each distinct combination > of clock operations, so minimizing the number of clk_ops structures to the > strictly minimum needed. > > CC: Michael Turquette > CC: Stephen Boyd > CC: linux-clk@vger.kernel.org > Signed-off-by: Cristian Marussi > --- Applied to clk-next _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel