Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3897616rwo; Mon, 24 Jul 2023 19:35:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlGw16BKaV4H5d2jZtlDLE7N/sAZk/yCr9LvgFsP9oa5K49zumcanOFneyE5NFPrML1yFDOv X-Received: by 2002:ac2:5045:0:b0:4f8:770d:6d7d with SMTP id a5-20020ac25045000000b004f8770d6d7dmr5389665lfm.6.1690252537043; Mon, 24 Jul 2023 19:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690252537; cv=none; d=google.com; s=arc-20160816; b=aQAEueAI0aHTIcOtIU7UuhSDnbDM4NqOHKDw1lfEwWMw3A9ZjNS6y3VZgqu8v4/l+E c4cu90zTz8LSLO3Z9It9tXhk0/YCpN8yRQrDiS0alov31fY6z32rdm9XJovOFIfmD2rR nzY8RctdNNw4yl/56pOdsdZ4kgU1wFcIqT8Da5s8yxGXgqjZsRQeRrnFY2CNfdxBR/ci uhRszXs7avyg1VNvGV2iyKvaUVXv3B2eEdd2z3R8BfHY6BjHUlRYr+d7MW6yjmNpujL+ eO3HI9QxMp+pgCCL+AZnKiCp/GlXt9/ECQALxh8lgcg6UKrwHqlDliJJ+ByTosLKDNpj jINA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VMbfUxW794QAHn8O7xONypqcfryJoPheb9KV8GnOtDw=; fh=6Mc74FF3OQV6bFtoyhaPGVVIvW7iVJ2B0Bkc3DyV1zo=; b=rmZP6sAHuB4Y+GGkMUV8Eqxep50qVSlBVYE4VGlklP96xqtCJnsuE2T3achSj6HFJA EqCGB9zf25ixBy5L+nCXtyo2/z4FXJWcl5A5Pv7NITK6+7/aX73O5hNCRoowaEkoeuuz b6ef7ztKrTiaPeeMLgCltt6zuJJPK+9bOp5O2Z2RSrnlvPSzoLHl1/1oxdJyvggmAuYv qkzY1V1gmMsywTex09xZGu1l3dM5qbPk/901sP/wPONh5v0BSJ9wTdwe3Hpf7pHj+KKD K0Pb1ifGhKKNkP24HfBCh7ClZgm188TyJ97rf/JBGbUVC4u/Jya9EMSR3Skd8A+149DV QyUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=fIFB8VFZ; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020aa7c316000000b005223a1e8d36si1451933edq.129.2023.07.24.19.35.13; Mon, 24 Jul 2023 19:35:36 -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=@sifive.com header.s=google header.b=fIFB8VFZ; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbjGYAnB (ORCPT + 99 others); Mon, 24 Jul 2023 20:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbjGYAm7 (ORCPT ); Mon, 24 Jul 2023 20:42:59 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F395A173E for ; Mon, 24 Jul 2023 17:42:50 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-348d6bc349eso5524235ab.0 for ; Mon, 24 Jul 2023 17:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1690245770; x=1690850570; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VMbfUxW794QAHn8O7xONypqcfryJoPheb9KV8GnOtDw=; b=fIFB8VFZKbD/dM3uNH3oQmbNNxhTAEUbQdntzDoVvNdgl4OZ87Xcb24w1eZw/2Crb1 9P84i+uSNF4COjqedNXiWsezm2Lf+ypYM2ZKEm4g+4zufkNciK+1BnGXlQxpvocF7A1N TzwFrGNIpJRkjUhQkWCSO/k50PlZdU2rkclr4FvtU0A0g2cxkTUsLK+q/lVm7n5IBC/q uQVnpXtXdv6FYnCcaftbgNrAPHtopHfmubjBhW/thyh10ieXYYsY8DIVrbFQjFLMz1Fo QRtmHIBo9yWWeqVO98bF2Pu6Yh9bsV77uIekl2WGtTv7KbP0j2OOqE1Ftjz0J2nDfuqG P/bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690245770; x=1690850570; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VMbfUxW794QAHn8O7xONypqcfryJoPheb9KV8GnOtDw=; b=aaVKMspyjj7QJXfez33kLyOgnX7juaJJ82QDbLFW4aLTdUHjxspUFm5kyiW+kQ7hST zBIX5yKmZjheT7oBtwSsD7XchnNYo74neCZ2AOWe6tZLFmU32C79kscAu6tVBv+284w+ oQ8MCFNCszM6fT8TFt79a/XFAK9HIMhigI7IDucOVPVPlOFm4OtxeXn/elV5rLwviHRi OlXhiMKtvUNOyT/xcMvFgrbLN9x/gC5+a3dtq4cJfO7Wzu34pmb1kIKDhFOFdMCjz0I5 22yMcO8yEfcjbmWVaWPUl69FLjPrWsnJlGR6GHwW2/FzkobOeiKhm9FAisDb9PxvyuKQ 12SA== X-Gm-Message-State: ABy/qLadvFrJKJrYizQWW9ie9363GKu+E0a9TdyVJs+xsYXBmbPsSIzN j5z6WNk5ksWc2xZAUOiu7iFyIw== X-Received: by 2002:a05:6e02:20c2:b0:348:d52a:8f8 with SMTP id 2-20020a056e0220c200b00348d52a08f8mr1499328ilq.25.1690245770327; Mon, 24 Jul 2023 17:42:50 -0700 (PDT) Received: from sw06.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id u135-20020a63798d000000b00553b9e0510esm9042655pgc.60.2023.07.24.17.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 17:42:49 -0700 (PDT) From: Samuel Holland To: Michael Turquette , Stephen Boyd Cc: Emil Renner Berthing , Samuel Holland , Paul Walmsley , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] clk: analogbits: Allow building the library as a module Date: Mon, 24 Jul 2023 17:42:47 -0700 Message-Id: <20230725004248.381868-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This library is only used by the SiFive PRCI driver. When that driver is built as a module, it makes sense to build this library as a module too. Signed-off-by: Samuel Holland --- Changes in v2: - Add MODULE_AUTHOR and MODULE_DESCRIPTION drivers/clk/analogbits/Kconfig | 2 +- drivers/clk/analogbits/wrpll-cln28hpc.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/clk/analogbits/Kconfig b/drivers/clk/analogbits/Kconfig index 1e291b185438..7d73db0fcd49 100644 --- a/drivers/clk/analogbits/Kconfig +++ b/drivers/clk/analogbits/Kconfig @@ -1,3 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only config CLK_ANALOGBITS_WRPLL_CLN28HPC - bool + tristate diff --git a/drivers/clk/analogbits/wrpll-cln28hpc.c b/drivers/clk/analogbits/wrpll-cln28hpc.c index 09ca82356399..65d422a588e1 100644 --- a/drivers/clk/analogbits/wrpll-cln28hpc.c +++ b/drivers/clk/analogbits/wrpll-cln28hpc.c @@ -28,6 +28,7 @@ #include #include #include +#include #include @@ -312,6 +313,7 @@ int wrpll_configure_for_rate(struct wrpll_cfg *c, u32 target_rate, return 0; } +EXPORT_SYMBOL_GPL(wrpll_configure_for_rate); /** * wrpll_calc_output_rate() - calculate the PLL's target output rate @@ -349,6 +351,7 @@ unsigned long wrpll_calc_output_rate(const struct wrpll_cfg *c, return n; } +EXPORT_SYMBOL_GPL(wrpll_calc_output_rate); /** * wrpll_calc_max_lock_us() - return the time for the PLL to lock @@ -366,3 +369,8 @@ unsigned int wrpll_calc_max_lock_us(const struct wrpll_cfg *c) { return MAX_LOCK_US; } +EXPORT_SYMBOL_GPL(wrpll_calc_max_lock_us); + +MODULE_AUTHOR("Paul Walmsley "); +MODULE_DESCRIPTION("Analog Bits Wide-Range PLL library"); +MODULE_LICENSE("GPL"); -- 2.40.1