From patchwork Fri Jan 28 23:09:19 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: 12729250 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 5F16FC433F5 for ; Fri, 28 Jan 2022 23:10:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347217AbiA1XKS (ORCPT ); Fri, 28 Jan 2022 18:10:18 -0500 Received: from mout.gmx.net ([212.227.15.18]:56733 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345913AbiA1XKR (ORCPT ); Fri, 28 Jan 2022 18:10:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643411401; bh=lfLHmjyOTilBttOWAj201No85yHq9DO6yGAMOq7BohA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=lS7AQJWQRZKabML+gOpCycsyPB2/ogg2wDFk0S8RGLPg5ZvYLEfEFgDY/5Jkzbenk dlfMx/b8RmmxltEHc/mQuim3ngEK6ft4u6q9scO9F4cu/HARWUM7bIIEdK+ywiXuPG MGuDI0u+GAYk/oX+jZivpxPNiyOA1GP9XBtnsItg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([89.0.80.162]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTiPv-1moSiz3RXR-00U3a3; Sat, 29 Jan 2022 00:10:00 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org Subject: [PATCH 1/4] clk: actions: Terminate clk_div_table with sentinel element Date: Sat, 29 Jan 2022 00:09:19 +0100 Message-Id: <20220128230922.2047140-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220128230922.2047140-1-j.neuschaefer@gmx.net> References: <20220128230922.2047140-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:ihzYKGpqwBqxqgDIEWeV0fy0JjgUcCO2Qw+dgurKtoDIMc6gipD P6gk1Wwb9boSzbceguBlI/aGm9OsaxQh/Y0hL01UWkHh+BZF6cYCOC8D2VnNZ64Ei4uMtF/ upuDulfCWbuPNi1EmCL4QLXqQbaBQAtowTga2o9JHyf7H2OKHBMcmyYSd9haphCVsHksDO6 trPCkcY3A7RvmukgLCUNw== X-UI-Out-Filterresults: notjunk:1;V03:K0:rje9gfMd0VY=:Ij/RTDwVn7IjVqpCSNAQUJ 9OHrWCQSgn9NKjTHJWt4qEhf2jvaeWOWwfywTnY98kapca5dcHKW5KRRxkgDvK2sVpVDVhdw+ HFyX54vgANdTf6BZWWDvyQ3IwaM/Ivko2QQGuFz0UYKFIq0R+whJaUrEhtiNYS5sY37IcMmha hgF3ZNNUHOFsk4+0Qc7vbxA1YADfoimu9JcenNgtPbSC0/j8rzS/LNVz41C7D3NkI+IfIP3pY clHZ8MeiS+g6hxwSin6Szo1J9bAB0Os6tramdpb1AvB6xc1lfjEJkNYYLOcjLLLxx8ed/1Ss8 Imf/tDIt8JQM9vBKOBXsgGhS0/s4ytr4G+gr09s+D0ky0A5KcErwav/JSqFR8orL3Gjpkq3FP BYIR0pzericT56GEijEIcv6BbKJwX6TeFt0npq3rekOrABJ0VxtKzSlGyNHh/uZvGBCWCZasM sag6/4YV+coFYEiYW5mS0jGyxcybruqWS7nZO7CtESn9Xh+T7KJsJ3ZOCymw3MuC+27IZ9tdg XxvKE08mys5HHuvp0Rld6APFThSyhIvHFH7krnYIL09jQucxoNkt1HrHyl3w4fbTcUN/zVs3K 8mySM41PWcAjEsjt8Mx0wfZxBHs8uETh16xDHZvlzAthlnIhXkpC2pMcto0qaa7YADYw6r+Hd n6wvyTe9DSASPRKPLoy3s0g96L41YNGZv6PQxTUyr2/tdKK1Qb9ccIKY+tPX644c/Rwib62QQ 39vL+JSzQiynQA0nZH3rGmI67VC6owIDCFxONcF0+1xcgW1FNjs2CTRe2Zag3xo1X4cZq4QYM GzQ/ZT2aEtnuNgPCwRV2WE3Wshy55C76n10f8YB8KlHFn3Np3r/+lRI0R9dgHDYoQc9mV9aLL lEgsBoTRdTcna2MG1YD69W7I08rm5rYSllrQ3jzOiwOJi0GHS57uz8ncGHe8xR/5trBil2DSV 3rMyTr/fxAlOx1jK6Acms2B/421k5ogyCkEhiPWFeOKgYagRFaaBIQzLWnBc9SCygqP4XEJNH 0Xawu2y3HIQ6pr34RxuOgJDjAA2oyTzoeZdpvf44niPQbnrRDm7CVbQMwH5t+6QJXqeVVHAU8 I68fjYdWCrDhio= 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). Signed-off-by: Jonathan Neuschäfer --- I'm not so sure about usb3_mac_div_table. Maybe the { 0, 8 } element was meant to be { 0, 0 }? --- drivers/clk/actions/owl-s700.c | 1 + drivers/clk/actions/owl-s900.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) -- 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..f6f49100a865b 100644 --- a/drivers/clk/actions/owl-s900.c +++ b/drivers/clk/actions/owl-s900.c @@ -139,8 +139,8 @@ 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 }, + { 1, 2 }, { 2, 3 }, { 3, 4 }, { 0, 8 }, + { 0, 0 }, }; static struct clk_div_table i2s_div_table[] = { From patchwork Fri Jan 28 23:09:20 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: 12729249 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 2A105C433FE for ; Fri, 28 Jan 2022 23:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344836AbiA1XKI (ORCPT ); Fri, 28 Jan 2022 18:10:08 -0500 Received: from mout.gmx.net ([212.227.15.19]:52127 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344400AbiA1XKH (ORCPT ); Fri, 28 Jan 2022 18:10:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643411401; bh=YkOgAasWKFL5PqtYuaKrziNPA6t6TWtBGIK2VpojFBc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NeQc2ECq2cHbOnMXrFqejqxN/NKTFpRX+cKNFon3hcPl949QQqGWVYo4m1hZ9/fyB MrvcIMJZHPjFgcsQki2e/N+s+F72jTRgutb/BnI33duHgmnFRRDzfT1h1TfQd6Sqe0 q4ad6Xo/nOX2L1+rd3ZlG70gKUtkzetLruJzGL/k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([89.0.80.162]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M7sDg-1n9iV12kUc-0050it; Sat, 29 Jan 2022 00:10:01 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Keguang Zhang , Michael Turquette , Stephen Boyd , linux-mips@vger.kernel.org Subject: [PATCH 2/4] clk: loongson1: Terminate clk_div_table with sentinel element Date: Sat, 29 Jan 2022 00:09:20 +0100 Message-Id: <20220128230922.2047140-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220128230922.2047140-1-j.neuschaefer@gmx.net> References: <20220128230922.2047140-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:nZ8SJq7BpTEcPnWOM9Te0gkmF9e9dOoAILUHTJNguPc7Cnm2RHV O6GUWmUGaAbvxy+K7YZl5sWP0MjdV6Xhl1TSew/MYhEAEmNZtNfy/XFHJWFGlGMlIYQEt1S 5HqmtxNaRvgIGiT0PM1Fs0SLFY432NiA68lQB7hAWnzolA3GMZcO3hlCgMZB91VgDLvgpZN tjNSR6nWwfL0MUH3KjOBw== X-UI-Out-Filterresults: notjunk:1;V03:K0:yao6eQGl4PM=:eCZ3r7lvohoK7z/DrboGgN FQmgyNEGsQ7zCH+uXNy74kQVHGOUyefs9QbM2Or2oxbXWQ84oXNPq0+jasQ2Tv1HzrIqLmxT6 Ce3LlyVmiUoYP/i+oS0bTq7sc1vRXs5X/dJ1lsVzhcFraETxQd8JxAT9AbL9G95+DSCBmZb5V HRVIav7jqNGjlcK+3/e9ihgVm1VCRZSqAUOw71htg8JFOflJMIPiA1Dyf9z2mcjTb1XRHOfsu 2RO/xryeg9xZdU6cLHGLz03CEMo3JAffS/HvnneXggPyRuDLsBIRGYLX6g/a+zsfatM7fXj9O W7BKlTJISF7EyllHlBJ8nHPp0/ZuCWB3ZUYcehX8qog25vPWzLXNzkX2pDWSqkVNbxtMTmgw/ 6QJc1Q5XQb1nr31jy0Bs1imumR9p7VEtIZWB75IWEj4Yhw6vk2tTRxdS4NSguUksqU+UIBsd/ tF346EqQWheWZ+6a+BA5DH8bWZ23zSZ4a+RQd26vFOpwO9eWCkn1Qer0FeVO76pqteRenRhsd v+13sHdY/1gFaQk+epiMRc7ikU4lPyE9St/RXa5LFAl8eq06nssH4Vw7j8SfLon33XxBkCapc TBSJ34hBk6NtD299fOfNDvhXvMkYge3r2atUdLQURUHdvR4hN62UXjcL+mr/gfVR4+LVp/ZnI CwV4aI2nRAe80lv027NUr+3hBSakX1wnzPwRc/TLPxQaZgcVsPgMNP4uUWuxJC3qHzzUCgxBS DAmnAxxeLmT4F6hCdwAsYYSKp/4dXGjgTSL8sDcvXpYxyfn/ViSoOO5fr2yDvxfQot8WA1tlH lAFJfKmGU1bNIeO0W5tzLGv44qC38IEeX1c3FddSHsZPWFf+2Tm3P82j565qASdPK4987qy0L D4c1mpmL86FzfVq51m3aX60xlgXthNUwK+/WVdNUY8qYrx7l5NDCvBqGZnUIAcCJxPB2MC7F4 T58s27HK1WG6e/P+ZAzLMJEy02Y6Ax/tpX2pep7cxLQH6i3U/B4Lcv0UNBvYOFM3qtSWKSsIc aMQx6QlEGzNj/FdZl96aYY1uusS5NXXgFkKhOdin/T3A5EOtj2fS486fldWN6Lm134YHe0EYC Tn6NHSTBHJT3nc= 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). Signed-off-by: Jonathan Neuschäfer Reviewed-by: Philippe Mathieu-Daudé --- 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..6b29ae9ede3e5 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] = { .val = 0, .div = 0 }, }; void __init ls1x_clk_init(void) From patchwork Fri Jan 28 23:09:21 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: 12729252 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 68C10C4332F for ; Fri, 28 Jan 2022 23:10:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349679AbiA1XKV (ORCPT ); Fri, 28 Jan 2022 18:10:21 -0500 Received: from mout.gmx.net ([212.227.15.19]:33977 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348632AbiA1XKT (ORCPT ); Fri, 28 Jan 2022 18:10:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643411408; bh=XTOsqOf/WkGgWaJmFVDvq2fS2L0XA1LpZOg14b+J6aU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=YygBBZ5iScRMA4AoV+o8J1pCELgFolYTdMG0CXcTGMyp8/+ubYh3kbQ9k36F3UcKP KCN1BNRJ5iegdnG04f6lllXOAkttkbQC+55yf2za2x4oVHjcT01gbyURNwyTYsfZ3X RtgRouHJbEBmtM6muTqziQ9Oo4jJiTBAf6MqfCBY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([89.0.80.162]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUXpK-1mn5Hc0zMO-00QU3d; Sat, 29 Jan 2022 00:10:08 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Dongjiu Geng Subject: [PATCH 3/4] clk: hisilicon: Terminate clk_div_table with sentinel element Date: Sat, 29 Jan 2022 00:09:21 +0100 Message-Id: <20220128230922.2047140-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220128230922.2047140-1-j.neuschaefer@gmx.net> References: <20220128230922.2047140-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:kONIbwxFhEejB7eJDZdPACNkE1PmoNbMHGkDDbM7hjzeR9BZCnw HeWjmYbc2kqd+twNi5vIC1S4pneVR3PUqxtyQJxQKsjfrBlEmAkySZ3fJFcHHq/wnCeXBom CCH7rgkIvsYUpfXTbgNq3m/LRkuCUWahy1w9srDTICMSOzVZlsTCp9exjVsc5GF3jWCepv+ ARL1GfZNlgsMSl+S2Aulw== X-UI-Out-Filterresults: notjunk:1;V03:K0:nZ/aFuC7uE4=:OGCoIazl94MmvwSxlI+Oc1 QiuIsuRNCfBh9ItVQVQOQiHhNaxBWGrosw806SpSd+llxe03npVOFKBmnmBqazWq2EivnHWsI Uc5ZY/jwPPyn6Rzu0HJcZh8t5DAerYvQsi+2TQbTvYvymkf/4a+GJxxRJU0gcd8ip3kaczkWl lH5YCYrjdVMS2v5lDT9aVOLA/O35oM79ahgg39F61Sqe3EhFwT/mHSKSX695AYBAt9mmFFTvb jAo7kfLdO3bavKHsT1xOiP4DN79Bw97PF60wWjCfl+eoF1cUuNNg9iOYQaWSlhyU/NXxiAdM9 noRqCT8eT95t+9/+Cj1uZdcxkobcwMHkc5sFHf4ccOarZXkk98YyhMcawn8pZ7eig82I+xQ57 zfOVbjXIg8VUPFCIapdcu49fGhiFdLz1jYlpS9UjSCJT2OLfgks5XYtH/FIWVWxYj0ZZd8ATW LEjbRayw/nHDnHXFNfTkwOm9gObvUFQJ/UW/TdLXMKKVzPPaTWWb2QjG3E3VGlgC6Mi2NEAR+ Ei8b6xKSNxABVR+GbNmFJq5zGXLuS1qcSAytM2XkOe8O86NVpuk0Xr49g8IpE+fWdtCwpAbRF 7087BSIiO865SyvapTBhOlnsOlqbPZE+GcHtGJCjjd2B+KO/Mhd8juu8OPE+OxJUS8iGGzMTH YN1qX2SbizsacCmoTsVHpvJ0tCIuOp17YtCaHv/eYub2JVXVhZFWQiYhZpsxkr2chq90i0ltO SQL6vXsh+zlUzipXyfZJt8339GilzA7DY0re+s88J9digLdK5e3f7yXpzBUeRmeFsb6JYqCh6 HFbGz9LtgzsXXX+eTLmvI1ycNWn/Q07WDkbNCOql+zl59yWhWpLgyVnheHK72xTxxlaSwizUL ASyxUzpDr2R5E+rF2DhTnkkYMleJWOzWXAHWPqJiZmY1TB2S5rCMpjwCiHg0DtAGYXDGpIOey 6mO3pT0ryPKf0n2OgbNVTs8rWJC2ZxJD7qaerpKF63utBiSDaBdtpMCpll9R4K4ygimzaPcq8 0Aj3nuEBR0pGBS9/Alh/OV+8tqkHfPbWEZMMmahEySeonRYmCMBgE50N0XUYQs2IFAadoIcdv nhQp9PQTdWC+ao= 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). Signed-off-by: Jonathan Neuschäfer --- 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 Fri Jan 28 23:09:22 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: 12729251 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 27B1EC433EF for ; Fri, 28 Jan 2022 23:10:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348293AbiA1XKU (ORCPT ); Fri, 28 Jan 2022 18:10:20 -0500 Received: from mout.gmx.net ([212.227.17.22]:44475 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348534AbiA1XKT (ORCPT ); Fri, 28 Jan 2022 18:10:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643411410; bh=CLH6h731OtdlnBAYydS1sYh0Khh/6ie3nny30sSumKg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=k3XUQ+lGSZl3F0tE/2Qq+YE9K7hGlQ9ZxES6NdAHMO4XzPDbDvL6Vh6CqXPggQBON YMF+EqyLuMWg84U25cP9rBtF23uKrJf/IwJ+icgo8Sc9INXS8noq+gHUyQEAXZyCZL TqBUd3CN+bdlUoyhp4QFzVqhZjb5fHpYnCA6OIUc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([89.0.80.162]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MBUqF-1n6g6Y3KSl-00D10P; Sat, 29 Jan 2022 00:10:09 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Alexander Shiyan , linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] clk: clps711x: Terminate clk_div_table with sentinel element Date: Sat, 29 Jan 2022 00:09:22 +0100 Message-Id: <20220128230922.2047140-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220128230922.2047140-1-j.neuschaefer@gmx.net> References: <20220128230922.2047140-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:LScEnOk2k65rxH4TQblU5JW37I4tPPQ7W424UMr/eNnlYBKFwhy iZ7ai1T1javUyuPJqO5pbNzL1/RaVZsQj6YiUIczgpPbOzM4RoYwA4NWswDoCmMDlry2aiE o5AyV4Ih8iNFffy7/vcyIhRfyL2r862I0Oc7/D7j0tQ+w05mHdNQbL8UwXDuK9vED6nu038 mQbc5O1D0/RbhQk4OYOLg== X-UI-Out-Filterresults: notjunk:1;V03:K0:h6agRB8/MRw=:9OcP+d1uJYI+X71B7my18L GJr/h9bzYbRllkjATLvpizfqe17Asa0uqR3ZK9x8Kwy+BNBMlJ09ebKtI1vEFGkC3+MSLje7h FkCojFWWUKh8VLmjpUdvsweNO716XJ0niDe/jM3ymgrJ+gpXPa0OkH3KVWwTTeq24aaPtj/Dx Wrg5qHsQBnsmll/oA78nvd/zo91x2G6AKbSbIR7bZEvCLy5Zuvn2XgQ2khpHEZ2JnesmYKkbe agwh3CndVJTwgJ6aoen7T2MnKjsWw3V8lWsxX2Mr5IWUdz7ijwpaCHFdjBWclWQNWgoX0wquz 6zN+fJeI5G/CTUfmT4AMJBUsMW9XPYyPnRQfzZZeBlIt8rld1AthAaEqn+aGgUDeBGnarWY3W 7sZs49HM5CsSYXhX0tE8CnMpH4+u8uw7LjOdECgy63/xQixRUSSsvrYpqw+08iSDm3D7UEyYQ Hevi7Px7uVMJWRpny9bW55MsVZCPxGIzXFcIag1qmw0uvD/wADouTJDs53sB75s3O7D6LrSbu jR3fmLeA9nJu/IMIrUxOWmM9O6tZ7L/aO6s4nqsynxqJrWbji8Y+nw9jXcX9PHyyaA3JOwxez yTfYj5cQ6rrUinUWA8yvv4M4oj38m+3fkXw29Otaa4JnnoTAQ53f/YAh9ajz78Ut8A4mKG5QZ sobTAOvac6j75N9q891CAAQguwimbdj1/71quCg0wtZcORm+sPMKP6cunLfgdtYUOMDAnlu7X MGLSiRy7s6CYZU0CflE6b4RD1WAxYceIMq1kx50PBvSS4JwYIoQ2Ubj+fcjQg5Ku9Dg4JgP8h 6ESamslBd7oL+Lq7xcmo8CzWG6VR/CoNkjTB4Och8hP2sLrcf3Kyn2WHm9TGEB7kkrLLBf+YC K8FUVoUTMc+VclsxK7JCP6lFs70hvZMcF5m0fMV6oTudB98cdq765s2fpu7UXfwCjSu7vPWbp 44HV0PXRDOcorWKaiEeSn7MRRj3MKqgGeF/vUX1RXMEU6KWRfQEGcSyqKeoRXoxZKDXqGAAeQ PRcQWngK3MFKd2Ycm70WgkcwG58t4fkiVAEfaHt7mhPuAhIHYgtfyGEVX9c1+LpP6e80pZva1 hNnTLFvXH9jS1A= 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). Signed-off-by: Jonathan Neuschäfer --- 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 {