Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp863582iol; Thu, 9 Jun 2022 16:08:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnrz+MzxU2gf3NMRlogJGEP0U6QHaq5xUSj0SgtsDLFEkLCAli2EOriS0LZ0z31Z/TKNqI X-Received: by 2002:a05:6402:518b:b0:42d:fe74:98f9 with SMTP id q11-20020a056402518b00b0042dfe7498f9mr47852803edd.371.1654816112090; Thu, 09 Jun 2022 16:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654816112; cv=none; d=google.com; s=arc-20160816; b=S4WTPFhf9v3gICAUzE7BuP949TXFwjQzYiRUl0hIkXnQwLcOnxMxDZIDnL/CcaOGrd U1lutOPb2pQWh1C7Li4WFG20Dula6jpBTCdmOJwiBMpOlF7QuE2HI9RMYo6x92Ps64Ip N4YVBj2dkFS1u5wweobdcw0LMZQEA0JJPYMO83KxK98Cc7L0b/k0vwiP2eFvpQPU5G0f 3RYOY7M7q0U9NuJSTXZ9+81aFFc9ypfnnK01fTEnpCKgaRA4ec5UNsJaTxyQnTpVsBQw ZGLpCuVwwq2U3lXt2muieZxTjS1KCniFWGxik53xyytIJ4rnaCgLSqp2NUb3EFSnH4RA PTMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QBqjJZZ0M+7Q/xVRLShZPGqqDGt9J93+4pKuC2SGml0=; b=dZCK3lk6xwQDH5s7e8kQRnxr1QmbyMougVLBnfoqbRF+CR+xRb/WLSRpfokUpNpaIu ovdNTJ5g847xzK4vQHR1LUwxfODL7dVYKr00cKiIbL8Sgmm4o25EQw6ZTYhzC2NtK1Jx 3QLg1PMwFON26RBBgeNRi0kj552p6vFK7dzez5wxYmUQlLNuQ7CuC/A4vKPaWPxzumRt deNCzwgcIN4aBXSrxGHXGjxlJG0+/Lo+eGQgKhD2Sfa0rR1C47zW2ZuIXoT86QE15Wzd 4xBNQrK92xO6ULhBxF/Ra14OV46KefzluUq6a2KXO5pERq99euNkTUUHp2oS8b7vlCml 9yWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UNrAa2wk; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020aa7d485000000b00418c2b5bdaesi25702840edr.144.2022.06.09.16.08.06; Thu, 09 Jun 2022 16:08:32 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=UNrAa2wk; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236870AbiFIWm6 (ORCPT + 99 others); Thu, 9 Jun 2022 18:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345786AbiFIWm4 (ORCPT ); Thu, 9 Jun 2022 18:42:56 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA5925A82A; Thu, 9 Jun 2022 15:42:55 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id a2so34047035lfg.5; Thu, 09 Jun 2022 15:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QBqjJZZ0M+7Q/xVRLShZPGqqDGt9J93+4pKuC2SGml0=; b=UNrAa2wkcgxy22e4V2fpziz5kwLT8g5bDgzeWx2lZHm7Ts2YAjqF2gn6eYyuQEmC2Y nIc1AaLG9N8a2eP0KogTlMQD0N0D+3QN3ZvLEJfn0La4yC4AFw6HT0Q10hymcLhmUsG0 4X1mixRHlnny/4TsKlD9WIYKDQmKsLU0SK/fJMWD66OqpoGwnj4gXCGk3+2V20YLXPcI VvWsRkTtpSZ4Dyl0H6WZ63pKI7ROMcLhKTuZgGF5XPlkM3YWT88UWZGrzCgGQmgys2bL swXJd8N0IUyLGGlcCXNzqA5AHyq15l2AB1+/LqN9keS8KD96M9cAj7an90eW5KXVKb7y l5Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QBqjJZZ0M+7Q/xVRLShZPGqqDGt9J93+4pKuC2SGml0=; b=0dFxBv+GT5OMGJeOtH/FcpFvK162g9dQHAcIuSaCEkm8Z3OmJ6ZKgznEq1H8bWo3Nc DI8XVyMoYYbb0kDnCZdcoKom1QxzUt+zXdm5H937XYChaT/yxhngjhB1639ji1Cosc10 5LF1pZBwfbNHNR1QuIpoKMRngiO0UJmLyXwCXmD2H0xKVqH2CGVurLW+19C6xKd3w9mq h+FtpzTXHWJjAWsmnEV34X3/LV+ASpQ2AASM9M+lwchrKfeJJo0u3wMypV0kWT5p3bmL cJefdZv6JLKcCBJZnfOowIRrRcXyhAGL1KC7qtrs+48s13EItymfe42aSEbcXoNTAy+Y AiwQ== X-Gm-Message-State: AOAM5307TuhHjQ0sk16qZyRaCLkBWyE7Je3K4JF3wLnRD3NiQN+KB2oP W9IUpIBm2AxN3qeGwuYHcSqq8ktyDcbz7cf6JGY= X-Received: by 2002:a05:6512:10c5:b0:479:2de0:561c with SMTP id k5-20020a05651210c500b004792de0561cmr17131263lfg.536.1654814573393; Thu, 09 Jun 2022 15:42:53 -0700 (PDT) MIME-Version: 1.0 References: <20220608095623.22327-1-tmaimon77@gmail.com> <20220608095623.22327-8-tmaimon77@gmail.com> <20220609221433.B8990C34114@smtp.kernel.org> In-Reply-To: <20220609221433.B8990C34114@smtp.kernel.org> From: Tomer Maimon Date: Fri, 10 Jun 2022 01:42:42 +0300 Message-ID: Subject: Re: [PATCH v2 07/20] clk: npcm8xx: add clock controller To: Stephen Boyd Cc: Arnd Bergmann , Avi Fishman , Benjamin Fair , Biju Das , Bjorn Andersson , Catalin Marinas , Daniel Lezcano , Geert Uytterhoeven , Greg KH , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , Jiri Slaby , Joel Stanley , Krzysztof Kozlowski , Guenter Roeck , Lubomir Rintel , Marcel Ziswiler , Michael Turquette , Nobuhiro Iwamatsu , Olof Johansson , Philipp Zabel , Robert Hancock , Rob Herring , Shawn Guo , Tali Perry , Thomas Gleixner , Patrick Venture , Vinod Koul , Will Deacon , Wim Van Sebroeck , Nancy Yuen , devicetree , Linux Kernel Mailing List , linux-clk , "open list:SERIAL DRIVERS" , LINUXWATCHDOG , Linux ARM Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Thanks for your comment, it will be addressed next patch set On Fri, 10 Jun 2022 at 01:14, Stephen Boyd wrote: > > Quoting Tomer Maimon (2022-06-08 02:56:10) > > diff --git a/drivers/clk/clk-npcm8xx.c b/drivers/clk/clk-npcm8xx.c > > new file mode 100644 > > index 000000000000..40340c3611b5 > > --- /dev/null > > +++ b/drivers/clk/clk-npcm8xx.c > > @@ -0,0 +1,756 @@ > [...] > > + > > +#define PLLCON_LOKI BIT(31) > > +#define PLLCON_LOKS BIT(30) > > +#define PLLCON_FBDV GENMASK(27, 16) > > +#define PLLCON_OTDV2 GENMASK(15, 13) > > +#define PLLCON_PWDEN BIT(12) > > +#define PLLCON_OTDV1 GENMASK(10, 8) > > +#define PLLCON_INDV GENMASK(5, 0) > > + > > +static unsigned long npcm8xx_clk_pll_recalc_rate(struct clk_hw *hw, > > + unsigned long parent_rate) > > +{ > > + struct npcm8xx_clk_pll *pll = to_npcm8xx_clk_pll(hw); > > + unsigned long fbdv, indv, otdv1, otdv2; > > + unsigned int val; > > + u64 ret; > > + > > + if (parent_rate == 0) { > > + pr_debug("%s: parent rate is zero", __func__); > > Missing newline. > > > + return 0; > > + } > > + > > + val = readl_relaxed(pll->pllcon); > > + > > + indv = FIELD_GET(PLLCON_INDV, val); Best regards, Tomer