Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp419615pxb; Thu, 12 Aug 2021 20:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCR2GWsLe2nVn5t2AMjWqPjaorO/hrNkiMKiw/vyzRJFy1zdDMw9LHEWiPGLwNDMWKlREw X-Received: by 2002:a92:194c:: with SMTP id e12mr294312ilm.199.1628826075668; Thu, 12 Aug 2021 20:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628826075; cv=none; d=google.com; s=arc-20160816; b=LMq4vMWjuTqWA+Pni8syOzO7P0pNLC1ZEKnsiaSLjIQ8p7UCI+FqP5vM+NE8VlCy7B V1LHFbNrXThHbOgIdgnMV0frTqt43foA9GRLfnM9FvHvnUndGYniaqlRcLtNGw813+J4 GxipGAw+RP+QbJ9T1yzgszQnayyYSKskvaVSd27TrZ6LcUhICX0b/VLBqwOkgPvGXjrj tQROB7bDIvcLbEB+3DvyZ6AIS+UxsWNxq4wdMbjUpn73NUqVkBDILBdwYq6V3X/8k7cd rmYCgqRXP8KiHiyhCX1P9gVXdDjrIBh+4nsCz5Ak2Z1WTcE6pQu++XaIvrm6Msxc5CHQ Qk6w== 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=TEK9elESRLXXvXIc1C6Fus+f9MAuHA6lW/W3ro6Q6z3xm1eVSju3FcmJrVI6U0Tdt4 RIjgwjwXw38nS+z6ZcTpM10jcOKTF7b9xou22boH49/kiIg2A/qIun0Mjg66DCp6+amy HG3+GtgP0sRNb7wvnJWnJ7DyyQ8S2ZGVt2jujbcgXEsIdYQ13rGE3BrEkYVko5Vq6p6r ISus0UKE1z4YfVk0Y+szc4bV2v+5cVRcu7c2OtGfxsbw1CyGK78Tjm2uADKLH9g3zP/4 YGtxI0sSfTD9l+M94MlQNfQ1KhWikM9BvBvvNC0vPYZ4i7K4s19uFi29SWsNPDzb+UXu vNlw== 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 a9si181891iod.50.2021.08.12.20.41.04; Thu, 12 Aug 2021 20:41:15 -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 S238522AbhHMDZH (ORCPT + 99 others); Thu, 12 Aug 2021 23:25:07 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:34774 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S237331AbhHMDZC (ORCPT ); Thu, 12 Aug 2021 23:25:02 -0400 X-UUID: a0c93a041a0d403abbff998b899ebcce-20210813 X-UUID: a0c93a041a0d403abbff998b899ebcce-20210813 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1254128783; Fri, 13 Aug 2021 11:24:32 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 13 Aug 2021 11:24:30 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 13 Aug 2021 11:24:30 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: Wendell Lin , Hanks Chen , , , , , , Miles Chen Subject: [RESEND PATCH 0/4] clk: mediatek: modularize COMMON_CLK_MT6779 Date: Fri, 13 Aug 2021 11:24:25 +0800 Message-ID: <20210813032429.14715-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