Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1094661pxu; Thu, 17 Dec 2020 01:55:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVgpKnAGWenLBRaGk88o9DJab6aKMj+A3/kUZ6rs6WwUeAhLr9sd41CvZ/wgpOug7s/P93 X-Received: by 2002:a05:6402:845:: with SMTP id b5mr10704760edz.38.1608198912497; Thu, 17 Dec 2020 01:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608198894; cv=none; d=google.com; s=arc-20160816; b=Whp6i2MLYH5kYd6HlQwT0EBCs2YZQyy65kpXgl8Jrov1tVKIoWl+QSrlIGhiioz8gq 5Hr3LWE5TcMvsHnVFyKbadWeqhLjqgzy8zzVSP5HRcolQlhThns/rXH5BN6V2sDkw0TU SwbMf0se5UPMCabzrUfQ9OgXTtmSvS7zf5ctV8DCMQ//uMYebPLCjlXXhcUb3qUn3ug1 z8to8ofnCE1rqG4/u4P0iw6W7jzcK+0UPK5Kx0jOhASUl35l6K8p0aZql+miL8rcTJW+ 5kZ5LCDueslr2JtJX7TCrVqh6go22e4DcQQo2WY3mNRJbPseyNH/Q2XmiADNSwaf/Ksm RuqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=usPP9SaeAamb8nglviOVWGoU62GiIJ1WkK3NJY5Ee3o=; b=mpcq45F59yATMfZRG3D3TDIK4wWO1pHsZsq74TVqQLpHFPVhYxPY6IO1AHmjxR9F2Y 1Yy4L7rXV8lWOJUjbbS5XiUWWkit7JQPmmZTmyNd0RYGwH9/b8Q2wAliPVevaE1p8cFa FgEu1Hi98Iv0jubrdbmrPdgjz7Qo/B32dD6JpzlYw+HHU/50r+U28uPk3Mgv4PsQMB/C KTvKDwjZrBxv40pIw5MhueOWAwiUmtNuFNwbb3Q9iBwGT00B+6rZUHeDg9UA+7e9GGYF Mp+K6hVHl02bZud1pe9/o7hlZpehTteB9QFIAcSqNBJadOdE1NS4Zi8B+u+Zj0nsFmHw IuAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rcSyiTMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si4049171edr.271.2020.12.17.01.54.31; Thu, 17 Dec 2020 01:54:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rcSyiTMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727219AbgLQJxv (ORCPT + 99 others); Thu, 17 Dec 2020 04:53:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:43756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbgLQJxv (ORCPT ); Thu, 17 Dec 2020 04:53:51 -0500 Content-Type: text/plain; charset="utf-8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608198790; bh=usPP9SaeAamb8nglviOVWGoU62GiIJ1WkK3NJY5Ee3o=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rcSyiTMpK/CIUipGdT+d9hR6x2BLowDP07Qpb3cNE6cpTWXPccbgrVsaSfeV7WU8b zjWidbxGhm8bTYzVD4enYTxPvWrhmhxlI8GKZCxL8PAwiigf8j3hbqxEhqTeXs2ZzL pUqrQWKsibECGczX7hrgeeVjdUY1x+MN6BeWf+04lRLn7OHxP473q7qIt8iSFb6lPO lD50eituSkiWRLcWbu8CPVDC+rGTU9NsiXRIv3FDBeZ49ShrghdyVmQwlu9UHP47Vx Vs/EVlH6KU+mp9BvOCxKN8Ksri3eaeDXSYvzlCWIZy5s6n3wreZ71EIYau7uANhoVt uzrXfuEFlgNCg== MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201203074037.26940-1-alexandru.ardelean@analog.com> References: <20201203074037.26940-1-alexandru.ardelean@analog.com> Subject: Re: [RESEND PATCH 1/2] clk: axi-clkgen: wrap limits in a struct and keep copy on the state object From: Stephen Boyd Cc: mturquette@baylibre.com, mdf@kernel.org, lars@metafoo.de, ardeleanalex@gmail.com, Alexandru Ardelean To: Alexandru Ardelean , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 17 Dec 2020 01:53:09 -0800 Message-ID: <160819878921.1580929.15203556505418978794@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Alexandru Ardelean (2020-12-02 23:40:36) > Up until the these limits were global/hard-coded, since they are typically > limits of the fabric. >=20 > However, since this is an FPGA generated clock, this may run on setups > where one clock is on a fabric, and another one synthesized on another > fabric connected via PCIe (or some other inter-connect, and then these > limits need to be adjusted for each instance of the AXI CLKGEN. >=20 > This change wraps the current constants in 'axi_clkgen_limits' struct and > the 'axi_clkgen' instance keeps a copy of these limits, which is > initialized at probe from the default limits. >=20 > The limits are stored on the device-tree OF table, so that we can adjust > them via the compatible string. >=20 > Signed-off-by: Alexandru Ardelean > --- Applied to clk-next