From patchwork Fri Feb 18 00:09:17 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: 12750793 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 0B42DC433F5 for ; Fri, 18 Feb 2022 00:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbiBRAKO (ORCPT ); Thu, 17 Feb 2022 19:10:14 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:40782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiBRAKN (ORCPT ); Thu, 17 Feb 2022 19:10:13 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C9E7580ED; Thu, 17 Feb 2022 16:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142968; bh=wt9/1XJrDEv+FVM99z+mQinXFm9ziBeumOFNRTwleAA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=aw6eiErcVFFWoV7PJKR5+LQwKAxcFq9haeCduTLDu8pj13uzK3AqDIlkZ59lqZC+Y pdabs/6+xZEk+AiFP6nLhFm/vIby8gP0/11JFpB9mnSqdA/ns+OG9dcZRIlU/X5jR5 R3WHnsrcJm5BJq16mQawPLzOP/iMqXETUk2aU6UI= 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 1M7b6l-1nMFsQ3f6T-00830u; Fri, 18 Feb 2022 01:09:27 +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?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_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 v4 1/5] clk: actions: Terminate clk_div_table with sentinel element Date: Fri, 18 Feb 2022 01:09:17 +0100 Message-Id: <20220218000922.134857-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218000922.134857-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:ccvl6Oeh7q8kpL7QBoZl1wLbOVhzeyaIoxS+30Ubfg9GXk7903n R+XXcUv/MdK66FB34bWKytSVc+Hy2j7o8RJgpYsbrCzwIUHwQdOQ7DIsyg9iAhLfXsWsZH1 ScXVl/kUe7B++gkJUk9LtrXhM321XCHmGrX9+eGztvxi9iIsTPf8DDKfllb0ZIe8u39T/Y8 JgVOIUcMBso2DL3JoErYA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ubipob5irMg=:EYZEsKU8MbiLHMtKdHwqeX 68FZYBID70+j5RLLnWO86Rf5jGK2h4zKabOUR9a/3/pnF3BW2GZq41u52YBkEQr6aBjmeodIC vTBZ2AICAv1EcaOsXEke5GGQutxWdt/8PTzha72aBb1VfYtfGUlfaF0QpN2t483v1S66J2D9f lkDVuaoOHBkIGuMU0H69UnpU0v5ZBdoSYU1hK8jpJ72rqSAf4zmqUQw7Ai7C1j8knnurkinSq eL2WwSo4TbdgKaZqdHQ4eJbkaYzsUPZSpwviLAmWBfk61PBcCPc3l4bVlc+ezxMgmfNYjuPoN HHLdrvOSMNc8sugJNqjFSdLp6SZdxxYHOav3dbBlpOMNwq/Ygaq4LrPf2OnhBJyw+A/jftEwD aZuO+AqqJscyBegObkobqlylZTXUSMpkTwe9cwwF1ZyWFRznjAYwe/av2RNCe6E0Y6IEKi3Eh FsjiATJxZ37a+9VkOhJomgbNDOT1IOXwNfil5omNe8X8x8Cc2iNhpeG6wT7tdPxNJgRmteidC qbCh4nfmoiJUhWEdbUkx+5Z1h4zhgnpPA7Opn6WYDR+u5aMYniCKqONhuw3xCS0rtnWGzhtZt lay+Io0ZpJN1AY4tL4Lst570eVSOUz6uVs5GyjYIE6aCnPyN/RouXSkPC1jLDIzBh9g8qg6gY U7e2Nv/E+e69yd8kw/XACGgX+QTuHpaTm65RdgIzPwEcw/Qf/PQkgwAmEam0QIc+smPqPSoGL 329xm9867xG+9XKZ4NIrNwZ8z4tUCFMJ/rEXjHzBtSXqHhjn0thmKqUolLE54mLQcJI+kZZYO 4DzF3s7L84WjU6FkD9kOZ1CQf8UCQEWph03lgRC62N6+p15uRXxSq19wP5pHMVbiBHsJ9XmFr c87j9AB7t7WfCpgXAZ2rgjeJ5I70yKbGV0QSPDu5gt62cV05PEKS+TA7jrKOYLEsUlNClBGm1 yXgfUF3eaEggQB619bfJQ+XMcvdnq6KR2x0NELvmEeuq4oGS+bQN/BNt8XPUk0ef0PFOs1q3l 6rB9vlw7EKpq3P8tiS4DTuQqAseTCbRlQzwKlRkVXHcIYy2jyQ7ltyyZw7xjK9DmPKFVHNbog fi+fFTFmPKY9ZY= Precedence: bulk List-ID: X-Mailing-List: linux-mips@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 --- v4: - Remove trailing commas 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..6ea7da1d6d755 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..5144ada2c7e1a 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 Fri Feb 18 00:09:18 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: 12750791 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 75726C433FE for ; Fri, 18 Feb 2022 00:09:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiBRAKH (ORCPT ); Thu, 17 Feb 2022 19:10:07 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:39756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiBRAKF (ORCPT ); Thu, 17 Feb 2022 19:10:05 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7243053B4D; Thu, 17 Feb 2022 16:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142969; bh=4ltnXb8snLk/03M1NrAk+PfKScHzFXRMa+IBBhisrD4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=M/bl8FoIpMg0PQD26wHWBsbu4zVsgfaZz3wI0jy9lYvNsQTYiPJR1uajlQVEoTui2 CENcRkOkKRHjHMNlWrRENGOR3alKvUfuhEllmaGGEk/WII/LKPUvGo/OV2Mjt7CXtv do5UgR3lyJHtP7NtJ2JWZUwMYyrKUqkO9flD6iQo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtOGU-1o7bPC49z4-00uptg; Fri, 18 Feb 2022 01:09:29 +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?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_Neusch=C3=A4fer?= , Keguang Zhang , Michael Turquette , Stephen Boyd , Yang Ling Subject: [PATCH v4 2/5] clk: loongson1: Terminate clk_div_table with sentinel element Date: Fri, 18 Feb 2022 01:09:18 +0100 Message-Id: <20220218000922.134857-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218000922.134857-1-j.neu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zFd5tW6kZF1AtPD/Mp7QSSOj+JEEYljDOCqs3G535AvF5vgbNLhumr M+P9qgSChrOKNpEatslpATR/w9Kz8qzNNaNd0gjEPejVRwGqQLyuX7M6bpYQ0+xoWc9iXrsz4 +ouatYm54NQyi1jsrm0eivWQPBF/Wb9LHTmTxW/xOO9Dn/4m3EEH6JzNcT5YSaUtEQK01E+UB o/gltq99pPhROYHi4ldbg7gjdBmlWwLyQOwxvXluTGsMSfhK67k013Vg5xWchVmvR68kDP+ei M5ZAWtS5HQfsP8d3fk40FX8Bq1CEmUj7LlbCdXSlc73ZUq/U3goK8Jk6pi6nofA+xcCfnI75W rVjs9mRcwgMtWA= Precedence: bulk List-ID: X-Mailing-List: linux-mips@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é --- v4: - remove trailing comma 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..1ebf740380efb 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 Fri Feb 18 00: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: 12750795 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 D8D96C433EF for ; Fri, 18 Feb 2022 00:10:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbiBRAKa (ORCPT ); Thu, 17 Feb 2022 19:10:30 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:42736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiBRAK3 (ORCPT ); Thu, 17 Feb 2022 19:10:29 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E82A58397; Thu, 17 Feb 2022 16:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142976; bh=dzJiVygOZA/XkFKLwsRSgIaENO2Mjx5mqLbH784YinQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=FCjYPrjopSOTOkN5xkyxo4aMsaqyGSRWBJdVLSZOLMXWhQNGuzqE4ny9YAGF7s1gk /SFkKGh0Po6Pe5tnDfcQWbqpS6TovJUR54TWSr1sHHbeCq0DOmFG90hGcH7/yQAh7b 4GHhNfgcy/dCF3zGZvKW5qq5KrGZohHMIY88PM0w= 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 1MD9X9-1nTtGT0vTt-009Cyg; Fri, 18 Feb 2022 01:09: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?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Dongjiu Geng Subject: [PATCH v4 3/5] clk: hisilicon: Terminate clk_div_table with sentinel element Date: Fri, 18 Feb 2022 01:09:19 +0100 Message-Id: <20220218000922.134857-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218000922.134857-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:96xUFhBHPOxIo5rsl7aBIDVboX7ATG6jjQOvUnqABAZuh+GTOdX 8dHXnASXn6cdEmpIzWVB9KiGlYMZs8v/KXblu7IfthqQKw0zC9ZkRaKpFEQITYz8Vd5PXqi yNPTcZU2mkWfvM8h746o8fOxWR+yA43l6owwHTDU7PCnx+kNNd2UTMqhXHjF3qsdI9h5vv0 iKxkTpKL2eK8GUu/vKlhA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ql56313tolk=:Wc9bpvNMS3EcswujPVJEIN 1EAiSU9uhRJH9Gra1G+hprLiZ31XYGylZGDcD4PiqvxXvH5xDnL1wZWvREidCkUt/8uF8ZFc8 vdi+7BGzI7INCxGhGeZIBMkRF7n6UtgXIVP2WRWbhWgJH/qhyX/f9V73502HJjkCHsBQUSlKa OfuRAW51ROKeTv81HSEFnaH9IG3d20THDv6c9FLmwTy0Jc6RrImgk2gArGtUFbVrqoUhaxZ3V HndtmWSJ2UdFKZCqNO9fGLmgASdlOgI0OyQRxlbP6b9PRIhSIx3GPcrDQurftqdsYgBb7QIpH qIjdeC5K2u3//RFe1kJ7MbK0ZbqyXuJyh5wl35rZCumW+5tMHkn20oi10Ygpoihb97tW6uVRT zj+jM4jt7hYDbFF7qEXplRdwxHAOZ+lyFcE3SglCYD9Q58KuFLo3oMtwxwucBRm9o7GLoNO++ WIA90P8t9FvDJnAOL7uLXbbmh6w1OKf8ohC1cav2WFNT23/I9sYErNryZTNYzRDRM0ReE8Tfg claIFk1DKNfvB0xvtGxfwRqWRC7Zvy2/3Hx1TldCQOG4rtG6kX+JZ2ygeBKG+8k0ZFRyzB2u2 zQuvKtuXbZqeN/EHgLoO4mkyk72XcbuBu+LExrwS/Lclz+iQ/pahiUxOolkZW9B0BnR6LVXa4 NHg5B6SXlO3JA6JhUV2tQhf0hsELDcTMihCQ8SU8IU4RJj03A6iWUo24P4BeflctxgomvlycL xeSJROfUs/yQJPVm0qcf1DTq8aZLG/J/rQVxWGwGvBMy8PJjfZUHGHCbGKACX1S8uay66PY5g FYwQ8n6ma0STPAlqaCrae4XXFI67Epzot3LuuZFYFzGeZcx9pMIAsnxHXFMqOzX0WQYA4Eytg jexRLxH6YIt67hAjYWNmtB5yqaBQhduXclfYNcl56Gi4pW8CFjsb4ccWzowagOyo1HVWUtpx/ afcMEQKGuhe7YeIll9e3AtQ9WryazgSjDFPvTIdIaYpsaMNQ1f7+936rPVQhoqBQL03FtoiiL Fsi5HqeaS+j17U+E2DDlVocvACQ3/+82Y2QJpHdyx3IgaF0EgRsvRtY1SOe1ApIZLZIQcz4RH o3r/3cKV3JxE7k= Precedence: bulk List-ID: X-Mailing-List: linux-mips@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 --- v4: - add /* sentinel */ comment into sentinel element 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..9ea1a80acbe8b 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}, {/*sentinel*/}}; +static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}, {/*sentinel*/}}; 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 Feb 18 00: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: 12750792 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 C569FC433EF for ; Fri, 18 Feb 2022 00:09:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbiBRAKN (ORCPT ); Thu, 17 Feb 2022 19:10:13 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:40406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiBRAKK (ORCPT ); Thu, 17 Feb 2022 19:10:10 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C42B53B54; Thu, 17 Feb 2022 16:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142977; bh=7eGr16EtJu7MHLlCPbPNeHBHVZGOv0ozkH98DlInLXw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=khDLPcAf3NBw68tmUPBH41pcl2uhT2BDYGuhWrV3Asmr6/+YIUYzSUISO6Iio+/mb j+G1lNDHNMSetPdDZsCDGfYmsH5N6KddY7lMJeAzGQFte80ERQgfseiaVHwGOU9yS8 rtQRVtWOOE2h8pqnZdmpkCD3MbqhVew7s1tMX4AA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M9FjR-1nNtW21w0t-006Khf; Fri, 18 Feb 2022 01:09: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?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , Alexander Shiyan , Mike Turquette , Arnd Bergmann Subject: [PATCH v4 4/5] clk: clps711x: Terminate clk_div_table with sentinel element Date: Fri, 18 Feb 2022 01:09:20 +0100 Message-Id: <20220218000922.134857-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218000922.134857-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:NRFX+n9ilPzjHYNpL4dxDX0MPMOdDmVbjTUxzaMLjlIkoxhtuqU JGaQOqpoarHEHTAZBUwbUu/wIy9O+O4Oc7WbNZkVD8gddCCEjgp+OgFchs2OEvfYkVOR9E1 Ycl47XGinH7w43QbA1c9XZMILvgU/pv8dZInRE0PFaML12VcT56+kfeacuBlcc/4YBwKUdz Oeev0KSEFVZ4IR8XN8CVg== X-UI-Out-Filterresults: notjunk:1;V03:K0:11hdJyMFsoM=:In/jDiEAAkdowbLlZY5XVW qaOIxV73FYNbSmeTLfGKPmyAYTUMNXiuzLppIqF7F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TCE= Precedence: bulk List-ID: X-Mailing-List: linux-mips@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 --- v4: - Change style to { /* sentinel */ } 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..f8417ee2961aa 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, }, + { /* sentinel */ } }; static const struct clk_div_table timer_div_table[] = { { .val = 0, .div = 256, }, { .val = 1, .div = 1, }, + { /* sentinel */ } }; struct clps711x_clk { From patchwork Fri Feb 18 00: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: 12750794 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 A3395C433F5 for ; Fri, 18 Feb 2022 00:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230043AbiBRAKX (ORCPT ); Thu, 17 Feb 2022 19:10:23 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:41832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbiBRAKW (ORCPT ); Thu, 17 Feb 2022 19:10:22 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E323058E5E; Thu, 17 Feb 2022 16:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645142979; bh=tNeDGkoj81qJYq6F6QZlW2TcqYZQQfmV+dfePkZYrvM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XLV2uwyrzUrRZ3Z6gQzB20SJTO/0niQQgRZ+ahoMgqPWutjDy9iP7OfLVY248MCxX BWrTOoIW6J2y9/y6Yrp1s8JnkTG57N80En3TtOZcPE7eiNRCwAHHz69Dg9muBDcXYA HcB1ovBmpxaDUPcMulT3qColDUoFZ4sNmj/NT9Zo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M6Udt-1nNLop3eAb-006ysA; Fri, 18 Feb 2022 01:09:38 +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?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Jonath?= =?utf-8?q?an_Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , linux-actions@lists.infradead.org Subject: [PATCH v4 5/5] clk: actions: Make sentinel elements more obvious Date: Fri, 18 Feb 2022 01:09:21 +0100 Message-Id: <20220218000922.134857-6-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220218000922.134857-1-j.neuschaefer@gmx.net> References: <20220218000922.134857-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:xeYTRFzkMWjyKO4xWaLwWNdriIvxSCWqqm9Mm+ASH2buzvuNhzy sQO5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wvYLav/06G96VU4he66clSj/lpcS1eOo3 GpW/hifVfwhLyHMPz+HdIcPepiAuvgP3EsfKOZxa5kw+A/FE+sRN+2YsZeD7dj8xRhDRNFTSj a8zJfPj/xw/lXFSRF9oGk612NiFawysuvNyCVGGRwUIhL2wYYNC50fZconNsZIYd7oGRkuEpr IEtVxdqOpnLV+3yl1neS1e1VVp8qEa92vMm1pymme12R7XJdrYTLsZeKNE0V2qyiMeNg6MM9Y bPU900fDi4TrsU= Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The sentinel elements of various tables in drivers/clk/actions can be a bit hard to recognize. Make them easier to see by changing the style from { 0, 0 } to { /* sentinel */ }. Signed-off-by: Jonathan Neuschäfer --- v4: - New patch --- drivers/clk/actions/owl-s500.c | 16 ++++++++-------- drivers/clk/actions/owl-s700.c | 18 ++++++++++-------- drivers/clk/actions/owl-s900.c | 26 +++++++++++++------------- 3 files changed, 31 insertions(+), 29 deletions(-) -- 2.34.1 diff --git a/drivers/clk/actions/owl-s500.c b/drivers/clk/actions/owl-s500.c index 57d06e183dff4..c69a7e2f06457 100644 --- a/drivers/clk/actions/owl-s500.c +++ b/drivers/clk/actions/owl-s500.c @@ -95,7 +95,7 @@ static const struct clk_pll_table clk_audio_pll_table[] = { { 0, 45158400 }, { 1, 49152000 }, - { 0, 0 }, + { /* sentinel */ } }; /* pll clocks */ @@ -138,46 +138,46 @@ static struct clk_factor_table sd_factor_table[] = { { 272, 1, 17 * 128 }, { 273, 1, 18 * 128 }, { 274, 1, 19 * 128 }, { 275, 1, 20 * 128 }, { 276, 1, 21 * 128 }, { 277, 1, 22 * 128 }, { 278, 1, 23 * 128 }, { 279, 1, 24 * 128 }, { 280, 1, 25 * 128 }, - { 0, 0, 0 }, + { /* sentinel */ } }; static struct clk_factor_table de_factor_table[] = { { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, { 8, 1, 12 }, - { 0, 0, 0 }, + { /* sentinel */ } }; static struct clk_factor_table hde_factor_table[] = { { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, - { 0, 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table rmii_ref_div_table[] = { { 0, 4 }, { 1, 10 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table std12rate_div_table[] = { { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 4, 5 }, { 5, 6 }, { 6, 7 }, { 7, 8 }, { 8, 9 }, { 9, 10 }, { 10, 11 }, { 11, 12 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table i2s_div_table[] = { { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, { 8, 24 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table nand_div_table[] = { { 0, 1 }, { 1, 2 }, { 2, 4 }, { 3, 6 }, { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, - { 0, 0 }, + { /* sentinel */ } }; /* mux clock */ diff --git a/drivers/clk/actions/owl-s700.c b/drivers/clk/actions/owl-s700.c index 6ea7da1d6d755..3e48105602aa0 100644 --- a/drivers/clk/actions/owl-s700.c +++ b/drivers/clk/actions/owl-s700.c @@ -73,7 +73,7 @@ static struct clk_pll_table clk_audio_pll_table[] = { {0, 45158400}, {1, 49152000}, - {0, 0}, + { /* sentinel */ } }; static struct clk_pll_table clk_cvbs_pll_table[] = { @@ -82,7 +82,8 @@ static struct clk_pll_table clk_cvbs_pll_table[] = { {33, 35 * 12000000}, {34, 36 * 12000000}, {35, 37 * 12000000}, {36, 38 * 12000000}, {37, 39 * 12000000}, {38, 40 * 12000000}, {39, 41 * 12000000}, {40, 42 * 12000000}, {41, 43 * 12000000}, - {42, 44 * 12000000}, {43, 45 * 12000000}, {0, 0}, + {42, 44 * 12000000}, {43, 45 * 12000000}, + { /* sentinel */ } }; /* pll clocks */ @@ -137,7 +138,7 @@ static struct clk_factor_table sd_factor_table[] = { {276, 1, 21 * 128}, {277, 1, 22 * 128}, {278, 1, 23 * 128}, {279, 1, 24 * 128}, {280, 1, 25 * 128}, {281, 1, 26 * 128}, - {0, 0}, + { /* sentinel */ } }; static struct clk_factor_table lcd_factor_table[] = { @@ -150,19 +151,19 @@ static struct clk_factor_table lcd_factor_table[] = { {256, 1, 1 * 7}, {257, 1, 2 * 7}, {258, 1, 3 * 7}, {259, 1, 4 * 7}, {260, 1, 5 * 7}, {261, 1, 6 * 7}, {262, 1, 7 * 7}, {263, 1, 8 * 7}, {264, 1, 9 * 7}, {265, 1, 10 * 7}, {266, 1, 11 * 7}, {267, 1, 12 * 7}, - {0, 0}, + { /* sentinel */ } }; static struct clk_div_table hdmia_div_table[] = { {0, 1}, {1, 2}, {2, 3}, {3, 4}, {4, 6}, {5, 8}, {6, 12}, {7, 16}, {8, 24}, - {0, 0}, + { /* sentinel */ } }; static struct clk_div_table rmii_div_table[] = { {0, 4}, {1, 10}, - {0, 0} + { /* sentinel */ } }; /* divider clocks */ @@ -179,13 +180,14 @@ static OWL_DIVIDER(clk_rmii_ref, "rmii_ref", "ethernet_pll", CMU_ETHERNETPLL, 2, static struct clk_factor_table de_factor_table[] = { {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, - {8, 1, 12}, {0, 0, 0}, + {8, 1, 12}, + { /* sentinel */ } }; static struct clk_factor_table hde_factor_table[] = { {0, 1, 1}, {1, 2, 3}, {2, 1, 2}, {3, 2, 5}, {4, 1, 3}, {5, 1, 4}, {6, 1, 6}, {7, 1, 8}, - {0, 0, 0}, + { /* sentinel */ } }; /* gate clocks */ diff --git a/drivers/clk/actions/owl-s900.c b/drivers/clk/actions/owl-s900.c index 5144ada2c7e1a..7dc6e07fb60ea 100644 --- a/drivers/clk/actions/owl-s900.c +++ b/drivers/clk/actions/owl-s900.c @@ -73,12 +73,12 @@ static struct clk_pll_table clk_audio_pll_table[] = { { 0, 45158400 }, { 1, 49152000 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_pll_table clk_edp_pll_table[] = { { 0, 810000000 }, { 1, 135000000 }, { 2, 270000000 }, - { 0, 0 }, + { /* sentinel */ } }; /* pll clocks */ @@ -120,41 +120,41 @@ static struct clk_div_table nand_div_table[] = { { 4, 8 }, { 5, 10 }, { 6, 12 }, { 7, 14 }, { 8, 16 }, { 9, 18 }, { 10, 20 }, { 11, 22 }, { 12, 24 }, { 13, 26 }, { 14, 28 }, { 15, 30 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table apb_div_table[] = { { 1, 2 }, { 2, 3 }, { 3, 4 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table eth_mac_div_table[] = { { 0, 2 }, { 1, 4 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table rmii_ref_div_table[] = { { 0, 4 }, { 1, 10 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table usb3_mac_div_table[] = { { 1, 2 }, { 2, 3 }, { 3, 4 }, - { 0, 0 } + { /* sentinel */ } }; static struct clk_div_table i2s_div_table[] = { { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, { 8, 24 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_div_table hdmia_div_table[] = { { 0, 1 }, { 1, 2 }, { 2, 3 }, { 3, 4 }, { 4, 6 }, { 5, 8 }, { 6, 12 }, { 7, 16 }, { 8, 24 }, - { 0, 0 }, + { /* sentinel */ } }; /* divider clocks */ @@ -185,24 +185,24 @@ static struct clk_factor_table sd_factor_table[] = { { 280, 1, 25 * 128 }, { 281, 1, 26 * 128 }, { 282, 1, 27 * 128 }, { 283, 1, 28 * 128 }, { 284, 1, 29 * 128 }, { 285, 1, 30 * 128 }, { 286, 1, 31 * 128 }, { 287, 1, 32 * 128 }, - { 0, 0 }, + { /* sentinel */ } }; static struct clk_factor_table dmm_factor_table[] = { { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 4, 1, 4 }, - { 0, 0, 0 }, + { /* sentinel */ } }; static struct clk_factor_table noc_factor_table[] = { { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 1, 3 }, { 4, 1, 4 }, - { 0, 0, 0 }, + { /* sentinel */ } }; static struct clk_factor_table bisp_factor_table[] = { { 0, 1, 1 }, { 1, 2, 3 }, { 2, 1, 2 }, { 3, 2, 5 }, { 4, 1, 3 }, { 5, 1, 4 }, { 6, 1, 6 }, { 7, 1, 8 }, - { 0, 0, 0 }, + { /* sentinel */ } }; /* factor clocks */