From patchwork Mon Sep 20 19:03:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 12507077 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-25.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F413AC43219 for ; Tue, 21 Sep 2021 02:41:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E310160F43 for ; Tue, 21 Sep 2021 02:41:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242095AbhIUCnH (ORCPT ); Mon, 20 Sep 2021 22:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349437AbhIUC0g (ORCPT ); Mon, 20 Sep 2021 22:26:36 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35954C1E327D for ; Mon, 20 Sep 2021 12:04:36 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id t28-20020a63461c000000b00252078b83e4so16003241pga.15 for ; Mon, 20 Sep 2021 12:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=1U1dAkNma+fdm4jSudwakO8vMm1r2kh0beegFJljEIo=; b=TsHSnvzBbN84En7oW+PCc/zCFk/EPvWEaZq3R1414WOF/Lxq87g7OGRzKBHv1TXrEv DnOEaQs30DS/YggJ9M5f2Bxr6hCk6cr8OHjuawahsXa3C8m/XumaVTwCS+HDzWDxwjoq qhDO+FXCI6890cJfK227EBAhEmryB1vMgIhniqlQ6moP2UMDhqnALwM+GfNmkHe9t50A m2SHFLSFPlLr2mtr99EItwUsHR96QBKFNiQzORKb7ioLjWDnO1hoar2F9Ezj+aL0Mogf l8Dfu6cR7c5kTvkVTjyBRsrZLeAd010VW19y91ZT+dIV6hFh62OxcrN2I7k8ekicrUBe gByg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=1U1dAkNma+fdm4jSudwakO8vMm1r2kh0beegFJljEIo=; b=RMYC6U1al0zD4fFuJvSFC7E43YWLDmXioTbd0+LZ27/TFbFPCL+BkBPqx9gxEVv+Wl Zl3aQjYNF/FyUx1r23h29NxqcwGcA65vjnvHRL/Ii/DTwjidbheqjrjFlD0zE1AQcTUX CQ5mUERKQvNkMG7IKSWFcj00U+VaYtJHHSkZ6KqR6eg6rbd543DeCIaMcP56m7dMh8wW RGPj8e15bFxR7ViY0hBPznkG1EAGXP/gOR2pbeH41ZPIMr+0GLkbxGv2cvdyHiRaw9j7 4Om5CUz/Vw4ZDHHkh7CK+AhvHfXWTuS1C1dmk8IPgASsvmqaqCsiTzBI15iVNyVjzsCA vbyg== X-Gm-Message-State: AOAM532OnXTU2tUT8O4NtL5gWo2i6N/0V8rWNR8l006U32XYsBVwLBwk lt/stitQnG3NrfqxAgRBqqD3hAq2DJ5MTq/PIF4= X-Google-Smtp-Source: ABdhPJwgy8dNNqo0W9D+WwgAi9NSG0PA3TseGreGWU8Y0X9DDCX1gdgvL88O56C484HZUhvjjZWM2GLGCjv/Xb7H9XA= X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a05:6a00:16ca:b0:413:d3f7:646f with SMTP id l10-20020a056a0016ca00b00413d3f7646fmr26187055pfc.7.1632164675704; Mon, 20 Sep 2021 12:04:35 -0700 (PDT) Date: Mon, 20 Sep 2021 19:03:46 +0000 In-Reply-To: <20210920190350.3860821-1-willmcvicker@google.com> Message-Id: <20210920190350.3860821-2-willmcvicker@google.com> Mime-Version: 1.0 References: <20210920190350.3860821-1-willmcvicker@google.com> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog Subject: [PATCH v1 1/4] clk: samsung: change COMMON_CLK_SAMSUNG default config logic From: Will McVicker To: Catalin Marinas , Will Deacon , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd Cc: Lee Jones , Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org COMMON_CLK_SAMSUNG is selected by ARCH_EXYNOS which forces this config to be built-in when ARCH_EXYNOS is enabled. Switch the logic to use a "default y if ARCH_EXYNOS" to provide flexibilty for vendors to disable or modularize this driver. I verified the .config is identical with and without this change. Signed-off-by: Will McVicker --- arch/arm64/Kconfig.platforms | 1 - drivers/clk/samsung/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index b0ce18d4cc98..3a66ed43088d 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -91,7 +91,6 @@ config ARCH_BRCMSTB config ARCH_EXYNOS bool "ARMv8 based Samsung Exynos SoC family" - select COMMON_CLK_SAMSUNG select EXYNOS_CHIPID select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS select EXYNOS_PMU diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig index 0441c4f73ac9..f3e189a06b03 100644 --- a/drivers/clk/samsung/Kconfig +++ b/drivers/clk/samsung/Kconfig @@ -2,6 +2,7 @@ # Recent Exynos platforms should just select COMMON_CLK_SAMSUNG: config COMMON_CLK_SAMSUNG bool "Samsung Exynos clock controller support" if COMPILE_TEST + default y if ARCH_EXYNOS select S3C64XX_COMMON_CLK if ARM && ARCH_S3C64XX select S5PV210_COMMON_CLK if ARM && ARCH_S5PV210 select EXYNOS_3250_COMMON_CLK if ARM && SOC_EXYNOS3250