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: 12729245 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 77B68C433F5 for ; Fri, 28 Jan 2022 23:11:33 +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=tyiVLOm704jd8CUEyOpzv3w95nLtK0wskr33U6Bx+3o=; b=vY6z232w+JrsJX rkJPK/SwTDP4AbcPFhnJd26uzM2QSk/oQMXU6GdYArb3eATwiadDcny7jHl5dsKVX0tjBzJ4RXpO0 7/oBt+uXpyx0blCOgKDT1KR/FcVFTTBoihLulJm8xAzt/E5irWUpigTuSGOnSHEfdCKPWgkWlcAJD pv1sPUepVqvIFNEcoCUVQ4dgQQ/lXLFmVAGftO+PtHpGr3ELanFNtu3ewFA85D+74cx/2UFnxcsZG se5ulPwIlZxNcewf4YRH3GsKB77FdukNBbJbt60ifisCG43UteHpNW2V/Gw770xWN4IapwgRc4fpk JOXuK7aUHvwk22Jm70UA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDaNk-003ki3-7k; Fri, 28 Jan 2022 23:10:16 +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 1nDaNf-003keo-IH; Fri, 28 Jan 2022 23:10:13 +0000 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:ihzYKGpqwBqxqgDIEWeV0fy0JjgUcC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3Wshy55C76n10f8YB8KlHFn3Np3r/+lRI0R9dgHDYoQc9mV9aLL lEgsBoTRdTcna2MG1YD69W7I08rm5rYSllrQ3jzOiwOJi0GHS57uz8ncGHe8xR/5trBil2DSV 3rMyTr/fxAlOx1jK6Acms2B/421k5ogyCkEhiPWFeOKgYagRFaaBIQzLWnBc9SCygqP4XEJNH 0Xawu2y3HIQ6pr34RxuOgJDjAA2oyTzoeZdpvf44niPQbnrRDm7CVbQMwH5t+6QJXqeVVHAU8 I68fjYdWCrDhio= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220128_151011_926518_E4B8D30D X-CRM114-Status: GOOD ( 12.80 ) 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). 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[] = {