From patchwork Sat Feb 5 00:52:30 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: 12735906 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 0AF24C433F5 for ; Sat, 5 Feb 2022 00:54:42 +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=uailU7wHTJwZM30JcyEh87AyV7b6u8Oh5cXNgJIUO4g=; b=yvqhHu4uqPU0tb JPdKJdEnTPmQSaJtWsyq/NaaTq2eyNANfea+G307HQhkzyqr5yAcuImCAz7/zDLQbCAJ+rWBtuCCH pfa4M8L+XT5OJzD+xV9EHJzXAldlym2uLxXg1B4r8N0rgzJ5w/23nhtrIT84+60oreXWcuV67AD9K TMBvKt7rbpKQgY46f3UCYfLKd0QW2vaMZbWmz44/f04lVL4Gy3OtVwgp69R6x/ogan7NV49MmGkYz 2jitWgliArypJFZSlvCCuS+hzYKDkH+FYR9atPw1iHPVgO1Ec9oVWc9oW7xW57OeGfGgDgWTpt872 CmqlzBF+GDvnsmfS1tig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9KM-005ssE-Ls; Sat, 05 Feb 2022 00:53:22 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9Jv-005shi-1q for linux-arm-kernel@lists.infradead.org; Sat, 05 Feb 2022 00:52:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644022364; bh=ZInuevHBm/8PJjzn5I6mzT63DgQSEcCynm0dez446Vg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=AFz3bz4QsMm6Q8r7kpvkF8bX4FRk/27eEhF8rfJRqe1Aw0hVzblMbWhFgIbGBqvq7 Zg75sYU6LwWfwyVkKdD+OqzZblIdr/H5c8xQnLLg7PyXORU1oTW8Hd8PkHTw3TPTS1 rbggH0RnhAubbq4mTHkrheWClibrAg3wXZ0njvyU= 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 1MRCK6-1mt0G008Pc-00NEYx; Sat, 05 Feb 2022 01:52:44 +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?= , Michael Turquette , Stephen Boyd , Dongjiu Geng Subject: [PATCH v3 3/4] clk: hisilicon: Terminate clk_div_table with sentinel element Date: Sat, 5 Feb 2022 01:52:30 +0100 Message-Id: <20220205005232.772726-4-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> MIME-Version: 1.0 X-Provags-ID: V03:K1:rbb1pSAhHyuR9YMzqKSJwi5Yf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HtAd6Ebi448RZNHxn/jG+n9tTVVxpf32mQSLoU9u27BQjivHj+cbmooAsohUP/8 Pn6pFaC0SKNjWJtcAvs5fQKW/lLgksRKuv1q+fCozuJUuFQ8sRKgWT6r+lM6DVkiv2+Z/4o9F pKisDSTsDa+tAw76DBXjF0P3S0mixK+V/eMNtwQtEUTkKmJLI/casqFSsoW7e9u1E9kPvQxtI dcfN9+OeP6CTYjPY6FGrB8AA68qBokrZmLsiDcu0r2eRZ6nR+lNa99lubDRUt/zukVyFOn2RT JfynFZRhPllCRI= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_165255_413938_051E37D5 X-CRM114-Status: GOOD ( 11.89 ) 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: 6c81966107dc0 ("clk: hisilicon: Add clock driver for hi3559A SoC") Signed-off-by: Jonathan Neuschäfer --- v3: - no changes v2: - Add Fixes tag --- drivers/clk/hisilicon/clk-hi3559a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.34.1 diff --git a/drivers/clk/hisilicon/clk-hi3559a.c b/drivers/clk/hisilicon/clk-hi3559a.c index 56012a3d02192..28c2a0630474d 100644 --- a/drivers/clk/hisilicon/clk-hi3559a.c +++ b/drivers/clk/hisilicon/clk-hi3559a.c @@ -611,8 +611,8 @@ static struct hisi_mux_clock hi3559av100_shub_mux_clks[] = { /* shub div clk */ -static struct clk_div_table shub_spi_clk_table[] = {{0, 8}, {1, 4}, {2, 2}}; -static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}}; +static struct clk_div_table shub_spi_clk_table[] = {{0, 8}, {1, 4}, {2, 2}, {}}; +static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}, {}}; static struct hisi_divider_clock hi3559av100_shub_div_clks[] = { { HI3559AV100_SHUB_SPI_SOURCE_CLK, "clk_spi_clk", "shub_clk", 0, 0x20, 24, 2,