From patchwork Sat Feb 5 00:52:28 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: 12735896 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 5B573C433FE for ; Sat, 5 Feb 2022 00:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378806AbiBEAwu (ORCPT ); Fri, 4 Feb 2022 19:52:50 -0500 Received: from mout.gmx.net ([212.227.15.18]:36931 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350118AbiBEAwu (ORCPT ); Fri, 4 Feb 2022 19:52:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644022356; bh=bNE6pRrvW/lByIQfeio7tmgaO8jbzpK19L2S4Wf+yzA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=EJL+mReaW/eSx3Cuh5x7yxTDgxN0DfJh83nWMRhE1JVuCnR/FfKgB7GStCBD4LxNX KZu9hvsarI1ZhsZx0AHgdPrLfZiHkDBG7aCHH9cQFMCFxXW7WRUmOla7nDJZXDYC+m zs7NQyZzhx1en9a1owRujLtwey3FV5EFPD3cQ5WY= 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 1MHXFr-1n2jBa3y5Z-00DVQT; Sat, 05 Feb 2022 01:52:36 +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?= , Manivannan Sadhasivam , Michael Turquette , Stephen Boyd , =?utf-8?q?Andreas_F=C3=A4rber?= , Saravanan Sekar , Parthiban Nallathambi , linux-actions@lists.infradead.org Subject: [PATCH v3 1/4] clk: actions: Terminate clk_div_table with sentinel element Date: Sat, 5 Feb 2022 01:52:28 +0100 Message-Id: <20220205005232.772726-2-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:lWVU1QY4iL7zbP59K2Z5/VwFCPSTMIpDxTlewpinjNOdWGn74bX OyRJPuI7puZW4YId70tyT0RbCscju9EAJQzbR2d2YgfaNp3GumlR8u+/jO4eXNfB/7dNc21 qXJpa/tZvYCVUBastIDMLNSkAd/Q0sY+/dptS286vrquqmg+xjm0OCzz5k4JaVp0clmbTNb I+XEfy6+WHJuNnVrJc6uA== X-UI-Out-Filterresults: notjunk:1;V03:K0:EMUgfROemOs=:kWBjNP4+Hsq/myGcoYCtEt 1UxFDcUlTkgKTkXV+9/zpoI2J5Pu2FfMI/iJ9t5paVypkeplGPOABbna/5jBsiUlpXRijl2GU SnpghPbxEJAR3JGQKlhGaWkH0Dnq3hoKZ/QoK0AtJsrftZ59NnuWzHGduwxA2lhdNAvCrVPIy Uml/WXT6pI43kB7+/IFqd2BF6qy3FqlNIGpE6EhtZntH8aHeQjdtlmhNFQK1oLdKkFufqMknX 6SeI+bZdQlmTeg0KEGIVl3OteEWrWRNTtaYFypBH2FbepSuRRXPpZ7Xa4TjemWvuv5jwSI2oP VP2f4hm5MZ+A8eI57CBwX8QLdBrWj/o9gPfpOcFKD/JPU8qm88aTIapwnYBK5th8hQDPJX73l 1E1GQiCKO0p/yTSKSwX1/swHFQnZTLDR7kzxBPTs50CBYtIeXpBUAU6nQyjn/M0Vb7uIOo5EH bSHUgCsr2z9wNu85KfBhpgFRjufkiqeIn6Ol8fvh9z9qypjEaGH++mmH+F1Ze/jE4GtroP05P 0ley/2WyfGhut2mBXjU9KdBAc2yU5gciI1z421OD0H+heZCOl3qUrsAjYRYkYxwH5qU7peEAM 24gV96kD1Td8KdPA/K63E3fbQzCRg4SqXWuAo7kWOvrMhiOTAfj76PNEle8OnqO4xjc4gTMOZ Wd22GaIc/ph6Aum88FryFAMI8Tg6Eke6ByoLLkgH6mOxQnUIHpCtgTicIrpC2UInM+GS0i5k6 jxgs1fobCOa5uuA2ulvDP4H0R90mFDyXmHo5xaofzWDuFMlyCPFj8+YnKMk6s9F6JFaQvU95B MUYhPrNbvCC6a/DfETNoY9lPeTTOmDxgW4wlvsgLCn7KoETfx7ACuTHBuO8W6n97EbRZFAHwB wGbiGnUmonBhv747KtvYNRudbVR38iYxdPL0COxis+BPmhi50fqkin3bgGFcP4nOvXeyA4Q3P sQKBEuhuHlNyUOjjXEGQIKg0Sfu13dlvBL1zuejad/Dr4n9T0G01TC4vIummhmiuwHxUNLA4y e+qZakg82aCgaBIFkUCsJZCnzkC/ufn/2mwIR1OMBTCt79j2UL7jg8IbrDuU6gnJNihkfj2lh /h/2AuJEwEbkF0= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). In owl-s900.s, the { 0, 8 } element was probably meant to be just that, so this patch changes { 0, 8 } to { 0, 0 }. Fixes: d47317ca4ade1 ("clk: actions: Add S700 SoC clock support") Fixes: d85d20053e195 ("clk: actions: Add S900 SoC clock support") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Manivannan Sadhasivam --- v3: - Interpret { 0, 8 } as a typo of { 0, 0 }, the sentinel element - Add R-b tag v2: - Add Fixes tags --- drivers/clk/actions/owl-s700.c | 1 + drivers/clk/actions/owl-s900.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.34.1 diff --git a/drivers/clk/actions/owl-s700.c b/drivers/clk/actions/owl-s700.c index a2f34d13fb543..617174644f728 100644 --- a/drivers/clk/actions/owl-s700.c +++ b/drivers/clk/actions/owl-s700.c @@ -162,6 +162,7 @@ static struct clk_div_table hdmia_div_table[] = { static struct clk_div_table rmii_div_table[] = { {0, 4}, {1, 10}, + {0, 0}, }; /* divider clocks */ diff --git a/drivers/clk/actions/owl-s900.c b/drivers/clk/actions/owl-s900.c index 790890978424a..63c4097c07ac7 100644 --- a/drivers/clk/actions/owl-s900.c +++ b/drivers/clk/actions/owl-s900.c @@ -140,7 +140,7 @@ static struct clk_div_table rmii_ref_div_table[] = { static struct clk_div_table usb3_mac_div_table[] = { { 1, 2 }, { 2, 3 }, { 3, 4 }, - { 0, 8 }, + { 0, 0 }, }; static struct clk_div_table i2s_div_table[] = { 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: 12735897 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 2770FC4332F for ; Sat, 5 Feb 2022 00:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378811AbiBEAwu (ORCPT ); Fri, 4 Feb 2022 19:52:50 -0500 Received: from mout.gmx.net ([212.227.15.19]:33393 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378804AbiBEAwu (ORCPT ); Fri, 4 Feb 2022 19:52:50 -0500 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> MIME-Version: 1.0 X-Provags-ID: V03:K1:npiPhZZ/O3sp6o2Yhb9joakGAZKVj+KAXxOrYSF0XvLjcWIJzmt aiZPe/C6G1f8GX/qmelbAao26MSb63BJ/FIid7cHUtBVsi3tRIJiw0O1o3ZvbtG1tUL8TMX YsGiqFCLiIlMSY/QX1iD3xSDGkm647F/J7CBp0BhtUi3knyOe3zxVViQL/ABcy6RM8kJd8Z XWqmzoURL8yJTIheuPqOg== X-UI-Out-Filterresults: notjunk:1;V03:K0:mCDPUqM3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y0d2Ru030nfPg6e+gOCSz6wIls2F2+nyDC7Rn/ipO9o3csSs6VoOFY3C RVBsDrIBIuJrV8= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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) 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: 12735899 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 62F8BC433EF for ; Sat, 5 Feb 2022 00:53:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378830AbiBEAxG (ORCPT ); Fri, 4 Feb 2022 19:53:06 -0500 Received: from mout.gmx.net ([212.227.15.18]:47755 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378839AbiBEAxB (ORCPT ); Fri, 4 Feb 2022 19:53:01 -0500 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:rbb1pSAhHyuR9YMzqKSJwi5YfC4B+oFbWbLzs/81XvNGTiL1Vc/ qfxvUqUqbPYSYk5cwhkIH9R4ek6xxjxKvybtFfrQwgIqod3C2BN+lGGTMykeCOuCYK0peiR UbmrBs8eury762fSp/gjZgBb3+Ojuvjxv1epvl2kwPbW1nT5hTNGG3wOc/Rw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F0P3S0mixK+V/eMNtwQtEUTkKmJLI/casqFSsoW7e9u1E9kPvQxtI dcfN9+OeP6CTYjPY6FGrB8AA68qBokrZmLsiDcu0r2eRZ6nR+lNa99lubDRUt/zukVyFOn2RT JfynFZRhPllCRI= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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, From patchwork Sat Feb 5 00:52:31 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: 12735898 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 D9C8CC4332F for ; Sat, 5 Feb 2022 00:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378827AbiBEAw4 (ORCPT ); Fri, 4 Feb 2022 19:52:56 -0500 Received: from mout.gmx.net ([212.227.15.15]:37127 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378821AbiBEAwy (ORCPT ); Fri, 4 Feb 2022 19:52:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644022365; bh=sih0C9j+Skh+Iygcka4TI9uLM35zlkT/bJ3P6AAoP4s=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ArCdDHDNPjq5S6JG8DwnGdtNk7/AObqFNvc/dfj+iA8wU6NQRQ3o0RX7pdEZEqMBB WUq4cc1EFgtOb4hASA3VVRkc2NZ8rXcwcM6PJUHApZSNiv7Via60P2t4xRGt7THyON 1Q+rNwyQdenrA+SDQDWVROuZUjAcjzu0sHs3idmk= 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 1MF3DW-1n0nFF0aVc-00FPzJ; Sat, 05 Feb 2022 01:52:45 +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 , Alexander Shiyan , Arnd Bergmann , Mike Turquette Subject: [PATCH v3 4/4] clk: clps711x: Terminate clk_div_table with sentinel element Date: Sat, 5 Feb 2022 01:52:31 +0100 Message-Id: <20220205005232.772726-5-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:+5sqN1NQdxdcUbRRd06FLeYyXi4FGGlmCXSn1bq0vyEbH2GQK6k bl1TYLc9US7ekOSTBfxcJ3rRwiaKuN6P1XkdCxlFs7D2/k7ThOpD1GLzRJIwlKsGWuk9CWT hChHeYaUiWwb+h04wPjv2uKl06n0mZKyJ8lZxGZv7E+seBrQPDmT2LOIbpQQxWa7aMMF45E GRHYH8RSlI1bS6/zbRWLg== X-UI-Out-Filterresults: notjunk:1;V03:K0:tZkDayIuqb4=:eEicf82nMKSeBkY7O1GHXE HHXII8ZGGdKNnXtoqbt9PF26lxVpXOg/PkYbUFWe4KSWuNvR61ZNKAq0KFRbKEU5T81KCarHm pzzHEbkU8uhJWieCWamE9l2v6Ua+1r4zO7PMfpAK+d1yvAWQxGAsWuC84L8/w+6BzhM6kT9QK 7ViRwmI/kbqihnvpRV/lCVuTdFaKq7KPhT7mPxwVtwSK3jFk3JpGOqbvh9MRSJmQKwfmcaXaL cHKC4oZ2HMTl4qralxvQIUwDOf+5paYJG/nijQCBS3g44bUsVEBfdXKNzjPSUHFlWPplGpi2u zSXLK1696aZv6kkKu2BaKmaIuBjXY/qz+B0sqeyruiHAU/XwHmjM/mv2RDh6vP0lBOBj5+ObI kw7CiNabv6qvD706LipeXWZr/V8nmt6D+yPL3RKIsU1LvLExsg/UloYLmz5iEmoxPLEvR8Ssr KMOHrT8xWaULtjOwi5xi6g11eJTAME8HlnTxMT9Jal2cVFLAVmWEMoUTndF9FCiklJCwIC/dq bS4odSwLxxIF0Br01gZCZuAFadk1zrzw2Hsw7OxVZVaVOCDNGsY0QwnNiTbpESSNjx4Ycm93n czrG7UNC7dYoFAYSxB06VkaAO15f+rSMIrhIuUt588K6zXTABbr7RBIrho+J7QC4xmA8Tl/WF PkpKPMdWC5Jz10cC6g/j7PAqC/pkUmFhQ6/TsVROKZ/6elZmK6mKSb+UmtlxohcCEb1Pd2cMR 2mYV8h/Pxda6ZLzPK/LxN/mVKJ2GshShtbtWUB64jr4pndfpp06xSCU6GKa3ngzNCDWbx913Y KKoykqAQYMBy0FJyWzjn0kpyDzGKUBGbv0hp2TRuS6dHcsujA36A4e5ZFdKpx4/ufAiP15UHx JDhz1keoAWn/nIBVNwUPYpuUpKDW2XaRDvWnCxR+eIY6MdDAlJAhhFhsM/QyugM3Slg9XBqIM Sfs4Iw1g8HfugYOS12aojoLliPzTKXc0Gsihq4kZrqlz01sNwRQ7cWEac2Q/OqJ6f5RuoM82m VeCYykPRaZZyaXXyIgW7gfiv9lyMmlllgsHBMzwvjhEX9YpMy7vQ6M5TPV9wekIgF/kDwaWcN pSgD5qAn0l9E78= Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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: 631c53478973d ("clk: Add CLPS711X clk driver") Signed-off-by: Jonathan Neuschäfer Reviewed-by: Philippe Mathieu-Daudé --- v3: - no changes v2: - Add Fixes tag --- drivers/clk/clk-clps711x.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.34.1 diff --git a/drivers/clk/clk-clps711x.c b/drivers/clk/clk-clps711x.c index a2c6486ef1708..d96d96c8752c7 100644 --- a/drivers/clk/clk-clps711x.c +++ b/drivers/clk/clk-clps711x.c @@ -28,11 +28,13 @@ static const struct clk_div_table spi_div_table[] = { { .val = 1, .div = 8, }, { .val = 2, .div = 2, }, { .val = 3, .div = 1, }, + {} }; static const struct clk_div_table timer_div_table[] = { { .val = 0, .div = 256, }, { .val = 1, .div = 1, }, + {} }; struct clps711x_clk {