Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp484664pxt; Thu, 12 Aug 2021 03:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1EtvlFUkEzZsN+8nO9rIzy6FLk3y9XhVOTvPydRfjtX6brGYoIaCsndvTnEJveFfebaYy X-Received: by 2002:a92:c0c9:: with SMTP id t9mr2356738ilf.79.1628762904991; Thu, 12 Aug 2021 03:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628762904; cv=none; d=google.com; s=arc-20160816; b=XXHah+G6zCdkhvaWeMfHdKSQhxAYtimN0UZ5O9f0Sl4w9rrpTcQQg4yrCwxiYP8juf T4eQKfyArAWgQZSMaJecCJHDIMK48fyRvfKTIK7Xul8TkcPQz84LDXbIyC1CC2a+fRW7 jLDJFlAFq4AkRy5yXGtI9r1NJ27DiPUeTmcWWFUVX2fP6qIRz/UWTcjWO2WJlOvb0Hlo G/BBEW9AmlK69bfYtzRcK52jxv2ULjkiR0bjbKm6fFDBQogTHPqHetVZzSdpOw8a/Uqh vpPVPdtTXP8wnTdwII0FW1LyJoTSMTtJ4CcZiQieCfU1wZAUwfltgNbOeq3Ekq8hFT4j 6f1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=c9a7NpaWdoL74pt2ewWu5KIbBuqfvKhkOekC+knR/bo=; b=Vd/JzuPnU77c11+CXrkg4uH+ONTkZxNhEmE4Y7eG4YZgtMijgoXi6x66pCWkXdZdjz 4YZYJ+WSZd0bGnI3Xz6rFOV3i4JRYnK0EowjczQMTESI4jyTzBkYTRtF0mcY9tvX4QPP kNu4HI+zBvJ8x9kFhoZQvViO6z4Z6+8KUgw42n/R/zG4youFrmE5PiSUaD0nDwtj5rkD JDUw6QvMjFRvbxA7LmZf0tgqYfw+gwxi/6PBGxwFIED3eX6SZmGdnuwzcPaQz1PHCyMk Bl59Yqi/rSutiSNGLuEO25EBCJtLYlnVTo2NPSe9OQ3nQt8sx7kDnbQR8NRnwB3awB0j 94ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e128si2555226jac.31.2021.08.12.03.08.14; Thu, 12 Aug 2021 03:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236170AbhHLJf6 (ORCPT + 99 others); Thu, 12 Aug 2021 05:35:58 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:60798 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235823AbhHLJft (ORCPT ); Thu, 12 Aug 2021 05:35:49 -0400 X-UUID: 5927eea9c95544938e6f8c665eca165f-20210812 X-UUID: 5927eea9c95544938e6f8c665eca165f-20210812 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1776315673; Thu, 12 Aug 2021 17:35:22 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 12 Aug 2021 17:35:21 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 12 Aug 2021 17:35:21 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: Wendell Lin , Hanks Chen , , , , , , Miles Chen Subject: [PATCH 0/4] clk: mediatek: modularize COMMON_CLK_MT6779 Date: Thu, 12 Aug 2021 17:35:15 +0800 Message-ID: <20210812093519.3550-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set makes COMMON_CLK_MEDIATEK and COMMON_CLK_MT6779* be able to built as kernel modules. Necessary symbols are exported in this patch. In previous discussion [1], Stephen commented that there must be a user before exporting a symbol: " Is the mediatek driver compilable as a module? Last time I checked it wasn't a module. I want an upstream modular driver that uses the symbol. Otherwise we're exporting symbols when it doesn't need to be. " [1] https://lore.kernel.org/patchwork/patch/1278089/ Miles Chen (4): clk: composite: export clk_register_composite clk: mediatek: modularize COMMON_CLK_MEDIATEK clk: mediatek: modularize COMMON_CLK_MT6779* clk: mediatek: use tristate for COMMON_CLK_MEDAITEK and COMMON_CLK_MT6779 drivers/clk/clk-composite.c | 1 + drivers/clk/mediatek/Kconfig | 20 ++++++++++---------- drivers/clk/mediatek/clk-apmixed.c | 3 +++ drivers/clk/mediatek/clk-cpumux.c | 3 +++ drivers/clk/mediatek/clk-gate.c | 8 ++++++++ drivers/clk/mediatek/clk-mt6779-aud.c | 2 ++ drivers/clk/mediatek/clk-mt6779-cam.c | 2 ++ drivers/clk/mediatek/clk-mt6779-img.c | 2 ++ drivers/clk/mediatek/clk-mt6779-ipe.c | 2 ++ drivers/clk/mediatek/clk-mt6779-mfg.c | 2 ++ drivers/clk/mediatek/clk-mt6779-mm.c | 2 ++ drivers/clk/mediatek/clk-mt6779-vdec.c | 2 ++ drivers/clk/mediatek/clk-mt6779-venc.c | 2 ++ drivers/clk/mediatek/clk-mt6779.c | 2 ++ drivers/clk/mediatek/clk-mtk.c | 8 ++++++++ drivers/clk/mediatek/clk-mux.c | 4 ++++ drivers/clk/mediatek/clk-pll.c | 4 ++++ drivers/clk/mediatek/reset.c | 2 ++ 18 files changed, 61 insertions(+), 10 deletions(-) -- 2.18.0