Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4152509pxv; Mon, 28 Jun 2021 23:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSw/F5JjkU/MTUBPHwtGQMWP48zzPa5CQzG9Jqu4KCudDK9ztEGMLaYx2rFNSsKbyxkp+f X-Received: by 2002:a05:6e02:1387:: with SMTP id d7mr21178120ilo.252.1624949107637; Mon, 28 Jun 2021 23:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624949107; cv=none; d=google.com; s=arc-20160816; b=cBM7ZBPwm/MPGZcvpkQwxh8j3Iaec46kjjgoCxUeUNSaaVT6Gd/fwIz8z4A05roDJj mC3EeZ7MjC+YS0COnmgNZSzJ8C+Y/usMTJbSXX/818lWpBYr106ZRvL0g1xto3sdDA/U pwYjrM8EQDXeQsIDnRJ2XE0t8ChAVxy4jQNJA4VHzSLdnWEeia3yWtEB/LqWkVR0uzDQ uPrTLpIpjsaNuAVVYwZLmWwydu5D5RrqVsQM13L4Bdc9E2qHAgyPTGCwx58QUYSai1XL 16PA1UsgVrlF2oqpxfozC7C7JRoTRycWvaf3ZTB8PEcg3t0dsq5yjpHEFVxeFWbmxon9 cMXQ== 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=GWg1i8xGWBdqXWuz/V7chOfABA5KPvELRwLXCyVDGsk=; b=LDccLPRYm6uwavXv5vn+jJvaDDMWZSN/h89zH5zBvAC8pg5n4/CIom0CovKl3iG/n8 Qt6vNd/ArXMo80SZH21ypPhcJF/ZIImkfMs9vNBxElCKf57oGJPCN2ucPI8icx+4jTur 6hwo3k6yzl3cO4suu9nb5JJKUEru9VA6sqyCk58NBO/2jiCyrHf9HKuYaljQ9Fz7dGyG wiJ3zJ/xoelIxG/T3+2BWmaz3BMr2SdQU0Zrc6sQAhXuenZYs9TwfmitY3p8Ch3wCA2F ACX/SHiTWvUsu2kUb4IOsEa+XQU7tY1OgPoaCHm9w5sbqVBh8k4GrP3fhX2iNZK8ln/9 t9Kw== 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 u13si1243576ilv.143.2021.06.28.23.44.53; Mon, 28 Jun 2021 23:45:07 -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 S232073AbhF2Gph (ORCPT + 99 others); Tue, 29 Jun 2021 02:45:37 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:45364 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231881AbhF2Gpg (ORCPT ); Tue, 29 Jun 2021 02:45:36 -0400 X-UUID: 60b45a9c5ce24780a13c88c11ba77ba2-20210629 X-UUID: 60b45a9c5ce24780a13c88c11ba77ba2-20210629 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 69736824; Tue, 29 Jun 2021 14:43:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Jun 2021 14:43:02 +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; Tue, 29 Jun 2021 14:43:02 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger , Fabien Parent CC: , , , , , Miles Chen Subject: [PATCH] clk: mediatek: make COMMON_CLK_MT8167* depend on COMMON_CLK_MT8167 Date: Tue, 29 Jun 2021 14:43:01 +0800 Message-ID: <20210629064301.1406-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 I found that COMMON_CLK_MT8167* do not depend on COMMON_CLK_MT8167, so it is possible to config: CONFIG_COMMON_CLK_MT8167=n CONFIG_COMMON_CLK_MT8167_*=y Although it does not cause build breaks with such configuration, I think it is more clear to make COMMON_CLK_MT8167* depend on COMMON_CLK_MT8167. Signed-off-by: Miles Chen --- drivers/clk/mediatek/Kconfig | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index 886e2d9fced5..ce6d59e4ca82 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -362,41 +362,36 @@ config COMMON_CLK_MT8167 config COMMON_CLK_MT8167_AUDSYS bool "Clock driver for MediaTek MT8167 audsys" - depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST - select COMMON_CLK_MEDIATEK - default ARCH_MEDIATEK + depends on COMMON_CLK_MT8167 + default COMMON_CLK_MT8167 help This driver supports MediaTek MT8167 audsys clocks. config COMMON_CLK_MT8167_IMGSYS bool "Clock driver for MediaTek MT8167 imgsys" - depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST - select COMMON_CLK_MEDIATEK - default ARCH_MEDIATEK + depends on COMMON_CLK_MT8167 + default COMMON_CLK_MT8167 help This driver supports MediaTek MT8167 imgsys clocks. config COMMON_CLK_MT8167_MFGCFG bool "Clock driver for MediaTek MT8167 mfgcfg" - depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST - select COMMON_CLK_MEDIATEK - default ARCH_MEDIATEK + depends on COMMON_CLK_MT8167 + default COMMON_CLK_MT8167 help This driver supports MediaTek MT8167 mfgcfg clocks. config COMMON_CLK_MT8167_MMSYS bool "Clock driver for MediaTek MT8167 mmsys" - depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST - select COMMON_CLK_MEDIATEK - default ARCH_MEDIATEK + depends on COMMON_CLK_MT8167 + default COMMON_CLK_MT8167 help This driver supports MediaTek MT8167 mmsys clocks. config COMMON_CLK_MT8167_VDECSYS bool "Clock driver for MediaTek MT8167 vdecsys" - depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST - select COMMON_CLK_MEDIATEK - default ARCH_MEDIATEK + depends on COMMON_CLK_MT8167 + default COMMON_CLK_MT8167 help This driver supports MediaTek MT8167 vdecsys clocks. -- 2.18.0