Message ID | 20230214134127.59273-40-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2980218wrn; Tue, 14 Feb 2023 05:46:46 -0800 (PST) X-Google-Smtp-Source: AK7set8ooU9TU/xuM8sdhYoRvQgGStAxu1/zuvlCSOQf7VWgEK0rHdHNSri0jz2tcAj40e5Li8CY X-Received: by 2002:a17:907:a506:b0:8af:2a62:30c9 with SMTP id vr6-20020a170907a50600b008af2a6230c9mr24354275ejc.34.1676382406802; Tue, 14 Feb 2023 05:46:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676382406; cv=none; d=google.com; s=arc-20160816; b=iDHKHrU5fXcF9XT3FiFATSM7tC7IeqeMc4C6TsCkkJvo5RmPX0p9YMZ+NtnJsJLKiI tPzD9IO7bwevEDeg9ze8n4S0LlY8wbaD/HvNFzV9wJxi1P1NJtNhyPyTtNRVEtK8wIRn e7kk2JOHINvGXOKsmO4wnJeMvJRqifKowSrBucHSd5lydwlmXL4CeEP3zA8vsvNMvRiK OYsP6EFRqi+UOyHeCe6WMhvMgG4aMnQsEbIHecoJtoNaV1bJn0WJq6QBnSL0Z4oD/cdG GSL9ITVyPp/+2PuURRDZOtLJDcLk4IJgSRiB2MVlI/lFbTWnuIt8VBDeWNXFoywk4Iy4 uOiA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YoXIWx0PCo4a7keU4BSN9H2jjIT/0nMmF7+SSQT6d/Q=; b=rIRYTp3y3kNjJz1i3ZYSmfG5/8PASRY6vcLD3rnePgrPCABcakf/caRIvihNX/2upB Ta16k7hxi2NGp/YgqzsBcxFMFO/ba4xYBmwj4XRUqdmNFcEDy4MLMT8uhnTsxZiF1K8d 7yMjveWgmd3p8++wjLoEaXrwXVwesF8aOdLyjhfAgPCYsRV8CqNIy3KOl9ScVbFgXOkr V2e/+nbqBc83jaYIjj0Z17QoeXA4e2z9wDnma0rFgr4M8BNpJhgCA6+k1Q+og/AaBRLd GmjIT/fUP2A7fH49O9yjG3OuvlSZgvaokh+MsnVaaYWtERdoRa/9s45gKVLpjq3TuYTk W2jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="HKp3/OhQ"; 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=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170906220c00b008b126019a2bsi3798238ejs.501.2023.02.14.05.46.23; Tue, 14 Feb 2023 05:46:46 -0800 (PST) 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=@collabora.com header.s=mail header.b="HKp3/OhQ"; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232972AbjBNNp0 (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 14 Feb 2023 08:45:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233135AbjBNNpE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Feb 2023 08:45:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC39129437; Tue, 14 Feb 2023 05:43:47 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6DF9A66021AD; Tue, 14 Feb 2023 13:42:32 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1676382153; bh=KePsqy5PqdeX7Wen9K1KIlUKfVKK1kzyd8Oo4StS3PQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HKp3/OhQJMIRnJqmKLiwFts9pWXShUko77YxUgpblsH8iC3Sv4e33s3oaUv7Bi2Bx HAglD4w/uUAMXDfKVxmyTJ6nhGzxNYB0OOavvjHfdYfKv2Lfxh/KXLzmSxBrmvT0Y8 6FeFLjSsVqmvdxPegF8gD4W+d9ooXZ1k/zqKmSBoTFMIYnZYn8FczhQIBvjO79FbeR GCfPZrW0dsa9FTOQAy2W8/bWFJomjeNP8jaro0BgS02eaCP0U+1lmkt7CzPCzFpDKV 6nYMneXBOHB/Cy8EksOsHIzCawCEMiTmCBk7O7k8qEzVTvIt1XQ2B90KFyTCKXGfjU 25J2foiyO7Vug== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: mturquette@baylibre.com Cc: sboyd@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, chun-jie.chen@mediatek.com, daniel@makrotopia.org, fparent@baylibre.com, msp@baylibre.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, zhaojh329@gmail.com, sam.shih@mediatek.com, edward-jw.yang@mediatek.com, yangyingliang@huawei.com, granquet@baylibre.com, pablo.sun@mediatek.com, sean.wang@mediatek.com, chen.zhong@mediatek.com, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH v2 39/47] clk: mediatek: Allow MT7622 clocks to be built as modules Date: Tue, 14 Feb 2023 14:41:19 +0100 Message-Id: <20230214134127.59273-40-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214134127.59273-1-angelogioacchino.delregno@collabora.com> References: <20230214134127.59273-1-angelogioacchino.delregno@collabora.com> 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,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757814358764103677?= X-GMAIL-MSGID: =?utf-8?q?1757814358764103677?= |
Series |
MediaTek clocks: full module build and cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 14, 2023, 1:41 p.m. UTC
Now that all drivers are using the simple probe mechanism change the
MT7622 clock drivers to tristate in Kconfig to allow module build.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/clk/mediatek/Kconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Comments
On Tue, Feb 14, 2023 at 9:42 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Now that all drivers are using the simple probe mechanism change the > MT7622 clock drivers to tristate in Kconfig to allow module build. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > drivers/clk/mediatek/Kconfig | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig > index b5636b3225e8..55727889ebf5 100644 > --- a/drivers/clk/mediatek/Kconfig > +++ b/drivers/clk/mediatek/Kconfig > @@ -336,7 +336,7 @@ config COMMON_CLK_MT6797_VENCSYS > This driver supports MediaTek MT6797 vencsys clocks. > > config COMMON_CLK_MT7622 > - bool "Clock driver for MediaTek MT7622" > + tristate "Clock driver for MediaTek MT7622" Same as MT2712, mt7622-apmixedsys is builtin_platform_driver. ChenYu
On Fri, Feb 17, 2023 at 12:32 PM Chen-Yu Tsai <wenst@chromium.org> wrote: > > On Tue, Feb 14, 2023 at 9:42 PM AngeloGioacchino Del Regno > <angelogioacchino.delregno@collabora.com> wrote: > > > > Now that all drivers are using the simple probe mechanism change the > > MT7622 clock drivers to tristate in Kconfig to allow module build. > > > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > --- > > drivers/clk/mediatek/Kconfig | 8 ++++---- > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig > > index b5636b3225e8..55727889ebf5 100644 > > --- a/drivers/clk/mediatek/Kconfig > > +++ b/drivers/clk/mediatek/Kconfig > > @@ -336,7 +336,7 @@ config COMMON_CLK_MT6797_VENCSYS > > This driver supports MediaTek MT6797 vencsys clocks. > > > > config COMMON_CLK_MT7622 > > - bool "Clock driver for MediaTek MT7622" > > + tristate "Clock driver for MediaTek MT7622" > > Same as MT2712, mt7622-apmixedsys is builtin_platform_driver. I figured it out, so Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Il 17/02/23 05:32, Chen-Yu Tsai ha scritto: > On Tue, Feb 14, 2023 at 9:42 PM AngeloGioacchino Del Regno > <angelogioacchino.delregno@collabora.com> wrote: >> >> Now that all drivers are using the simple probe mechanism change the >> MT7622 clock drivers to tristate in Kconfig to allow module build. >> >> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >> --- >> drivers/clk/mediatek/Kconfig | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig >> index b5636b3225e8..55727889ebf5 100644 >> --- a/drivers/clk/mediatek/Kconfig >> +++ b/drivers/clk/mediatek/Kconfig >> @@ -336,7 +336,7 @@ config COMMON_CLK_MT6797_VENCSYS >> This driver supports MediaTek MT6797 vencsys clocks. >> >> config COMMON_CLK_MT7622 >> - bool "Clock driver for MediaTek MT7622" >> + tristate "Clock driver for MediaTek MT7622" > > Same as MT2712, mt7622-apmixedsys is builtin_platform_driver. > > ChenYu Same as MT2712 - added remove callback, converted to module_platform_driver() for v3! Thanks again! Angelo
diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index b5636b3225e8..55727889ebf5 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -336,7 +336,7 @@ config COMMON_CLK_MT6797_VENCSYS This driver supports MediaTek MT6797 vencsys clocks. config COMMON_CLK_MT7622 - bool "Clock driver for MediaTek MT7622" + tristate "Clock driver for MediaTek MT7622" depends on ARCH_MEDIATEK || COMPILE_TEST select COMMON_CLK_MEDIATEK default ARCH_MEDIATEK @@ -345,21 +345,21 @@ config COMMON_CLK_MT7622 required for various periperals found on MediaTek. config COMMON_CLK_MT7622_ETHSYS - bool "Clock driver for MediaTek MT7622 ETHSYS" + tristate "Clock driver for MediaTek MT7622 ETHSYS" depends on COMMON_CLK_MT7622 help This driver add support for clocks for Ethernet and SGMII required on MediaTek MT7622 SoC. config COMMON_CLK_MT7622_HIFSYS - bool "Clock driver for MediaTek MT7622 HIFSYS" + tristate "Clock driver for MediaTek MT7622 HIFSYS" depends on COMMON_CLK_MT7622 help This driver supports MediaTek MT7622 HIFSYS clocks providing to PCI-E and USB. config COMMON_CLK_MT7622_AUDSYS - bool "Clock driver for MediaTek MT7622 AUDSYS" + tristate "Clock driver for MediaTek MT7622 AUDSYS" depends on COMMON_CLK_MT7622 help This driver supports MediaTek MT7622 AUDSYS clocks providing