Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp994733pxv; Thu, 15 Jul 2021 22:19:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRer+kNhveM6xifubqAOJrMq2FxI0FGbWds8Nf224sn/bV7tg1ZNZOsWacDOyXqNIS83ZB X-Received: by 2002:a05:6e02:1010:: with SMTP id n16mr5355448ilj.146.1626412763075; Thu, 15 Jul 2021 22:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626412763; cv=none; d=google.com; s=arc-20160816; b=C3WHs6e44XIVgxKUqxb6WIlTlSnN+o+jz9jLPL/NIDvZDtpbL8uAFigiggy6oxLGUL RQm5wrGnCHxCAha0ipGgbhxl2pEOvnNAKnTW2YzOgcI6beQTtqB26whgf4vhzJN9sWwC oN2tKYvqeqdGzIv/iUZ4IS75VAgJNQcyj0UoSR2GswyCE6fPBtZ5W/nvI38cUMG4ZK8h N2mpUkmA/YaPkRhyUwZmG1pAduY1hTmuM0XBpPfCWbBHefPL9hjTSd2/eymBKssZOiP1 zTX6qiwlhH8mKT74ZBznFHBobjp7276PtXSxOTfNy06PFSiTtIzMjgPLE77tZ/xVIBwv lJUg== 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=NgWayIRAjArp8kuqmHPYCwFplYbNdCmM1Se0QSS79qY=; b=uXI3p4chgs8SXyVBOOD8LJTeEI2nPMWm8AxfaKSB59Ppw/xp26jFmZTF9UZzNhw/+r khn2nUS9zV1AaRnChhlsJsTzCUl0JNfyAq5lHs2GlfrM6bJUlSMcs6ZhpJ2k5KOsJBjQ ca3rReeIXHZw38zQ9ym4Qf+pU97eadt3U4seA+uCBl1VAGAvdyo5Bj5sz6y59P/5N3E+ XR7kzkwrtqiWeojH2uoTFRcKloAJPrWVaKMAJHi+eXGjo7Eejm2ECV8C+fUcoGUYv7Ha aZcu2iyauVKKCcM4shMj9MM5MwIBd9gO9HJgYhB6jihI3mAAEjTAq4XkyHYb6jFK4enR C4Mw== 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 v20si9224343jao.88.2021.07.15.22.19.10; Thu, 15 Jul 2021 22:19:23 -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 S231961AbhGPFUc (ORCPT + 99 others); Fri, 16 Jul 2021 01:20:32 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38062 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229822AbhGPFUb (ORCPT ); Fri, 16 Jul 2021 01:20:31 -0400 X-UUID: 7d71cf090aac449fb2111e54fd8f4390-20210716 X-UUID: 7d71cf090aac449fb2111e54fd8f4390-20210716 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2027036149; Fri, 16 Jul 2021 13:17:34 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 16 Jul 2021 13:17:33 +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, 16 Jul 2021 13:17:33 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Matthias Brugger , Fabien Parent CC: , , , , , Miles Chen Subject: [RESEND PATCH] clk: mediatek: make COMMON_CLK_MT8167* depend on COMMON_CLK_MT8167 Date: Fri, 16 Jul 2021 13:17:32 +0800 Message-ID: <20210716051732.3422-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 clearer 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