Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1071266pxb; Wed, 1 Sep 2021 16:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd2IEVuqiOyyemai4oFcQbuo6WNsANjlKkCB1dxO0Swr+mWqedv0WyjRmPib6V0s2E6CvE X-Received: by 2002:a17:906:7802:: with SMTP id u2mr438892ejm.325.1630540238326; Wed, 01 Sep 2021 16:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630540238; cv=none; d=google.com; s=arc-20160816; b=JM50OLPoFnj7RhGvmfKIptJBK2mr+HI4SuWUOy+FIwvqeKWZKl5N6JEr9YsEG2tjW2 ldu/J25pxc7N59Z700UC6Sw7RBmLuCdOMZGL/YhBXTsWT2FkUqy0YThs2TfcLBr9MUXt gIlcGC9Xjbhsid9rF5Ax3StlmYz2W4vBNQMKdqEVw6hZj2FtW9wkBI5P3QdRCITkDCx9 vQQM5gCDM70wbsx/SJoHOgvDBarP3sUxEfyN35Sq0LK1aI9tsQR8uUABziLRNS9zSkNj JcVgwmMkqkxCuunHx5s3TcZKJprG1tc0eiydhK+UtniDfXya+NaqlQ49uPy5tkGK0kYm Nuhg== 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=pAgf+O7Rs2LcRmDiGGK1n0umtWKcnbdp4ZD+2pKUkvc=; b=y1W/ESpu1eVkzdOjHkQ/R49CVZSGphM7sktT/THgy7xo3zLyKXxMzNc85aNwzvt5fq U1SThFPw+ha89O0yRHsnF3rNpZucWaObE9SrivnA0YbwC5MaeLEPXQb+Sozu9I8sX6NN 8Nv6DgfZ1opg5sZggDAPjvVkB750VwoK8mj5eRABzN765C4kJWTcZbzjre4PwcNiuNtY j/AQkt+Vb8yEcYONRlsKlyhrRO4HI9gS8Hb/kmNuUAcvsqwsoQ38jUw9k53MdwcOwFyF VhmO0I9ZqyyrVI4XW39pNuqSDHX40dzlwkbHETX0wNS4P8nodMzXHiShnqBKQ70gBUo1 PkgA== 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 j18si296119edp.44.2021.09.01.16.50.13; Wed, 01 Sep 2021 16:50:38 -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 S244714AbhIAW0b (ORCPT + 99 others); Wed, 1 Sep 2021 18:26:31 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40384 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S244229AbhIAW02 (ORCPT ); Wed, 1 Sep 2021 18:26:28 -0400 X-UUID: a5107c924ce94be992714e31f368bb15-20210902 X-UUID: a5107c924ce94be992714e31f368bb15-20210902 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1082499189; Thu, 02 Sep 2021 06:25:28 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 06:25:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 2 Sep 2021 06:25:26 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger CC: Wendell Lin , Hanks Chen , , , , , , Miles Chen Subject: [PATCH v3 0/4] clk: mediatek: modularize COMMON_CLK_MT6779 Date: Thu, 2 Sep 2021 06:25:23 +0800 Message-ID: <20210901222526.31065-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/ --- Change since v1: use module_platform_driver() instead of builtin_platform_driver() Change since v2: squash "bool to tristate" change Miles Chen (3): clk: composite: export clk_register_composite clk: mediatek: support COMMON_CLK_MEDIATEK module build clk: mediatek: support COMMON_CLK_MT6779 module build 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 | 4 +++- drivers/clk/mediatek/clk-mt6779-cam.c | 4 +++- drivers/clk/mediatek/clk-mt6779-img.c | 4 +++- drivers/clk/mediatek/clk-mt6779-ipe.c | 4 +++- drivers/clk/mediatek/clk-mt6779-mfg.c | 4 +++- drivers/clk/mediatek/clk-mt6779-mm.c | 4 +++- drivers/clk/mediatek/clk-mt6779-vdec.c | 4 +++- drivers/clk/mediatek/clk-mt6779-venc.c | 4 +++- 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, 69 insertions(+), 18 deletions(-) -- 2.18.0