From patchwork Thu Feb 3 14:21:50 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: 12734201 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 8F9D4C433EF for ; Thu, 3 Feb 2022 14:23:58 +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=O6z1thSPTk7ZSFQ76pcTB6BWcrYQ1J1VHM/tysfpaio=; b=rVlYkGDfk32eg+ lVHbv/vH6TO5Tq2JBVT5XlPTfm+gYnymhWqXYrUX3+PE6F7teOisb+m7Xcu2m9y+2y4hxfx/OWUQr IiYLEtfjxiO4Lts88j7sT6I9ZcBWGxh/5P1ECWQpP+G6eLbgbtVVRuRkpa07ESaRCToVboNDXERLo nyrfhgC3hC/E8O3FoIEuhbxe3bB/792ZKq2opjZGDwx53TdSEvd1eYPcKLLUGZyLj+UWzIijUalVR PppmEA4ldk2r8OuYAGI3dF6FOxWxJO506eehV610EcJU/39Y5uaoiHKWjE9H8sfRNfP7o2GZgSiuH WtXC49BwXmfG3uug3u5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFd07-001Z1A-T3; Thu, 03 Feb 2022 14:22:20 +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 1nFczw-001Yxm-Rz; Thu, 03 Feb 2022 14:22:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643898121; bh=IwKkj/BLwI+wmRlocvg06uGH0YZhFXktrsLGe8KkwjA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=LLWd9XRTV0wWy+0KLyKRT2c4zJazXAQVSbUFKR1+5KO69z2Si61xH2lpktrr0oo6U 7NQNe2Yw5Wyb0hEDKlz9pG7qPgdOmoEmA5y37hXeNMZlqS8cDrjzy4bXzuvTLEwG17 7exZ6POO6oIGXxv51H1/Uhb/FXNsltuaQyCSSLd4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([185.66.193.41]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmUHj-1mXBRR0vVx-00iTXm; Thu, 03 Feb 2022 15:22:00 +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 , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Saravanan Sekar , Parthiban Nallathambi , linux-actions@lists.infradead.org Subject: [PATCH v2 1/4] clk: actions: Terminate clk_div_table with sentinel element Date: Thu, 3 Feb 2022 15:21:50 +0100 Message-Id: <20220203142153.260720-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203142153.260720-1-j.neuschaefer@gmx.net> References: <20220203142153.260720-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:e3ZwD+6godoexPIgzLeyCcdjalBbysuOdI0VY61Qr+RFAhldzmQ mCnqsUoqmLq3aGQtbC5TVo2sdLz7VtUGBWerPZKpzetQz9qGHC2fscRftvgoy0aGeNf0tYd m9AR+61O+BZJ6TvvTc8DexLYIWNAFr4ET08P1EeRzhjzGEb0mbkxv5kZc4Iv9l7P4tqpBJS px8d5Pg6Zd/IbCBzG+aYA== X-UI-Out-Filterresults: notjunk:1;V03:K0:xKnEVUf1jQk=:6yq0QSAGy52oBH7w9Ix3NR A1xZvbrsCqD2x0o3+9A7hvF/TT7DxFMMCExVMO8S7qqJh0e7aci/LqM/FR+olsYKjFz2nbu44 NTjnJ5WcxuMDtSW64wPD2s0+wRhePYZ4buuD/4trbF9H72uGA3fsOBhjuuZaV8s4N9QZeHhNY hChjf20TFTjSwFvpWHSzMsokWIPLVrphaYj/bzf65TqVw51GXzfs2UjEo5kDGJuU8hGNm26I1 iNxMPVabZHFe4NiGTNQViXJ88KyZJt2cr/UbRxslsrk5CT8v/tRnd38WiFo5d5mDwJbK/7eYT QHfma2BT3AA9tPpGqJMRb8yCmcVRpnydJ/UUOaAmc4BVNRE2Ws/iY9fnorjVw7B8NHK2RxYdu SiWgXx13TYmyaOAR4jadMVTz/Y7kNpaIzuloOnvZUrvZILz1De6QJ7NcmNCCkR9SQnnuldCbh kDJRd8Wkggls3o1ZTk3r2xc7nPig3VEFgtZeco8YZ2ayJDrfCpy1bS5pxp98SZs2JrYst2zMS QmdrBwSiNsQx8FqclYnLuGsZ6xkFxFvo1UeE+1SgGBcl7UluMUBXVsISxVxiXLcZ8Ysv15Ci3 4nP3hE3ZEJx9XDzmxJbTBz++KntuwXEpSkp57GbVVzPMOVg98KhdwhRO3xYEkWS2ozlzbVSR1 XggTbo9nK2DCrUHw+7WwFy5e0Esoczyedo4KfyrzSJ3qf1DJ9PvP5wJcwbLDxGZ4c7qDuK1pw 4Ke2V1VlqkPItZcmGIzWE5/lJZgi0HL7Fci6YOP1NHYLfRY1tPVjm/KCZ/zycvJ1cQo6VkaFe jDnItKShn8+evQ58Vsx5Lbf8PvjsTt+KdvgjnVs61ZHIVJx/+A= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_062209_223213_D8A97C48 X-CRM114-Status: GOOD ( 13.81 ) 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: 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 --- I'm not so sure about usb3_mac_div_table. Maybe the { 0, 8 } element was meant to be { 0, 0 }? I'd appreciate if someone with access to the datasheet or hardware could verify what's correct. v2: - Add Fixes tags --- 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 Thu Feb 3 14:21:51 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: 12734203 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 B8A07C4332F for ; Thu, 3 Feb 2022 14:24:06 +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=0IvpGvGAiXhuqn81R7DxImdY/ISaCxZsfNlWUHWEK3I=; b=PtDjHgTdWHOvMy PxuU7m4UK4FHgYozBthpjpjjhZz/ZT9QwFbx0UiEKXgpzjchiYQyjoQBw1U8r+nxuuUhNlZAiRtWY ZKqU+gbmCawCnA6ynMdeNpY4Y/3/K0xlT/j+MmqyImM6Ye8dOgDwyaNLKYvOjLFy2Uh3moKdlbNi8 BJpDgOK6L0VO6yRbZ8zVNl8Wh35D2X5DKyj1Z56DOgiww4YEGMR7g5BQeNVcResII6t4kYfxt3YGI Pg41KdjaABgxbJoKX0rtJFzVMtKvfYtiA72vkCU4NrNzDtNWzf6jE98a78s4C18yemUVY+a/KaAAq Vr/r2SYLX3dphQ7HriDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFd0S-001Z8b-RX; Thu, 03 Feb 2022 14:22:41 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFd02-001YzC-7S for linux-arm-kernel@lists.infradead.org; Thu, 03 Feb 2022 14:22:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643898121; bh=Y98HJHV8+2rVxkqGSVZigBWQC8nzfWCAs7dZjAxw0OI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=RRg+8V3cTB+jtLehnLPVdDAxHasJXMj1uxdnPDNsoj9X78PAmyy5KH6YW0CujVwJO iCtrsUUg5ZFMfICWmqPU7rTulQZbc9bnXUItA2JgdfRh96AmByY6rxtmy5qUR9oGuF r65kHs0VoDp0hhf78BM+4+hi9Np3kCA6QJoDf/2U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([185.66.193.41]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1ML9uK-1mxPel2pxy-00IGFv; Thu, 03 Feb 2022 15:22:01 +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 v2 2/4] clk: loongson1: Terminate clk_div_table with sentinel element Date: Thu, 3 Feb 2022 15:21:51 +0100 Message-Id: <20220203142153.260720-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203142153.260720-1-j.neuschaefer@gmx.net> References: <20220203142153.260720-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:rv+u4jGWT5neCxMqV82upwIemBRJVDHh4dqsB1QqDbsID7nj/ch izzM6d8l6xLa5ZRF0vquzrVPAis/7UEDmuLDp68anGxYCkJzt8JjQfYg/fkqEWBsHLsr9WM dLYA6P9vSTkvMuJiqb4h0Uf93u1E92Dsz/FlD/KZfKUsV/tgRteLCjjPLPydKv4Ue171gKO fS9dcmN1NEPwy0czevU6g== X-UI-Out-Filterresults: notjunk:1;V03:K0:+DKrW0uN3Jo=:8rH+2OOMjQ4ZRkdoKCfdd/ or6T+KQJjCAbI3ZVE1Q87xoE/UEEPYcLwHdBYZCNJPBOQ4J7+Oppf6TVuBjRr7YZmQaFBU7Q1 HqGCX1Q9cZu0KA708xQYiyOtZAAT6mwO/1BSGYBwJNRY6Y68Aq5VNMMtH+s5W7cvai3PoB2oh dd2TW3VHzqzUy6SFVKwKJ7Xs23C5qgHYIheiP3jXQsHXn/Y1bVyWsHTDMXTB/xfWp5jTXEwAu J9YX61HFCBgLJJFSnK+54+7u0o/XaoV2OVSFQ9JIiqFBulpBjijiiipWZ49wWdQ0cTJ/bBaCx RuPaLMhySRWbhDBWpqRXeclAwL8BXZhjnqBuQSq+d94GksnKP4BdB5SKokRuOzZuirnqYqpNc YEo+Ss0+WFuScg7Z6YmsTfIr48SMz04gErGcSCATFnCBtxSIxuKMsDSgR8ZYiBlNFMYryBkKb 40PE7VZ9ZgQ7GTpF06t1BIMDuk8LA/Wq44V6XRAhk2XTM/cavfX57vadLlSZxZo7+HmCNjXlO VpZ+7kz/tM6+rPsLsK4oyYu0jgQZY7PObEpYSbuJyIoEAxiStUE9TcS0jG54JlaLyqhh+NC/4 L8KLsFYdMJJG5qZKbIHR6bd6iEg3DeFg72DeGAQihbp/b6lnmk7TCNZt8u5AgVqz8jgqipBeQ oLgN77jlBeR+a3CnGGXs1+W3/t6qbTtgUa3+HPq2vId4J7mu5MLS6SRslxef1lDLrx+ezMLq8 noJmqBmrdhApwaqZPagPwgnwtHpdijpH+CQPjgypUA2PCQeJc5dzT1vxwjI4xuoMAoeKbpITU TiWBrg69WGfrLq9Zwqli+AX0Nq5yDVquI9EkpJPw1DTzQaoHnpimq7/A21ur48sLAlgPW9ix9 3Dcu+hJ77534PNQaZLFmhpLeQfu5n8uXxk+aICRVMx1eMJmI7Ad4WOOMvJx8caB5RXHp2VLgo yA9Qgt0dhgP/JvE/Qm6T96YHxEN20MZhp+OZYZDNdyElTD/GkthosW4M2NZUV+X0GECYRndxZ lLyXkZunnaaY65A2a4FC/0vPOvE6mVKvRs9bV5tvkqUNSrhfRJ2/DnpMVsqm4hsy/p7J/xFWw /cBSgsmrTCi9a8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_062214_601638_4051CE76 X-CRM114-Status: GOOD ( 10.56 ) 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é --- v2: - Add Fixes and R-b tags - Change sentinel element a bit --- 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 Thu Feb 3 14:21:52 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: 12734204 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 D3160C433EF for ; Thu, 3 Feb 2022 14:24:19 +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=iAXbPduF4yy6BSm1QDFe3bYtiLkeNBQnAD0KjV5AnzE=; b=Azb/JiUT90e4kK Dlo/el8g4Mz8q5H/ZZqTmPfmedNFRwJ4SshnpXOVGYtaMDbSC76z0pYOvmQTpjddg3naWuwl2Jcw0 I8t98yktVMeA5TULYVgzFGLrth0rV1AK2s/4FpyQvJ/24jHKJx/9J/qXUXhYXnnDIcbtt3JVOdoVz o/cQcOwcHGHAc/tNcPfhFeYEK/biP8sfBGFqfMlH6nwlBNviFRi3SxaNcZkIf19LkZzdez6en9yff 4JVFH2j9oBD7UGJu9WuHakHDBvw3aYg4k9hFt/NLWSrUIcoOoHEIhp528bcKqxfYI3e44u20f6bwi Y2mO3E1vt7iSCUSYuaBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFd0d-001ZBi-LQ; Thu, 03 Feb 2022 14:22:51 +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 1nFd07-001Z0r-JJ for linux-arm-kernel@lists.infradead.org; Thu, 03 Feb 2022 14:22:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643898128; bh=5x3pHxlLl71DgoSFcmjLP8kuMLdBgGXQRD4L2C0Fmqg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=f5/8YdQ+ifAou0fOsIDW3+pcUfjOaWGnuNgq2rrX/wxIDTvJMADSDxjfOwzqNoxy1 YZ/r/nOo5ZMr7QS/NKe4EYoL0M0mT8xp94Qb+RLtZhNyXA6o/RX3VqmxA66byhDKvE tuTlirnr/pKIS+S1zmgdR1J09nozU1zy/QdlTdp0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([185.66.193.41]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mj8mV-1mcjLB0OLV-00fAMz; Thu, 03 Feb 2022 15:22:08 +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 v2 3/4] clk: hisilicon: Terminate clk_div_table with sentinel element Date: Thu, 3 Feb 2022 15:21:52 +0100 Message-Id: <20220203142153.260720-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203142153.260720-1-j.neuschaefer@gmx.net> References: <20220203142153.260720-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:sR+ZINOmGT6bpT/qa+XgvVT6K3G0USPH84cYE6Zln9QEMBD4w5I WiJH9nPZQ8s0k9V1IJynvsBn1KQggumwBo9Ks0RpiEN/EXjzMc7pJep3pATQUvXLyjwYCwz 6hZXRKPNbxrixNCMEzhn6YpA1a/0UI3bIf+tNX4oblGaBHB3UJSi8wpZ4liikfxEfONZtNC zcLM85edG2eDjKzQyzSzg== X-UI-Out-Filterresults: notjunk:1;V03:K0:A9oeZwvV0xw=:W/5CkOXPNEYWRecl4/NwRc +JYRzVCEI72+bd5FXOxWewXOe0TPNBl8BuKN7Ll9VrdLYrTUE8I8rbZUER9AcnbA/dQzq9fFe akXeA4uRvhfo6988AUzhLwSVohyfy6fcmiDdLZGVQck3FEztyrt+C/Vvzqc0RFriTiecsVH+f Y/06oXTleOpo1iTdu90hW0Ttcs8Fyq/OEbFkyOqckeFJPoGV33jV9s/ujeTlbC2O8DcwFdPS4 c2m43KZZV3MmjJrcpb1iJnoUzKvACdSrf1IyxuO9J4cPUdY2i1TvYefhkAOdouv787m2DjoHo Z4SMDKE2gXNsSZESxSR/3CEeAIO3BrXDcyGYR2GCKP+X3hH/I44sWy1kzgoWCaCo+DR/mwAm1 st0ohQj1TFL51tlMGXjhRwwE9VwGZnxMzKI07BoOO0QYiPT/lCNnXzQcVjWPHr2yXUyku7UQg rKglxSJCbLYcyjqRIPfz4T4R5vGRG6stIH1RH7rmMd8oOQF1A+Stie7q1oGTh/HrYacEznsxR ymvW3s5gAjQcTxnH7duHGNT48x5ZS2YbmGdYlIRRefKnh9ABuWY9R671/77Ghlsn7vmxi/687 lTsEMuYZJcnDM8O5DpCpBmSkNCLRKmlg10h3hnButbIBdJ7daD7uqZurXBz+6JFzQ7agZ+gQO ESAniDQNT1bU4b4Fbnjxa/0y+g7of2XpjfDhtDYJMw7M8CNxVcgeDnEDoVmxCH0LImasCksnl J9tknL/LJqJrQnJgRyGJ1ihbPdZ5MM3w6SxVgtqMX16pSGFkGDwKlxssh6LbrnAgj5sOTjq33 /nQArrO6gAgEIazvKMSxTD2xOoreknloX0sDAcizFwI+CvUbl2AHt4tm+cUBPETwCCg1+oC0K /4lk1o0/tgVqmI3ZQ+naEZYxaelGASMJ4N2mEg6xe2Kddp2IRZTeJCGYhfOWBw1SyfPhEiR9o yefaAizcrhXEgF3mW/spAIFmz9SSedreqOC2/JmNp3vs6JC4spGPlM1VsbyZJwaGYHC4EGXwq JxA5yNal6yW2+MB3rJL5HJilKa00MgaPJQGdHZozYCnRUIA1lN/HRf6Irs8VPjVkD+xuh58uF hzYQ72C02We6WM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_062219_951615_D2E7664B X-CRM114-Status: GOOD ( 12.23 ) 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 --- 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 Thu Feb 3 14:21:53 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: 12734202 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 EEAE3C433FE for ; Thu, 3 Feb 2022 14:24:01 +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=9a3L6BsdDOadU/QbbA83cb2jfOrWPXhJ0I5jxsrXBBg=; b=G1DwS8R68BolfI UojkGZIMyh9RfY5/IZf/l4Kc/xxGwGXvwj9pQBJbh5ipBCtFeUAgoAENniki07IGD+vBDNIBnl1cv iBhcwYU/zUSDxdHhi6Maa7+gQiLb69BWeDokLMn86hlGoOqk7ryvLHrrq5Hf/LML5A1bH06dMe0MN hlrmZInD6D5hfglFEzHkPmIdsY8TRH8n7LPtFD1ylH1hJyhDcWtvQmk1gCDJfOCYY734yJPReHgMi zr8Rrz7l784J3CMtnwmeIiAnnlPC1IRgz7uA5ua6wduNFl2NaCthYZbfq9xjl/Yg3Sd5qEd46uOUy 7w7AHBiUem5ktGsOTS8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFd0I-001Z4l-QH; Thu, 03 Feb 2022 14:22:30 +0000 Received: from mout.gmx.net ([212.227.17.21]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFd00-001Yyy-Vo for linux-arm-kernel@lists.infradead.org; Thu, 03 Feb 2022 14:22:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643898130; bh=s5TWocQnifuLlbQy45UKIXlTdxwlmwlpmSTvwvw0mHA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jwL/VB9p0i/TJeBbTULlhzQtUe7cCb/q8Q0+dhgiUeMeJ93pW3pZZEpUGChzc7UOs wE0uVJglnRuPoZm0I0F+We4Go5kbK389qariL+nQhdKOTb+vKamFZU5l9HetBkHIUW 9ukZ8Vgitpzvgc6n5z4vvQcLd7M1w1DmnYV9/9FQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([185.66.193.41]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8hVB-1nAyA432wL-004gDk; Thu, 03 Feb 2022 15:22:09 +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 , Mike Turquette , Arnd Bergmann Subject: [PATCH v2 4/4] clk: clps711x: Terminate clk_div_table with sentinel element Date: Thu, 3 Feb 2022 15:21:53 +0100 Message-Id: <20220203142153.260720-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203142153.260720-1-j.neuschaefer@gmx.net> References: <20220203142153.260720-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:gAyEM69PgyfCPiDmJpqcef8sPklrNOg9HX/TNXJYBajcoyyfSlR oaOfjeh1k04n9IrDpnlxQZOxkxBy8bQ+0myStyQAxPoNOtRUdwSdiF2HxqtQ/HQ/NkoVgAd 3ldCOrL7hThoCn9+iVHbKojNnprr4lEk79+t8quGzZxegUkSfglg1UNs0GWEjgI6PI6OhCM eX5lmhsQh2nz4PWUVOkHQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:NYPg6mR/Ibw=:G80UHyYLkZ1XwFVfIMd3SU UoqmN52WNUhvx4VIJ9UeIOC6z4RArx/p2Z/Qrip5EZOlHxI0sAIkVLyzVTGdHjgrwbBIyilLN Pw1z8TmSel5wC63jASogVNsIrtfaxk2hJmeorMf/sUssppnH328utO/K4Zs03q2MNJJrElz0J x5jTvIMYCz6IUP1e/1NP8mYWJ/5pABN3fDxXXzz665a39qH/1iKlGH9WaCqNQrHd9TF/VWVOf 7YCQRBLddY+bq8uVcLaB3jIScGgYqpt6lEd10kcmPPoXrTjTbRCszA8TQ0v7Y5I/nBmjQvEfV xPTPL5pRAE0NIAvM7yrxpU7b3aisnou7vCmM1p9rMKGpmj8ZcxiZ2hgCIq7/gES8VyB4FWWtW AE8RUQ59QpzYRjwj0YnD7N9jISJYOXHZT3ure7AM1Cvfeqy35/bGX0/XKjdjy/MITHF4+LyKB sMcHoE+wh+AGxL1YOT5nH4vtVRz8oLrtNgJkKOpwl3Yj3b8UugS2ZN8wQJOJbPPPsRdIagcl6 HKpagFutWiPYE1Rb/05iUg3+Tg1RXLrVhAFgBkKjVvJKB/L9LyMN+kVb46Ta2KXn/lcP1AdDk 5EVwkionVVKctSEXZscyuyqAEiSU2j4fKR5S/kdrHwc/I5bpox2U0afpX8luVRKFkRvBVyUV4 tO+l6/XbrKH9qCUGIU7yQJsgcy9PSbt76QW757oGJn/jJbjvT3jHcgEN6QzOkT7rA9DYSSyIt RWldb5MVm/3+u5qt3KlUqZALu4ZRu5zP6Vr5Th7YVf1nawZ6dWHEH+YH51CqWuxOMqUDgQ3GT LH8V5lkQmIIMMl2C8vvPF1kM8DvEuMZ0AEWWu6xMd8YzA4L4waGeMYAdBqJHbtlyVi7uiVEzh OUyfQy2cWn/RzkOPQN9NSXk+6bJ7Gr2mpz/oqRYClxA3j3+JZpDmUA61cr/idEe7VePWSlZf/ zbI5N6ZUwBcTkHeDUUXdWEyRwYw8hd0ZLnla/YdHcN4PAFJ0qbGcY1oWApu8RtYGm9gzU1Pw2 uhaJxxTF6PjzKAjydWq0C32OHgVcdHmlGvmCJFkyXSP6dCDBkgqQKZEpZMdrkMI5qkC49F/on joLyE6dXBBXcog= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_062213_337794_73186903 X-CRM114-Status: GOOD ( 11.42 ) 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: 631c53478973d ("clk: Add CLPS711X clk driver") Signed-off-by: Jonathan Neuschäfer --- 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 {