Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2625635pxb; Thu, 3 Feb 2022 10:25:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhgBNjxpAqGhWv94HpgRAEsO8ccsKr9zXZU1JYYY/p/hlwmGG4/Zra69U1eC4Afp9gOai2 X-Received: by 2002:a05:6a00:10c1:: with SMTP id d1mr35714816pfu.84.1643912720280; Thu, 03 Feb 2022 10:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643912720; cv=none; d=google.com; s=arc-20160816; b=z7NTpB93QFBHwnDoQs/u/N+LFneGScwi0gDM6F7n4yz5nhZPdinn2nYGiEP0Sc0F5j nDsUoRYCZvZDBKEJZSegSZmWmuzi62UWM1ZFtb3J76Uit0FhJ9zTntQS6VXXOYBorXX5 B7W6us5BfY1+5AeJUpPOoG+KDL//HCf+9O8s2+ptRucIweXAwAc4xXo+T+FXIe0tdaOZ zSNlCoi72fCP9PIsvAY0BQLYJMAzcX6PH3JvSNhguykwkpSeiE/g5f3ZY9VbdpsSmYEP QBAxWVYrqdYn2iEoklSYD87ZmpXtPdLvJ9/B9fSnA83uc0tPhrU3BaNn4rnmmu6B1qlC /CIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VPtimEFTAUu7GKlMN0L9Gj5tCVLKWbC+Fugq5eATVZQ=; b=jP/5dg5CKEjOqjNmhX8awLX7c4eto1b7PLxR4CT/d0Ya0ks1PfkbKrjkJ1O9gMB0zz dnf/PdCSGXQotY11sUd8vwnuf+JQxHsGwFwCtclLG/eLSoq4xp4m/rLZJSSLPxun+cg9 pIAY472LOhUfpKI45o7k1CwjGeuLVTA3gSIuBoJNWUQIjbABE3Yx2rx+vnXVkJLR+De5 CtDoaRPPFjqUhEwYVtmbAMvq4I/OWf9cEtEL5Pr/AWiAkfA/gbrvU2HYD6DZ/+B51PZo pTJYWk0OqFYrCbRsPtOOqic2iz8857/BE+9Q9UdZ2P8KJQ5cOOkev29vCarNMmT/mPQU eISg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=LLWd9XRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15si21277722pll.552.2022.02.03.10.25.08; Thu, 03 Feb 2022 10:25:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=LLWd9XRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351124AbiBCOWR (ORCPT + 99 others); Thu, 3 Feb 2022 09:22:17 -0500 Received: from mout.gmx.net ([212.227.15.18]:34083 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235184AbiBCOWP (ORCPT ); Thu, 3 Feb 2022 09:22:15 -0500 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=20Neusch=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=20Neusch=C3=A4fer?= , Michael Turquette , Stephen Boyd , =?UTF-8?q?Andreas=20F=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:e3ZwD+6godoexPIgzLeyCcdjalBbysuOdI0VY61Qr+RFAhldzmQ mCnqsUoqmLq3aGQtbC5TVo2sdLz7VtUGBWerPZKpzetQz9qGHC2fscRftvgoy0aGeNf0tYd m9AR+61O+BZJ6TvvTc8DexLYIWNAFr4ET08P1EeRzhjzGEb0mbkxv5kZc4Iv9l7P4tqpBJS px8d5Pg6Zd/IbCBzG+aYA== X-Spam-Flag: NO 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= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 =3D 0). Fixes: d47317ca4ade1 ("clk: actions: Add S700 SoC clock support") Fixes: d85d20053e195 ("clk: actions: Add S900 SoC clock support") Signed-off-by: Jonathan Neusch=C3=A4fer =2D-- 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 =2D-- drivers/clk/actions/owl-s700.c | 1 + drivers/clk/actions/owl-s900.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/actions/owl-s700.c b/drivers/clk/actions/owl-s700= .c index a2f34d13fb543..617174644f728 100644 =2D-- 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[] =3D { static struct clk_div_table rmii_div_table[] =3D { {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 =2D-- 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[] =3D { }; static struct clk_div_table usb3_mac_div_table[] =3D { - { 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[] =3D { =2D- 2.34.1