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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45BD6C28D13 for ; Tue, 23 Aug 2022 02:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:To:Cc:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ocmh3f1XYtoVYE75q65ARt4o31jIws5VMVYwEFMbx5U=; b=xnXep4XiqJfQQS SqBQ9Qa9ZjGpuuTw9Z3CD8IJWSiapdnsubr0F42j2BJQLc6gfKofW8W228yQz1L7Ok46P4d7IGoe8 3esFPVOeGzIOu49jNKVntxd8y7mucH0NXht1UkAp2MAUQoPB+6QMoiFwU9G1Lrjk9q6FQiRz6VvzZ GMAFw8cOsqwiCvEt20PxD/XGwpvPiSWQdcDCLw5ZkeA8CmO2sFwntn81uqMNMHwCmg7YX0HjV1/QG pEluhVj/eAfruxpEq+gvnlcUegkJOG5efq79z25oYSOAQ4RMqymwdzbZkPT0p29m9S/RKTBZ2q2q8 BMGBjZ2U0MZZMs0o1gMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQJU1-000EoD-1Y; Tue, 23 Aug 2022 02:17:37 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQJTx-000Ek3-Gv for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 02:17:34 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CF80D6122E; Tue, 23 Aug 2022 02:17:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34D04C433D6; Tue, 23 Aug 2022 02:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661221052; bh=pfXMxMnVFDAtpIxjbyYv3GCQSGQCRWtAD9VmgmA+ic8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=hMv7GoHUyTXn5fhPoFtX17RfzX2PHj5HRzXBDfMBLXEA/yFvQc1/EBPZj2u3ykG0C Uzj2sdbOulMQphAlPE26I04U8UHD81w4hMxCD8qYpW7wMOnArm9MdUExnwFjphmLUU VS1yCcXdlm3fPx5dAARfcKPKCJWZmDoJz4J7Gpcn6oe8C5F3Jq8LwW4cxN9rpxV4C8 K/Nj1HxEufE+EHubASXnJsxwUBFyVsTrUT/FHMZLeDSz5QEWZhr8WNTTJ6xkErwbey Y3fgT0aAd0q8Xu2xiGYzYHhwds/AScX2+bVtIqvG3QZ0P+4zb9HxlBYaPODkdMtFqf w5KkIfXIqF5Wg== MIME-Version: 1.0 In-Reply-To: <20220625083643.4012-1-stefan.wahren@i2se.com> References: <20220625083643.4012-1-stefan.wahren@i2se.com> Subject: Re: [PATCH] clk: bcm: rpi: Fix error handling of raspberrypi_fw_get_rate From: Stephen Boyd Cc: bcm-kernel-feedback-list@broadcom.com, Maxime Ripard , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Wahren To: Florian Fainelli , Michael Turquette , Stefan Wahren Date: Mon, 22 Aug 2022 19:17:29 -0700 User-Agent: alot/0.10 Message-Id: <20220823021732.34D04C433D6@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220822_191733_626081_F52DA1AB X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Stefan Wahren (2022-06-25 01:36:43) > The function raspberrypi_fw_get_rate (e.g. used for the recalc_rate > hook) can fail to get the clock rate from the firmware. In this case > we cannot return a signed error value, which would be casted to > unsigned long. Fix this by returning 0 instead. > > Signed-off-by: Stefan Wahren > --- Applied to clk-fixes _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel