Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69989C433FE for ; Tue, 7 Dec 2021 19:01:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240812AbhLGTE2 (ORCPT ); Tue, 7 Dec 2021 14:04:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231668AbhLGTE1 (ORCPT ); Tue, 7 Dec 2021 14:04:27 -0500 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E07C4C061574 for ; Tue, 7 Dec 2021 11:00:56 -0800 (PST) Received: by mail-ua1-x92b.google.com with SMTP id l24so346984uak.2 for ; Tue, 07 Dec 2021 11:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XUW31wASrpej0TIE+YgQ7k+2lttAbs6gSJFGK6RBLPs=; b=KotoaVRcY7w9F5qPYhg8uT5YU7vXM9Nap2d+E1Jj1bxEtOYIf9ruXQ2RAO0t2oh1Lx w1kS4gQlcV9cDX0SNOXlr102ieZAo7dWvX6DG4HYvRvBteqXn+BEqg240XGceQWaoTVE DCCPrFe/J/E5/oWvBD53iiUij4SwsK1uBtxB1d6Olh2xg74wAlivLavVKKltnXLE0SHT 1qUkOGdgwae3JKT9EC7iLcVsFbHX7Q3ZeyNwsEfuTFZYHsT6aDnQTw/qeOq7dzDcpSUo dzAscOhwDrMuPGwa/hjXZ2imTvQxdzS7Q4UvbKsiAh2ygvo0cIqjg3oztvLwmNrGuAbe TgDQ== 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=XUW31wASrpej0TIE+YgQ7k+2lttAbs6gSJFGK6RBLPs=; b=C6wkK4kjdGdyyzEEfVWSQofFNCI4GHLfLdhiGXsMMNKuYdobKo7UR6iC9WzOnUHLYf ziUkfkF7r2hNyewWnagD9PgDebNgSd1AS9uLoj835XfwHwStgrayDcIu0KoHrqLXeEMb 1doLQGYcWaz/nomK4RCN9C7PwhDYZk/ltw0msQy8vr6ijaleaxM40UcUMKD10H4G1PAG Q1r+ajH4AVxBKz1Rvnnlrqbaoxk1qjntKpTjTqGDfLO7xEy7gpYyqeLDs0Kd/c0Uq8pz 6TXx+0CEwLZlr5tbJiI4+IUmAjbU5HgbvapwxwV1mmPfBNQW2JE1CntXUiPOIbWh5Vy6 ASxQ== X-Gm-Message-State: AOAM533WaWteLcaCs34C3E24y2uZgPEgufWtyCPSmmhDEBS4Boo9bSyW jtOmxStZYJop12xxCnmaC+oiBXBqdlW/sAbuw0VAIg== X-Google-Smtp-Source: ABdhPJzv2fTwd3ja4cBNvXF6S3n5jGC34sPus7OnJwNyYndFTy2ncbXaEU8Qldo0qciKxLX0Ic5B597EeLxHxyLu55o= X-Received: by 2002:a67:3382:: with SMTP id z124mr46939269vsz.57.1638903656074; Tue, 07 Dec 2021 11:00:56 -0800 (PST) MIME-Version: 1.0 References: <20211206153124.427102-1-virag.david003@gmail.com> <20211206153124.427102-6-virag.david003@gmail.com> In-Reply-To: <20211206153124.427102-6-virag.david003@gmail.com> From: Sam Protsenko Date: Tue, 7 Dec 2021 21:00:44 +0200 Message-ID: Subject: Re: [PATCH v4 5/7] clk: samsung: clk-pll: Add support for pll1417x To: David Virag Cc: Krzysztof Kozlowski , Rob Herring , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Dec 2021 at 17:32, David Virag wrote: > > pll1417x is used in Exynos7885 SoC for top-level integer PLLs. > It is similar enough to pll0822x that practically the same code can > handle both. The difference that's to be noted is that when defining a > pl1417x PLL, the "con" parameter of the PLL macro should be set to the > CON1 register instead of CON3, like this: > > PLL(pll_1417x, CLK_FOUT_SHARED0_PLL, "fout_shared0_pll", "oscclk", > PLL_LOCKTIME_PLL_SHARED0, PLL_CON0_PLL_SHARED0, > NULL), > > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: David Virag > --- > Changes in v2: > - Nothing > > Changes in v3: > - Nothing > > Changes in v4: > - Added R-b tag by Krzysztof Kozlowski > > drivers/clk/samsung/clk-pll.c | 1 + > drivers/clk/samsung/clk-pll.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/clk/samsung/clk-pll.c b/drivers/clk/samsung/clk-pll.c > index 83d1b03647db..70cdc87f714e 100644 > --- a/drivers/clk/samsung/clk-pll.c > +++ b/drivers/clk/samsung/clk-pll.c > @@ -1476,6 +1476,7 @@ static void __init _samsung_clk_register_pll(struct samsung_clk_provider *ctx, > else > init.ops = &samsung_pll35xx_clk_ops; > break; > + case pll_1417x: I wonder why this switch have a bunch of fall through cases, but none marked with "fallthrough;" line, and both checkpatch and "make" turn blind eye on that? Anyway, I guess it's ok as is, just an observation. Reviewed-by: Sam Protsenko > case pll_0822x: > pll->enable_offs = PLL0822X_ENABLE_SHIFT; > pll->lock_offs = PLL0822X_LOCK_STAT_SHIFT; > diff --git a/drivers/clk/samsung/clk-pll.h b/drivers/clk/samsung/clk-pll.h > index a739f2b7ae80..c83a20195f6d 100644 > --- a/drivers/clk/samsung/clk-pll.h > +++ b/drivers/clk/samsung/clk-pll.h > @@ -32,6 +32,7 @@ enum samsung_pll_type { > pll_2550xx, > pll_2650x, > pll_2650xx, > + pll_1417x, > pll_1450x, > pll_1451x, > pll_1452x, > -- > 2.34.1 >