Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2676409pxb; Thu, 3 Feb 2022 11:39:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYMbtozPCERFd2Mug8zmVGN1c7fwqJg/HB4Zv9On4StvcGoEuGg/H1OtuV90f7eguz1D27 X-Received: by 2002:a65:5cc1:: with SMTP id b1mr29419627pgt.341.1643917193917; Thu, 03 Feb 2022 11:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643917193; cv=none; d=google.com; s=arc-20160816; b=YRVlktID14bQ7oaLOTkMMud/OlScHAwpXN2w0+n/U1H7TOgtOUZgQgzr9reofxBWwH 751R9IUd9bXBQr2F3ozZ4oLXc7CX0bKGLSj9bYuDSlKeoP6mBs6jayk7t6vLIYT82vCa 53TzuWou9ZWRXv3/leWMAF88ZIzStQZlPyK7eg74L0yuc0u/XzaKP69uYHpBsxz41eqx aNDbCXduy4NrO1ltQRyUkjT47m1pGh4kn368Q4HT/ygDCuxhKTweZJp+38z2HZ3POUSv rrVlkozcj2piV/3sXVbtCgYQCYsxFUMCaIsQIt3zlvsAL72FsRlGvFe2qyZ3sUdbEJ29 D1rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C79XOKOYL2Pwnpl/+POaA5YFhEktOApmI7ygyLJ5fq4=; b=r4qN8tPI/B1B9CLHQM+HPO/ez6iI5fSzuFzlrICqPsjSpFGKFuXNTo+ChEc2rczB1c zpxO6/Vo4OQUrNhkE1sY7fMKVKyvVO5+xVdEX/kasgFQ2z9mESdg1S8RIJM2BJMrzMBh 9am9Wg6e/JVFlbrq5x/2sTawLkY6hIsrn1MIoP+A3fl+oJbUdh6V4dwogBuPA3Wl5UnI MBbGB14Pu5jK9Sn/i79A4uxjiGrYHLlggnO0JfFwpiIALguSmpSRJIsdsX1ZcCUR76ZL H2U03PQh4ySyfi/t75wju7u53zdGOZEcJpfmVMIUq+5GXxPzu7gVWGSmihNOd0TzWkKz 3R3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NRtSFsbt; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25si25273705pgv.794.2022.02.03.11.39.42; Thu, 03 Feb 2022 11:39:53 -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=@kernel.org header.s=k20201202 header.b=NRtSFsbt; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245163AbiBCQMZ (ORCPT + 99 others); Thu, 3 Feb 2022 11:12:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243578AbiBCQMW (ORCPT ); Thu, 3 Feb 2022 11:12:22 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C7BC061714; Thu, 3 Feb 2022 08:12:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 82451CE205D; Thu, 3 Feb 2022 16:12:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A7BC340EF; Thu, 3 Feb 2022 16:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643904738; bh=tHVZdpOeaDUJxjE7UYVAKrIDf5NQfx3p8v5KExnPRz8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NRtSFsbtCY6tw10trp0cRyK09ca2gwiH/rIdXiTLJzjOGCzluAwBbkC/FOneKXb4m wyu4NLQe1771JC36tpnNVoatGhSIQBdAMx4NcHdmEH51GeEvrvf93g1McL0a8Jhjaj DfNlgXSmy9+Z626IupK/gzi9yYKOyVLgRAddCvd61yiEhYPS0ltjVAd3HmAkDgXhZA XH2tEtfQ0aPHT7W4E1jbkjBuIWG9J6a2mPnLw1mOU8wsFu14bGHddJw6OpXodxsDX9 WpVAI0ZTszicK8BqmkjzHK/QUy3gvA1cpgwneme6SvipZ9tDTww+vwcWixC/vI3gvi hNdmx75bfd68Q== Date: Thu, 3 Feb 2022 21:42:10 +0530 From: Manivannan Sadhasivam To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Michael Turquette , Stephen Boyd , Andreas =?iso-8859-1?Q?F=E4rber?= , Saravanan Sekar , Parthiban Nallathambi , linux-actions@lists.infradead.org Subject: Re: [PATCH v2 1/4] clk: actions: Terminate clk_div_table with sentinel element Message-ID: <20220203161210.GA138829@thinkpad> References: <20220203142153.260720-1-j.neuschaefer@gmx.net> <20220203142153.260720-2-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220203142153.260720-2-j.neuschaefer@gmx.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 03, 2022 at 03:21:50PM +0100, Jonathan Neusch?fer wrote: > 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 > --- > > 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. USB3 factor table is not documented in the datasheet I have access to. But by looking at the value, it looks to be a typo. So please change the last entry. With that, Reviewed-by: Manivannan Sadhasivam Thanks, Mani > > 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(-) > > 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[] = { > -- > 2.34.1 >