From patchwork Mon Mar 6 14:05:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 64692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1868122wrd; Mon, 6 Mar 2023 06:21:38 -0800 (PST) X-Google-Smtp-Source: AK7set84vjoXQturGNxAWRbgvXALLDF8rm22kU61QLLi8mqO7u00PyG6NW0gzHWGwgZGDvQHq3aE X-Received: by 2002:a17:906:7c4a:b0:8b2:abcc:8d9e with SMTP id g10-20020a1709067c4a00b008b2abcc8d9emr10670467ejp.26.1678112498806; Mon, 06 Mar 2023 06:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678112498; cv=none; d=google.com; s=arc-20160816; b=w9xuXdqiE5V04XumOgleoSvd1gSRKOMuxIudT3nw/Y0EEnCEn04jPTrPHvUBvnZtTS MDT7bDLEsFXxlPdFeFTupZxGcPDxgMT4U7QuJRk/3QI6vT1vaVqf+B/fiEDl/30Rbjod 2XnhGVz8sJsZFilYllk+YQP3FB6v3zoL82zepb/JrrLSod6RWwsMh2mjrrQMRSKqubRS nFBbtn6rD8zC/42Wgr9WP0oud1Z7moNtqljRflp3b8vKNc0xXdFgb3QfpKNs1JuRCCYr 1pm+TsLC7XklgDo2smUM7VH+C6GtAejCQFeMxexnKCrDeNXahvN1fbaBIe+oXhjyy7T/ M3Aw== 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=7nHZQhp4Pgs0o+1hBEFlAG7jwRM9RBzpZBHYuY/sVhE=; b=U5djwvq/vk/hdQqx4qxhNxeTSYDXrbHPzXz1VOXZclK71FAB1YVwXYsMBMLwa5lBLV azscW/K8jPhpGAJPuBbnaO83GdeXhSKnL4DIbS7i/MUDRNABycHLHNLG06r9F+OPskEk lO2S45h0aF3r/8ywI06ccDPiVD9A/w2VeCHdy6bRtDmmDqxjrSHch3I9Kad8XfbWveUr z3IgEEKf0rXg92Tx2K7YRpShFHCo96KeW3g3YGBZLyNW2iQ5fhh8RS3estr3VsShpUqL ZhVA1A4YxzBkWqu2C0CHOrrI+wZGLYgU9BXEYTDTncGKSivnHF/XNm02+ZJacE8KvS0V xlQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EF3e3lcI; 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=QUARANTINE sp=QUARANTINE 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 j11-20020aa7ca4b000000b004acb32d3a1bsi9918144edt.362.2023.03.06.06.21.15; Mon, 06 Mar 2023 06:21:38 -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=EF3e3lcI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231356AbjCFOKY (ORCPT + 99 others); Mon, 6 Mar 2023 09:10:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbjCFOJk (ORCPT ); Mon, 6 Mar 2023 09:09:40 -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 116B232515; Mon, 6 Mar 2023 06:08:06 -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 1DE706602FB7; Mon, 6 Mar 2023 14:06:52 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678111613; bh=7FZEolUr6KyAj858oufGeSrFd4pByYVT6eDczeQoNE4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EF3e3lcIWm1wRyoA6nGgiQoo/MoOD8lFgYTYIZO299E4+P49wv0+YNoT8BP1Xnsey X2lr0cyjkhyu49vU6nHIAPm70bgfa01rY6AwVKo47V+GReqLpUOr1Kjw3Q5xJfJzWT F9w+p6Noaz8H0FdjxEgyXV9Ku5bDCPWuyNvVEWs6htLAZwk8xf2+BwKj54S4GdRyux ymUlnYoAu/Wt3jCVWXg/vX2sOdfSOdwhwnsP+5xUV7cpyiVadyfUXEvr/FFrwN4AS4 9JmU2Z+N9IkqQgv9kUew3FOOIGv5xMwTCEKsD8ahqWAt1F5p6RFVNLksOjhVLoe05j g9m5bQuXS5rBA== From: AngeloGioacchino Del Regno 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 v6 41/54] clk: mediatek: Allow MT7622 clocks to be built as modules Date: Mon, 6 Mar 2023 15:05:30 +0100 Message-Id: <20230306140543.1813621-42-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306140543.1813621-1-angelogioacchino.delregno@collabora.com> References: <20230306140543.1813621-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759628491431080536?= X-GMAIL-MSGID: =?utf-8?q?1759628491431080536?= 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 Reviewed-by: Chen-Yu Tsai --- 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 fc073e5be4eb..d089806789ee 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