From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46681C4320A for ; Fri, 30 Jul 2021 15:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 36E0260F5C for ; Fri, 30 Jul 2021 15:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239412AbhG3PMq (ORCPT ); Fri, 30 Jul 2021 11:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239348AbhG3PMp (ORCPT ); Fri, 30 Jul 2021 11:12:45 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F154C06175F; Fri, 30 Jul 2021 08:12:39 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id mt6so15664954pjb.1; Fri, 30 Jul 2021 08:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DiREYRtexA0I7S1KnqFrcLIiv/74eDGMLWe+dU114C0=; b=JMMDofxBypjNtHZUFLmtUfIxq6MocEIgnaCq+ez7fM6xZgmpF0wJmMuG7dUNZkwrl+ Qxpu8JAOs90quA8Lg1Ax+FdKJ4ucO9pQ42IBVmiLNS3wKF6WC5caf5K2Aps7R+1+d4FT z5fe7akHfjIUQ0lmzafj/roOEe3mTvbceCeSolkw5+ECl81M19Ulg2Wy+Khvr/gBhbfp 6d6g2+YO2n67Qn5XIXDS8so8n0euGnnSMAduYc7WBVdvc6PGCXfRJpNTFj/6GCIJQv7k LHqWLzbIzudgq2A4o5geF9EwVRk48F9dou7EnrIwYAJS8wfrYuawZESi75hYBSqx7WOn sfMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DiREYRtexA0I7S1KnqFrcLIiv/74eDGMLWe+dU114C0=; b=NL8HmsDQdo8tD199QGkTw/tZiXiqmOssz1yny4YAxG/Z/gV9jFwTd27evBJ1kgRt1g iqY3yTwHLjXcfRvj0bLyP31UeRCJotW0wz2AjHzawznCqLTeDrGJQaRQDlurf4COfDrb f7JDOKMPF389rprq7st63x8LFB2YSXwN2WWat34aZ7anooovO6lDNiAEXiVbESl0NtIL WQmZajpp0K8wX2wyqIJ9kUjfhCColSzTfIgHGy5ZQV8FaaHG9YEZwwWY34Xj40mPGX2S UtTcSBhY9RYYcn+/qCgRbVAyl4PQbV112q9AqF9aG7O7ze9uln66SVpzShNq9l4LXaRg CJAQ== X-Gm-Message-State: AOAM530dzR+N7I0qcqOhBJeCvyxBGzPyVq/M+erXai3MWY55aQSd4mnZ qKTHoAlV5v7T9xoqWB5x0ljgqObGdyRxc95y/xE= X-Google-Smtp-Source: ABdhPJzZSDH5uc43hERebvJdjVFz5phkw7dcWmRs7gzFR8fSgvsEMdnv/WC92UEdmil1uI6T6wK/nbJLBIsVQelxwWw= X-Received: by 2002:a05:6a00:2ba:b029:3b0:9ade:afb1 with SMTP id q26-20020a056a0002bab02903b09adeafb1mr1413120pfs.73.1627657958462; Fri, 30 Jul 2021 08:12:38 -0700 (PDT) MIME-Version: 1.0 References: <20210730144922.29111-1-semen.protsenko@linaro.org> <20210730144922.29111-11-semen.protsenko@linaro.org> In-Reply-To: <20210730144922.29111-11-semen.protsenko@linaro.org> From: Andy Shevchenko Date: Fri, 30 Jul 2021 18:11:58 +0300 Message-ID: Subject: Re: [PATCH 10/12] clk: samsung: Add Exynos850 clock driver stub To: Sam Protsenko Cc: Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree , linux-arm Mailing List , linux-clk , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux Samsung SOC , "open list:SERIAL DRIVERS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Fri, Jul 30, 2021 at 5:51 PM Sam Protsenko wrote: > > For now it's just a stub driver to make serial driver work. Later it make the serial > will be implemented properly. > > This driver doesn't really change clocks, only registers the UART clock > as a fixed-rate clock. Without this clock driver the UART driver won't > work, as it's trying to obtain "uart" clock and fails if it's not able > to. > From drivers/tty/serial/samsung_tty.c: > > 8<------------------------------------------------------------------->8 > ourport->clk = clk_get(&platdev->dev, "uart"); > if (IS_ERR(ourport->clk)) { > pr_err("%s: Controller clock not found\n", > dev_name(&platdev->dev)); > ret = PTR_ERR(ourport->clk); > goto err; > } > 8<------------------------------------------------------------------->8 This is not needed in the commit message. > In order to get functional serial console we have to implement that get a functional > minimal clock driver with "uart" clock. It's not necessary to actually > configure clocks, as those are already configured in bootloader, so > kernel can rely on that for now. > 80 column limit is broken here to make checkpatch happy, otherwise it > swears about incorrect __initconst usage. Again, no need to be in the commit message, use the comment field for this (after the cutter '---' line below). > Signed-off-by: Sam Protsenko > --- > drivers/clk/samsung/Makefile | 1 + > drivers/clk/samsung/clk-exynos850.c | 63 +++++++++++++++++++++++++++++ > 2 files changed, 64 insertions(+) > create mode 100644 drivers/clk/samsung/clk-exynos850.c > > diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile > index 028b2e27a37e..c46cf11e4d0b 100644 > --- a/drivers/clk/samsung/Makefile > +++ b/drivers/clk/samsung/Makefile > @@ -17,6 +17,7 @@ obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos5433.o > obj-$(CONFIG_EXYNOS_AUDSS_CLK_CON) += clk-exynos-audss.o > obj-$(CONFIG_EXYNOS_CLKOUT) += clk-exynos-clkout.o > obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos7.o > +obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos850.o > obj-$(CONFIG_S3C2410_COMMON_CLK)+= clk-s3c2410.o > obj-$(CONFIG_S3C2410_COMMON_DCLK)+= clk-s3c2410-dclk.o > obj-$(CONFIG_S3C2412_COMMON_CLK)+= clk-s3c2412.o > diff --git a/drivers/clk/samsung/clk-exynos850.c b/drivers/clk/samsung/clk-exynos850.c > new file mode 100644 > index 000000000000..3192ec9bb90b > --- /dev/null > +++ b/drivers/clk/samsung/clk-exynos850.c > @@ -0,0 +1,63 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2019 Samsung Electronics Co., Ltd. > + * Copyright (C) 2021 Linaro Ltd. > + * > + * Common Clock Framework support for Exynos850 SoC. > + */ > + > +#include > +#include > +#include > +#include > +#include + blank line? > +#include > + > +#include "clk.h" > + > +/* Fixed rate clocks generated outside the SoC */ > +static struct samsung_fixed_rate_clock exynos850_fixed_rate_ext_clks[] __initdata = { > + FRATE(OSCCLK, "fin_pll", NULL, 0, 26000000), > +}; > + > +/* > + * Model the UART clock as a fixed-rate clock for now, to make serial driver > + * work. This clock is already configured in the bootloader. > + */ > +static const struct samsung_fixed_rate_clock exynos850_peri_clks[] __initconst = { > + FRATE(DOUT_UART, "DOUT_UART", NULL, 0, 200000000), > +}; > + > +static const struct of_device_id ext_clk_match[] __initconst = { > + { .compatible = "samsung,exynos850-oscclk", .data = (void *)0 }, 0 is the default for static variables. > + {}, No comma needed for the terminator lines. > +}; > + > +void __init exynos850_clk_init(struct device_node *np) > +{ > + void __iomem *reg_base; > + struct samsung_clk_provider *ctx; > + if (!np) > + panic("%s: unable to determine soc\n", __func__); Check for the sake of additional code? > + reg_base = of_iomap(np, 0); This will fail when np == NULL. > + if (!reg_base) > + panic("%s: failed to map registers\n", __func__); > + > + ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS); > + if (!ctx) > + panic("%s: unable to allocate ctx\n", __func__); > + > + samsung_clk_of_register_fixed_ext(ctx, > + exynos850_fixed_rate_ext_clks, > + ARRAY_SIZE(exynos850_fixed_rate_ext_clks), > + ext_clk_match); > + > + samsung_clk_register_fixed_rate(ctx, exynos850_peri_clks, > + ARRAY_SIZE(exynos850_peri_clks)); > + > + samsung_clk_of_add_provider(np, ctx); > +} > + > +CLK_OF_DECLARE(exynos850_clk, "samsung,exynos850-clock", exynos850_clk_init); -- With Best Regards, Andy Shevchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78D7DC4338F for ; Fri, 30 Jul 2021 15:15:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3953C60EFE for ; Fri, 30 Jul 2021 15:15:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3953C60EFE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P6RBNJdEGnDiFkjMqxc8leHvO9irECZvQr/TG3dOJKs=; b=sbrR9Bm0eX1DtV 8PtVwFj6HQhOjWq3iwuEr3RtaN1DgQ2CvRxKJEQcbAOfxNE/fTilxpCKvP8sJnQYhKQIW2q2rPoA1 j/3QLD9Vv2IxOllKjI/EplXAxDvarZdj/jrP5wgCJuyCzSeEjJnRsOYM4QXIlHXLJy6BfSlStVKa/ yrS7ZR7pnY3UazoPDpupB042U5F7EyNf8ok5Z+Xo4y8UKF1pyk9xqgsyri1zI4A0bDLOHnYcd2NAd COMt4w3kJMBDPefKWg/00eT0YlcpxmJiC5V/VMxQgnSt13Qr7Z0EO4ZstqUVsUjl7lyVXF09UDHDI KWkthgz9dzbnqGo4ln4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9UCX-009DEw-7Q; Fri, 30 Jul 2021 15:13:29 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9UBu-009CqO-Tl for linux-arm-kernel@lists.infradead.org; Fri, 30 Jul 2021 15:12:52 +0000 Received: by mail-pj1-x102b.google.com with SMTP id q17-20020a17090a2e11b02901757deaf2c8so14911853pjd.0 for ; Fri, 30 Jul 2021 08:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DiREYRtexA0I7S1KnqFrcLIiv/74eDGMLWe+dU114C0=; b=JMMDofxBypjNtHZUFLmtUfIxq6MocEIgnaCq+ez7fM6xZgmpF0wJmMuG7dUNZkwrl+ Qxpu8JAOs90quA8Lg1Ax+FdKJ4ucO9pQ42IBVmiLNS3wKF6WC5caf5K2Aps7R+1+d4FT z5fe7akHfjIUQ0lmzafj/roOEe3mTvbceCeSolkw5+ECl81M19Ulg2Wy+Khvr/gBhbfp 6d6g2+YO2n67Qn5XIXDS8so8n0euGnnSMAduYc7WBVdvc6PGCXfRJpNTFj/6GCIJQv7k LHqWLzbIzudgq2A4o5geF9EwVRk48F9dou7EnrIwYAJS8wfrYuawZESi75hYBSqx7WOn sfMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DiREYRtexA0I7S1KnqFrcLIiv/74eDGMLWe+dU114C0=; b=DOYhNxlIZ2ncw+2M7+GUYcUVYmWVvqpxUNopqceP7m/BZtcXNTp23uobFEXw6YLi25 CHhKmftIZl6dr5sgL6UWwseocIOZ9G8/jKh97aaYz1yeu91ELRPBM0rv4akk2Wjr1Jqz IUdrPoTrNxUS27+kSoqcohWm2+FPJuBtlIXJpYwM3sMWzBHZuZgdXEVmNXD0Tdeo6TYK +BDqKI4EglFmL3M/FuEd4JxGgQtVmtrMhx5xgFya2SlpPSM6BdbVX8n/8GMHLRQ4R8qX 9VdEUsoWT7z6PVuQQbo1K2G1agz6hW3xKURtPLH4OCl7g1xCahfxDvW3FbwjPxtB85La MR5Q== X-Gm-Message-State: AOAM53318zW+lEbUgjeIbsgW8iGdZ71lfi0RD/ylFplXxyraw7Y87eYX gIUWiyicKAPdB1e+VYKh2nABzthOHZ4ni7PW8II= X-Google-Smtp-Source: ABdhPJzZSDH5uc43hERebvJdjVFz5phkw7dcWmRs7gzFR8fSgvsEMdnv/WC92UEdmil1uI6T6wK/nbJLBIsVQelxwWw= X-Received: by 2002:a05:6a00:2ba:b029:3b0:9ade:afb1 with SMTP id q26-20020a056a0002bab02903b09adeafb1mr1413120pfs.73.1627657958462; Fri, 30 Jul 2021 08:12:38 -0700 (PDT) MIME-Version: 1.0 References: <20210730144922.29111-1-semen.protsenko@linaro.org> <20210730144922.29111-11-semen.protsenko@linaro.org> In-Reply-To: <20210730144922.29111-11-semen.protsenko@linaro.org> From: Andy Shevchenko Date: Fri, 30 Jul 2021 18:11:58 +0300 Message-ID: Subject: Re: [PATCH 10/12] clk: samsung: Add Exynos850 clock driver stub To: Sam Protsenko Cc: Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Rob Herring , Stephen Boyd , Michael Turquette , Jiri Slaby , Greg Kroah-Hartman , Charles Keepax , Ryu Euiyoul , Tom Gall , Sumit Semwal , John Stultz , Amit Pundir , devicetree , linux-arm Mailing List , linux-clk , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux Samsung SOC , "open list:SERIAL DRIVERS" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210730_081251_030003_526EBD26 X-CRM114-Status: GOOD ( 33.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 30, 2021 at 5:51 PM Sam Protsenko wrote: > > For now it's just a stub driver to make serial driver work. Later it make the serial > will be implemented properly. > > This driver doesn't really change clocks, only registers the UART clock > as a fixed-rate clock. Without this clock driver the UART driver won't > work, as it's trying to obtain "uart" clock and fails if it's not able > to. > From drivers/tty/serial/samsung_tty.c: > > 8<------------------------------------------------------------------->8 > ourport->clk = clk_get(&platdev->dev, "uart"); > if (IS_ERR(ourport->clk)) { > pr_err("%s: Controller clock not found\n", > dev_name(&platdev->dev)); > ret = PTR_ERR(ourport->clk); > goto err; > } > 8<------------------------------------------------------------------->8 This is not needed in the commit message. > In order to get functional serial console we have to implement that get a functional > minimal clock driver with "uart" clock. It's not necessary to actually > configure clocks, as those are already configured in bootloader, so > kernel can rely on that for now. > 80 column limit is broken here to make checkpatch happy, otherwise it > swears about incorrect __initconst usage. Again, no need to be in the commit message, use the comment field for this (after the cutter '---' line below). > Signed-off-by: Sam Protsenko > --- > drivers/clk/samsung/Makefile | 1 + > drivers/clk/samsung/clk-exynos850.c | 63 +++++++++++++++++++++++++++++ > 2 files changed, 64 insertions(+) > create mode 100644 drivers/clk/samsung/clk-exynos850.c > > diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile > index 028b2e27a37e..c46cf11e4d0b 100644 > --- a/drivers/clk/samsung/Makefile > +++ b/drivers/clk/samsung/Makefile > @@ -17,6 +17,7 @@ obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos5433.o > obj-$(CONFIG_EXYNOS_AUDSS_CLK_CON) += clk-exynos-audss.o > obj-$(CONFIG_EXYNOS_CLKOUT) += clk-exynos-clkout.o > obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos7.o > +obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos850.o > obj-$(CONFIG_S3C2410_COMMON_CLK)+= clk-s3c2410.o > obj-$(CONFIG_S3C2410_COMMON_DCLK)+= clk-s3c2410-dclk.o > obj-$(CONFIG_S3C2412_COMMON_CLK)+= clk-s3c2412.o > diff --git a/drivers/clk/samsung/clk-exynos850.c b/drivers/clk/samsung/clk-exynos850.c > new file mode 100644 > index 000000000000..3192ec9bb90b > --- /dev/null > +++ b/drivers/clk/samsung/clk-exynos850.c > @@ -0,0 +1,63 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (C) 2019 Samsung Electronics Co., Ltd. > + * Copyright (C) 2021 Linaro Ltd. > + * > + * Common Clock Framework support for Exynos850 SoC. > + */ > + > +#include > +#include > +#include > +#include > +#include + blank line? > +#include > + > +#include "clk.h" > + > +/* Fixed rate clocks generated outside the SoC */ > +static struct samsung_fixed_rate_clock exynos850_fixed_rate_ext_clks[] __initdata = { > + FRATE(OSCCLK, "fin_pll", NULL, 0, 26000000), > +}; > + > +/* > + * Model the UART clock as a fixed-rate clock for now, to make serial driver > + * work. This clock is already configured in the bootloader. > + */ > +static const struct samsung_fixed_rate_clock exynos850_peri_clks[] __initconst = { > + FRATE(DOUT_UART, "DOUT_UART", NULL, 0, 200000000), > +}; > + > +static const struct of_device_id ext_clk_match[] __initconst = { > + { .compatible = "samsung,exynos850-oscclk", .data = (void *)0 }, 0 is the default for static variables. > + {}, No comma needed for the terminator lines. > +}; > + > +void __init exynos850_clk_init(struct device_node *np) > +{ > + void __iomem *reg_base; > + struct samsung_clk_provider *ctx; > + if (!np) > + panic("%s: unable to determine soc\n", __func__); Check for the sake of additional code? > + reg_base = of_iomap(np, 0); This will fail when np == NULL. > + if (!reg_base) > + panic("%s: failed to map registers\n", __func__); > + > + ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS); > + if (!ctx) > + panic("%s: unable to allocate ctx\n", __func__); > + > + samsung_clk_of_register_fixed_ext(ctx, > + exynos850_fixed_rate_ext_clks, > + ARRAY_SIZE(exynos850_fixed_rate_ext_clks), > + ext_clk_match); > + > + samsung_clk_register_fixed_rate(ctx, exynos850_peri_clks, > + ARRAY_SIZE(exynos850_peri_clks)); > + > + samsung_clk_of_add_provider(np, ctx); > +} > + > +CLK_OF_DECLARE(exynos850_clk, "samsung,exynos850-clock", exynos850_clk_init); -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel