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: 12735903 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 53DEBC433F5 for ; Sat, 5 Feb 2022 00:54:25 +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=9zGUnaCaDyxlAkmmewIaEx3mRwgaUBX9k9bBRVqJcIM=; b=ALE3OW6+TVQiPf Rhq97/Ab3c0pygWIY0Xc5b1cqdHNcLnwy04RpgwiXC9dromVaKVeDE4YEhHuDCLaD++I9qPB17H8/ 8wuP1mf6CSLJ2v4d34D7mJ6S5RD4OmtbqPxDwG3jFCBQvM11eJHta+JfYqPXL0hWGJSF6T5/UhcbP QJd4TVERxufCJxITiSZz6iH8BGJ0p8HvIhrSJv6TFIvvp4YLHGI95ZRI2hdZTce3QQh4zNXDbfuxz 0PJ7004VYRwpajt7cuSaL5HVbDirGJHnIcEnd6l30AVivmav/O9n7bEYFwxtJ3pP05cUNHTD2pk/N T3qELeTCuMFq8d73w4ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG9Jr-005sgt-Gp; Sat, 05 Feb 2022 00:52: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 1nG9Jj-005seM-Jf; Sat, 05 Feb 2022 00:52:45 +0000 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.neuscha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FDyXmHo5xaofzWDuFMlyCPFj8+YnKMk6s9F6JFaQvU95B MUYhPrNbvCC6a/DfETNoY9lPeTTOmDxgW4wlvsgLCn7KoETfx7ACuTHBuO8W6n97EbRZFAHwB wGbiGnUmonBhv747KtvYNRudbVR38iYxdPL0COxis+BPmhi50fqkin3bgGFcP4nOvXeyA4Q3P sQKBEuhuHlNyUOjjXEGQIKg0Sfu13dlvBL1zuejad/Dr4n9T0G01TC4vIummhmiuwHxUNLA4y e+qZakg82aCgaBIFkUCsJZCnzkC/ufn/2mwIR1OMBTCt79j2UL7jg8IbrDuU6gnJNihkfj2lh /h/2AuJEwEbkF0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_165243_964557_2C911FC0 X-CRM114-Status: GOOD ( 12.60 ) 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). 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[] = {