Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp551816pxv; Wed, 30 Jun 2021 11:40:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB4b8LlxXK0DJ7r5qRGC+Rbu55PGCcjyRcPLdh1SmSGUZZIt3p5tA9aRDrr0R7czeXwpnL X-Received: by 2002:a17:906:1487:: with SMTP id x7mr36442895ejc.456.1625078435931; Wed, 30 Jun 2021 11:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625078435; cv=none; d=google.com; s=arc-20160816; b=HdSJPw+gzV7NP6Sze1P+5BquYPAvnqnYTazLdb50XGnn62YsADQLC7IpNBeGyeU0jd w7EwlsdVMxfHLQ2cJQOJkda8eH11VuGvU9GC0QJyZORdRKuuc0iJaO8HmbdsViKpCG8y ojclVoU17iSXZihhqeNgevq7gItl8CSwpAb6WEAINrUwkReHORCcT1uuEv0stPTV3ad5 jNkZGIb6ZN8pG9da6xn8WLILUkn7DAAp6buA7Ok3z9YS4rBGX/uYT711vAq3nH7k9X6y AD8qZqR9O5g7Ce9LhemKofcET1EaR0RtROQNluKpAYX7zWJX6UPmx7XmKcToBOCT4Xxf +wbQ== 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=ZfJAuekNP3FT8Toh4W8fRrjT1OZV0Yxwl7l8MeBHaiE=; b=STJQFTNp4vqChKN1V7F88P4AvbjSwmoiVosP/6QDhzlR8fhGkLlnKIxQsL7m4ty4dT 6QoA6xmBDbkVNAdQGqi6PT8aYaLEgZYHzKibQ3RV7mUAVquPeZcq+7pM6Pj++20lgTrq eO9qrOh302h4M8pBHwxK8+IUyMta/CgzC63O6xiMpwLwzQqX0RstZ0pOpMeA5idf+qTx p1nI4+yrKG6IJciy4/oPjOA6xZ/Fp4eqAXtqvnVbl7ZHQ9xEMJlFAkUoqkvJv7A0Qn3H Vz8efXzViTxeiff2g0K2ybPx/ehnjaUZOR8qLlcSfd+Az7/V5j5mGgy6cDULFvc5jNO3 PbWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m6Eqz7nG; 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 a8si20959719edx.42.2021.06.30.11.40.08; Wed, 30 Jun 2021 11:40:35 -0700 (PDT) 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=m6Eqz7nG; 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 S234482AbhF3Sll (ORCPT + 99 others); Wed, 30 Jun 2021 14:41:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:40654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233129AbhF3Sll (ORCPT ); Wed, 30 Jun 2021 14:41:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BC98F61419; Wed, 30 Jun 2021 18:39:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625078351; bh=ZfJAuekNP3FT8Toh4W8fRrjT1OZV0Yxwl7l8MeBHaiE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=m6Eqz7nGvioL4VtIVTS7PU3drh15Jujss2c2UVnjSPJB3YULypHLfCQX3iCi5z6MJ 7dpGpU1yyrJlv2hDR9xIkPe3yy5GrPe8xQXC/MkIFkvyb/Qr7seRLRt8nSzWBHpkzS ddr54f3nsuK23mOnfG4X1CnMUpGSGyEloME0C9VWlPHBI8vxWDT//kNE37oYZcE5pS UHc0XfIbRxW7Ux14ln7u8B8vG+hgH4vwG9FXs/0s2eF374wKs2I7UgUpLKGcw4ihnR 11JdrVEfMW7gqEHKavh7NzhtktRHhoPA4fDsLQAPLB1R6ma/VK1ZMSZuyb1cCRb3in 2h04hae3VxSVw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210627223959.188139-2-martin.blumenstingl@googlemail.com> References: <20210627223959.188139-1-martin.blumenstingl@googlemail.com> <20210627223959.188139-2-martin.blumenstingl@googlemail.com> Subject: Re: [PATCH v3 1/3] clk: divider: Add re-usable determine_rate implementations From: Stephen Boyd Cc: narmstrong@baylibre.com, jbrunet@baylibre.com, khilman@baylibre.com, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl To: Martin Blumenstingl , linux-clk@vger.kernel.org, mturquette@baylibre.com Date: Wed, 30 Jun 2021 11:39:10 -0700 Message-ID: <162507835057.3331010.8069847562722001420@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Martin Blumenstingl (2021-06-27 15:39:57) > These are useful when running on 32-bit systems to increase the upper > supported frequency limit. clk_ops.round_rate returns a signed long > which limits the maximum rate on 32-bit systems to 2^31 (or approx. > 2.14GHz). clk_ops.determine_rate internally uses an unsigned long so > the maximum rate on 32-bit systems is 2^32 or approx. 4.29GHz. >=20 > To avoid code-duplication switch over divider_{ro_,}round_rate_parent > to use the new divider_{ro_,}determine_rate functions. >=20 > Reviewed-by: Jerome Brunet > Signed-off-by: Martin Blumenstingl > --- Applied to clk-next