Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp20810163ybl; Sun, 5 Jan 2020 12:01:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyu6+po4ukTE9QjDUjzRocWmi74wU2LD+4U71TOpyRB07t1MkYozzTBWGxlVTyMz8f1ULxX X-Received: by 2002:a9d:6481:: with SMTP id g1mr114251188otl.180.1578254468459; Sun, 05 Jan 2020 12:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578254468; cv=none; d=google.com; s=arc-20160816; b=B2zxnx3BTk9NYXTSQ4oPsDxjeZcgI+KvxP/Xqfw/3waAWNXGYfMFl6J0tHEFpbicee fmhQLkuGBLp2Wn/Ol3OdagQp0195JDcZ5vyUuWAoiUIdrvpSYrtiWaqEqPVZi9kWl91X ngaxEWXG+bXey+feJdRsVybSCAqXhEJpSJMaVaUuf3XZrP8HYco6TkWR88dDzWhRvKlP 66x/3hydLnY+koWj4HSIShbzLSsK53tvT2B7k1ifr3M3BS7YYAb0lfEluhOQxIQfJSad VqgD/fQyzAki2UybPAEBwJR7RGwgLrY9DPxNJ5lVhU3N7QlM2i2s6/VTmTkp1+Pwk2MG Qx1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:from:subject :to:cc:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Zh3STLakNYo3ZjYEzPIu5PO3aV6KaMOgSb8XInc4CK0=; b=j2j3F6vGV5I7s+k5Ek2FEl8wePfoWQ+A7x6esW4DlYxp8Sn9AmwZBnkdvbG1xbhlbU xkBTgYgSaMa3cNj0iFM3com2yx6gXBpVLf0QZaxociu+lO+U3OHbucgCfQZZsZ+baeLn 0KVrPKyF/nAr1cY18Lz0MjPty5H9ZvjaeiruBmpEz31TISbCac+jKOwfnvkUgo4aCiPh YQW4OOxP8sG7bYbNHYnSPk5S6bnDRsCpTC2DYFoCd2UypIfD5O0ZbDGABEPmgemb9p0P aJeep7RQAqYrDpJGLYbWe10KqQc2L/HJ+215o59RMkclp/9Pa4wsxjxQVzl9ffFZcCjI 6ZOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qY3aprjt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e59si36862528ote.97.2020.01.05.12.00.55; Sun, 05 Jan 2020 12:01:08 -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; dkim=pass header.i=@kernel.org header.s=default header.b=qY3aprjt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgAEUAP (ORCPT + 99 others); Sun, 5 Jan 2020 15:00:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:46954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbgAEUAP (ORCPT ); Sun, 5 Jan 2020 15:00:15 -0500 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4904320678; Sun, 5 Jan 2020 20:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578254414; bh=lwYHLf05sKcCVdLUCH2JXzQ3MgAvyUcSQT+vbpbmaAo=; h=In-Reply-To:References:Cc:To:Subject:From:Date:From; b=qY3aprjtZjQVCAAxDJfvnctITRhhfl5W0ouZf0avGD0xHixzPcIDUiPz9Z/NjaKPc 8hemFhtZHD3qiDaCJW19l7J2UHnAKmuVuMLWM8RLmuJDs8w2dtAhBcn6eJjbQbK+pt MFTyjSeNS4WTXxnSIOfNvJfD4viwE2pPdh2dxlBE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <55183b0a7c466528361802fabef65a57f969d07b.1574922435.git.shubhrajyoti.datta@xilinx.com> References: <55183b0a7c466528361802fabef65a57f969d07b.1574922435.git.shubhrajyoti.datta@xilinx.com> Cc: gregkh@linuxfoundation.org, mturquette@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, shubhrajyoti.datta@gmail.com, devicetree@vger.kernel.org, soren.brinkmann@xilinx.com, Shubhrajyoti Datta To: devel@driverdev.osuosl.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, shubhrajyoti.datta@gmail.com Subject: Re: [PATCH v3 07/10] clk: clock-wizard: Update the fixed factor divisors From: Stephen Boyd User-Agent: alot/0.8.1 Date: Sun, 05 Jan 2020 12:00:13 -0800 Message-Id: <20200105200014.4904320678@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting shubhrajyoti.datta@gmail.com (2019-11-27 22:36:14) > From: Shubhrajyoti Datta >=20 > Update the fixed factor clock registration to register the divisors. >=20 > Signed-off-by: Shubhrajyoti Datta > --- > drivers/clk/clk-xlnx-clock-wizard.c | 17 +++++++++++------ > 1 file changed, 11 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-c= lock-wizard.c > index 4c6155b..75ea745 100644 > --- a/drivers/clk/clk-xlnx-clock-wizard.c > +++ b/drivers/clk/clk-xlnx-clock-wizard.c > @@ -491,9 +491,11 @@ static int clk_wzrd_probe(struct platform_device *pd= ev) > u32 reg, reg_f, mult; > unsigned long rate; > const char *clk_name; > + void __iomem *ctrl_reg; > struct clk_wzrd *clk_wzrd; > struct resource *mem; > int outputs; > + unsigned long flags =3D 0; > struct device_node *np =3D pdev->dev.of_node; > =20 > clk_wzrd =3D devm_kzalloc(&pdev->dev, sizeof(*clk_wzrd), GFP_KERN= EL); > @@ -564,19 +566,22 @@ static int clk_wzrd_probe(struct platform_device *p= dev) > goto err_disable_clk; > } > =20 > - /* register div */ > - reg =3D (readl(clk_wzrd->base + WZRD_CLK_CFG_REG(0)) & > - WZRD_DIVCLK_DIVIDE_MASK) >> WZRD_DIVCLK_DIVIDE_SH= IFT; > + outputs =3D of_property_count_strings(np, "clock-output-names"); > + if (outputs =3D=3D 1) > + flags =3D CLK_SET_RATE_PARENT; What does the number of clk outputs have to do with the ability to change the rate of a parent clk? The commit text doesn't inform me of what this is for either. Please help us understand. > clk_name =3D kasprintf(GFP_KERNEL, "%s_mul_div", dev_name(&pdev->= dev)); > if (!clk_name) { > ret =3D -ENOMEM; > goto err_rm_int_clk; > } > =20