Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1227476ybx; Thu, 7 Nov 2019 09:03:22 -0800 (PST) X-Google-Smtp-Source: APXvYqx/sRrabBHB61cDhmyOVw0CF89kubbAYcsTxvwV07i4ZqeMyLmF53tJVvze6rNFzr0wPMB+ X-Received: by 2002:a17:906:1a47:: with SMTP id j7mr3963315ejf.232.1573146201878; Thu, 07 Nov 2019 09:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573146201; cv=none; d=google.com; s=arc-20160816; b=QIPFFiAoPVL5petqar3ax+DDtNwphXEVnzyF/8BjiuLu654IzQB/FCVM4+YYEmRS/X 8ICovgQqMF0ajiyRKgrq2xyyAF6nkZc2IQLhG8z4JBhx7GjGNyEn/CH8GdUabedZ3y6T CVuKQY5vdyZWWdKqIrqDuX+0WY2TxAlUnijkYfp2jREd48B0vbcAc2qlxr/Bf72eVYLF R7kckgmWMn9cRMOdv6+Kk3KTcU0YEQYFv8dXBaxNUWngG/FAzMwo0IWVVo2LWHt313BG aXvx+Qf2XlVXTjCZlT5z5hQNuzNVgW7wZCEhyLZq0cqCqmmP1A9c2QytBmPFvz2ytCsT C8eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=NiFGlXXtRi2MOkgwTv9XWTKRRpxJ0+uuohrhpnAaK+M=; b=Urp19/tXAXI/sG6W0hV4CEVbK+IAk+1RmKi0fajpwg6NTXEdZuemTDhQRIjsyNdzjF CioI4H6sDf/QR3yMALoSRnpOuU1aiEJwoJ+qdd1wJTDiW9XoBb8ot1PQ5A6Rtz+1RSae LPoUXJzlvb/3vq5u8oFjDSl4ZPweM/KfO2A+BUN2HwE2q2I0ijOyjLt9AYp6UF7ljI8o oBbocsQQ1+5nwdpyLogbbv7xv2phRxri7FYJrjzszaSWcujbUo46+Vvm2rRxPdlMrP05 5fx1Gip2/uaXTJ8MHC7ktXinHm17EkNI19sWdrBvXJV9ZK8sub4X5Xmg46udSoh6+P7c FRIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11si1816581edq.31.2019.11.07.09.02.57; Thu, 07 Nov 2019 09:03:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729775AbfKGRBj (ORCPT + 99 others); Thu, 7 Nov 2019 12:01:39 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41549 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfKGRBj (ORCPT ); Thu, 7 Nov 2019 12:01:39 -0500 Received: from litschi.hi.pengutronix.de ([2001:67c:670:100:feaa:14ff:fe6a:8db5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iSlA4-0002mw-1W; Thu, 07 Nov 2019 18:01:32 +0100 Date: Thu, 7 Nov 2019 18:01:31 +0100 From: Michael Tretter To: Rajan Vaja Cc: mturquette@baylibre.com, sboyd@kernel.org, michal.simek@xilinx.com, jollys@xilinx.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jolly Shah , kernel@pengutronix.de Subject: Re: [PATCH] clk: zynqmp: Correct bit index for divider flag Message-ID: <20191107180131.63960cf1@litschi.hi.pengutronix.de> In-Reply-To: <1573117290-7990-1-git-send-email-rajan.vaja@xilinx.com> References: <1573117290-7990-1-git-send-email-rajan.vaja@xilinx.com> Organization: Pengutronix X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:feaa:14ff:fe6a:8db5 X-SA-Exim-Mail-From: m.tretter@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 07 Nov 2019 01:01:30 -0800, Rajan Vaja wrote: > Update divider flag bit index to match with firmware. > > Signed-off-by: Rajan Vaja > Signed-off-by: Jolly Shah > Signed-off-by: Michal Simek > --- > drivers/clk/zynqmp/divider.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/zynqmp/divider.c b/drivers/clk/zynqmp/divider.c > index d8f5b70d..9e60834 100644 > --- a/drivers/clk/zynqmp/divider.c > +++ b/drivers/clk/zynqmp/divider.c > @@ -2,7 +2,7 @@ > /* > * Zynq UltraScale+ MPSoC Divider support > * > - * Copyright (C) 2016-2018 Xilinx > + * Copyright (C) 2016-2019 Xilinx > * > * Adjustable divider clock implementation > */ > @@ -25,7 +25,7 @@ > #define to_zynqmp_clk_divider(_hw) \ > container_of(_hw, struct zynqmp_clk_divider, hw) > > -#define CLK_FRAC BIT(13) /* has a fractional parent */ > +#define CLK_FRAC BIT(8) /* has a fractional parent */ NACK. This breaks the compatibility with the older/upstream versions of the TF-A. You have to at least make this dependent on the used version of the TF-A. > > /** > * struct zynqmp_clk_divider - adjustable divider clock