Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2487117lqt; Mon, 22 Apr 2024 12:05:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXigSFNylwA3ax2kQrdRqG98FRF0dViRNAbPV7s3dI0+YTfz15vHNfLJMFu/o4Wef9PESrS901tyZWbN1tnDi1GB9o1eM7xqrC9g4mXvQ== X-Google-Smtp-Source: AGHT+IGYz5jojJDWqwk8u7qHSLhnGB+wbW69NpfWSqAGCKmriotancqKix555Cs0jYHRLH1GgCfC X-Received: by 2002:a2e:9395:0:b0:2dc:b964:b15 with SMTP id g21-20020a2e9395000000b002dcb9640b15mr6333574ljh.25.1713812703555; Mon, 22 Apr 2024 12:05:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713812703; cv=pass; d=google.com; s=arc-20160816; b=UWpys5ZyFl+vcbzphTTSyl3Z+G26/FD6YsG4wI3D6/SDF4BCxI/6GHT7E7xDAmtDr6 2vvjUG2BXCy9GNmQn+gPEMgBcdeWLV3fkLWHtxotnnagQSLu0AFl11C40ilhdHgHej9y h6XLgfsdRMRQicZebHXlKbhSznY5J8+/f9AmKZqu27x9yPAjuje3uVzfO0jIoFDLy4Ip tiK4Np2du8bnatLAgQZVmQtlUDY0fF8zEbh5F++01OFR2PYnX0BnCy9xKf1FtVpaR8fS tnBnASIzDMHiIxG/gck3UoEXnKf79vPKuHV/uIRKjpfThwRHSSApIMLiycN5Acyd+ReD AZYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=olqP1aRLAAfEcgb84p5a52kKbYDcwdtnUJC4C6mq74U=; fh=wie744BqCcr1I5ySqUG39bHTwTXrhiA2sYOrBMAqJGg=; b=x2UeJ9q4gLcGjC0PaxzErq4oIYJhFW9XJ63lHRH7h7EJr6uJVThczefJjp0T7SuHKi 2DHDwC1F3Wkh+Fs3grH1ugZv9vFhcvSYJHbIimw0oJol30hdE+cvjcnQG0Gm/DYNFzBV MmJbNaeTLgF38l9GUiUF+Z0kuw8GFThjT0N/CTlNi/STHGeMLY8YzMZ/yO2+W/Afywke aln/JEUjzgxGFp8LwL30tYS/PRpfXUJJ0JkkTgWs11r7t67Mj5fYLUjtE5UTf3jx3cxX A+ak6fs0qM6GMuX488oYVBOkl63txQuPpE5K5bqaC+aRuTOXN1Q4zTCC6mDTTPef7X6B waZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qu7dq74U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m20-20020aa7d354000000b0057000c6cc9esi5961805edr.571.2024.04.22.12.05.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 12:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153894-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=@kernel.org header.s=k20201202 header.b=Qu7dq74U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 36CFE1F25353 for ; Mon, 22 Apr 2024 19:05:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4E931552E8; Mon, 22 Apr 2024 19:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qu7dq74U" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0468D155307; Mon, 22 Apr 2024 19:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713812669; cv=none; b=VD6z8BZGSBqPNX95QnomxubkEeOSEnXR1N4mTXSPL0dNTwgOsTMwo29XUO11iCncwLYwhTINl/fN7usq5CJ/s8Rt/lEmOJ0oHyC45Nt1ikcs4XXM5mU89NN+Q3DS2lSBN9F+Mm2Hk1h1FREeKvkCi0Wlh303U48UUE8TAbdaN0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713812669; c=relaxed/simple; bh=olqP1aRLAAfEcgb84p5a52kKbYDcwdtnUJC4C6mq74U=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=cN7CurwVTVx6w91lK2ckpkpT6u6UKHLn7O728LhWUxUVXy1YwsdeGQOXdCK8rSzpi5kspMtKQnz7Hzo+On5sfUL4eQsfbO8XZ/onVya2ogouRHReO+VEA1ETJegMSlTl7Tt0i1JcO3p1BRIjD72t9RHeZ+sZ01OULkhHJSRvwkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qu7dq74U; arc=none smtp.client-ip=10.30.226.201 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> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 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. >=20 > Providing statically pre-defined CLK operations structs for all the > possible combinations of allowed clock features is becoming cumbersome and > error-prone. >=20 > 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. >=20 > CC: Michael Turquette > CC: Stephen Boyd > CC: linux-clk@vger.kernel.org > Signed-off-by: Cristian Marussi > --- Applied to clk-next