Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2758206rdb; Tue, 12 Sep 2023 11:06:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDROPfN2SeV4Bv2lnA2xZIhlfB+7+SPwyO7fBKLj9jLl02sm0+mNEklEryZ7P2C/7/TcpK X-Received: by 2002:a17:90a:9907:b0:268:5c3b:6f37 with SMTP id b7-20020a17090a990700b002685c3b6f37mr79005pjp.0.1694541986863; Tue, 12 Sep 2023 11:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694541986; cv=none; d=google.com; s=arc-20160816; b=PYbcT4bWGyFA4f7lY64aAL+DF/RimLxKLZh2SYLzwT+8INk/bE0xHIBSYxMyz1zMjH z8pHd8vP/ZA+812i9Wc0WEVeCsk2ngWgoU52GuKztDQZbakDGkH0vq8kq4rDF8JTI1Iq 2DLphfSpfeP8pDL3IFwZGFkUzxAfCaNvGjIUYGR26nHon7y9FF5428OM9XcoG8llB3I/ dRaS1N1J/F5hq+YWikN3Ti8Gg4PjuQMndQYqRQuU1K+MUcMbzCRIVFplrfDYQ0BfpmUK oDuXFQ4kN5SaTTvzxjIqNJf7Lurxou1VNNRVAbsCaXoOyquVo0XSH7biVloohdXGGfql MxaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=+Eq25XEn9jifU6vVTGtb/lZ0KcmNKOeLGV079+pMeDU=; fh=WHIbwTVZFamXFc9V5zbXLvTMKxVwze6f2+1Jjm2mlB8=; b=VAHCF89W4p1hvMK0kj8RM9rqYZAmUdIU2Ipum3CyA24dVoOeJpIPFUrFR7ZKeSqjBF ArPKOlIkJLWLhBmuVkhsa6eMCJnu5BaQOZ7C1farXXiDeJ4xZMArjJphJZdHsHNJEpn0 bfozMaeyhdH0ajOBuSzykkpFYN6qdrbSJnqOizWfIKPEIwlL5T4iApMDaOlpn7F9ZUJV XkRWAXDrk++kraqNE+/uRb+BJDZzJ0WxlY/7ZY3u7Gi8PRvFXackenedoyPk8R1MGtcz 9ffcVl13k/x4rEWHyjJOchxKtESGB6qOoaI/5uu7+i+4J8ce9igPOsZdmRgtoY4PVyKL 2YGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uaabi6df; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n11-20020a17090a9f0b00b002740f52e526si4122140pjp.139.2023.09.12.11.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uaabi6df; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 00D07820BFD9; Tue, 12 Sep 2023 10:58:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231665AbjILR6l (ORCPT + 99 others); Tue, 12 Sep 2023 13:58:41 -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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 10:58:46 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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