From patchwork Sat Feb 5 00:52:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 12735904 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 00C12C433EF for ; Sat, 5 Feb 2022 00:54:28 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8dHd6AdRxwht4sEKANlmIxX45xzDOjI5yDEyI7FhVt0=; b=2LnjKHameMikiM /pIbgHVMqzESy7jL+R+AKN1CE7V8qX5ZzJKgHlcaOtXSlFvtGUmThu/9gLMysPzewxAYRRCcIDS7J vf2CUJB51AkTs4gQ0cu0bZ2+/SoTkNCOnVhgmick4YS3te0Mwj7unEPMT/Doa7w+Cy+itF638xtTI hZMuSgJs9xxWyV1OpLpcPk9KRn3ozkPbMiz+JLIIyqjv/FaSbdzQOUkz9cxfV1qBi0L75m/617hvu ZGhRfAMvs/+bxLuqZWs5mw/gcvuaIxwCW4bZ+os36jLFPss/qFlbzJ8FenG4ashIB9wbEpZVE3YF1 6At6m4EdrG521BJRR9kA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9K1-005skN-IA; Sat, 05 Feb 2022 00:53:01 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9Jj-005seO-Mu for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 00:52:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644022357; bh=lym5STbBzaJGlQM8oAKh6+HRTeRDIEflWWq3ZRpveqA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Hz/patMlWit9iSO4qIwoDtKnDyrt9JtB4Vf06FOsXWYIbAdbI+DFomvXsaT/2IeaO 8FUmTxFPm2uSg3QMWvYXWpsxt+e0CPAkTW50CCIySv4l0c7j+4BvsvZgoY4B3Jjvyx 44zVpStWgHXnzEWrsdjkR/jaiTEocSzXyvOd9nxU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MVvPD-1moLZJ46tR-00Rr9g; Sat, 05 Feb 2022 01:52:37 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Keguang Zhang , Michael Turquette , Stephen Boyd , Yang Ling Subject: [PATCH v3 2/4] clk: loongson1: Terminate clk_div_table with sentinel element Date: Sat, 5 Feb 2022 01:52:29 +0100 Message-Id: <20220205005232.772726-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205005232.772726-1-j.neuschaefer@gmx.net> References: <20220205005232.772726-1-j.neuschaefer@gmx.net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l6D3a5EX8DY2sxRoXa2BOSRJ26ML/iii+6F2vGsGxF7hc7n8AaOr uUPbuar8hMbGHepBe8AhPXG45FtpcuYCviVA2Lq2Zi1hLJl94LpHT27RcAUu+WWt0oXX09sya G4JK4Nl1WRXeNacOXAEWLiGawzQQEAo6Pn2JcvyvE4TEYvgN1FdmOWxDhfX/LKC9uhOBD13FH GqEFX//Inyy0SzslcrDAvQxamZcZAr42heDoQpZrf3dnJyW3psy/+PwqRsMp7cLA00G8W60dC exDdw50XGtujN7j/hy0d2Ru030nfPg6e+gOCSz6wIls2F2+nyDC7Rn/ipO9o3csSs6VoOFY3C RVBsDrIBIuJrV8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_165244_070122_DAE5D648 X-CRM114-Status: GOOD ( 10.22 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: b4626a7f4892 ("CLK: Add Loongson1C clock support") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Philippe Mathieu-Daudé --- v3: - no changes v2: - Add Fixes and R-b tags --- drivers/clk/loongson1/clk-loongson1c.c | 1 + 1 file changed, 1 insertion(+) -- 2.34.1 diff --git a/drivers/clk/loongson1/clk-loongson1c.c b/drivers/clk/loongson1/clk-loongson1c.c index 703f87622cf5f..a6f9f20fc8b99 100644 --- a/drivers/clk/loongson1/clk-loongson1c.c +++ b/drivers/clk/loongson1/clk-loongson1c.c @@ -37,6 +37,7 @@ static const struct clk_div_table ahb_div_table[] = { [1] = { .val = 1, .div = 4 }, [2] = { .val = 2, .div = 3 }, [3] = { .val = 3, .div = 3 }, + [4] = { /* sentinel */ }, }; void __init ls1x_clk_init(void)