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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52223EE3F0B for ; Tue, 12 Sep 2023 17:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237084AbjILR6m (ORCPT ); Tue, 12 Sep 2023 13:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236904AbjILR6k (ORCPT ); Tue, 12 Sep 2023 13:58:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5005310D3; Tue, 12 Sep 2023 10:58:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D71B3C433C9; Tue, 12 Sep 2023 17:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694541515; bh=+Eq25XEn9jifU6vVTGtb/lZ0KcmNKOeLGV079+pMeDU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=uaabi6dfyRs9j65Aa1XYQUeho12OQxb7SNNtrBiWpQzSj+7YhVgAffPnJF6+qzABd p8ytouZDqJLsT8UsX6HJiM1xD2gxVvu2BNG2+mJpiSbd5A7cTZlQRp36PufhCtImLY hAgzJatDyYmgPgWf8LrYmxGmYu7CyxcmWBsbCTrMuCNYMh9DLVpjEBv5xP3V9fc1js pn0hVcsb+DGXjAi0DuSe2syAXHAeVX7fE11sdTC7b28kvcuZSULRZcbIE4Ubv9lnew mG+p9++0UotYJcnMCW/BB5lkkvNz+u8lq25656a+nwuwKryYB/lMRyiJ+A+dd+LdOq WMRkm3KL6bacQ== Message-ID: <1a1278715076b92ae73ac97950cd70e9.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230912112951.2330497-1-cyndis@kapsi.fi> References: <20230912112951.2330497-1-cyndis@kapsi.fi> Subject: Re: [PATCH] clk: tegra: fix error return case for recalc_rate From: Stephen Boyd Cc: Timo Alho , Mikko Perttunen , Peter De Schrijver , Prashant Gaikwad , Michael Turquette , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org To: Jonathan Hunter , Mikko Perttunen , Thierry Reding Date: Tue, 12 Sep 2023 10:58:33 -0700 User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Mikko Perttunen (2023-09-12 04:29:50) > From: Timo Alho >=20 > tegra-bpmp clocks driver makes implicit conversion of signed error > code to unsigned value in recalc_rate operation. The behavior for > recalc_rate, according to it's specification, should be that "If the > driver cannot figure out a rate for this clock, it must return 0." >=20 > Fixes: ca6f2796eef7 ("clk: tegra: Add BPMP clock driver") > Signed-off-by: Timo Alho > Signed-off-by: Mikko Perttunen > --- Applied to clk-fixes