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: 12506217 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=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 298BDC433FE for ; Mon, 20 Sep 2021 19:06:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E290F60F3A for ; Mon, 20 Sep 2021 19:06:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E290F60F3A Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uM77zUX8lrFUoAPwGvk0Tp5Cf93aWFPiKz4RIAt8iko=; b=Py3v3lwc2yk1kOLnq/2p/NVIhy Wc0qCOm1MznlGkl8zH62u74D/JGrQL82nsxjm9F6g28Sc2thyo/Zus7z2crhTxvjMQDAJEDAanq16 X4373jmGQbJApAvZOGJtmTbQ8E/2poqHHrHzk/ZcbvesH/x/PvzvUeCTDbHCtdKWVIU3LHILJPWiT iuVIpjPdYuz1NfseJO+oVsn+iTuIK4xzvTS0ihACTwr7Jy5UTOAoSjDDCgUQgRRnrxBpBzf5jnrnk risGOTJBZcNDCx5bqkKydCDy1orAkQzn4MZr+IIOBfNtfZ9VU8QmYFoEzFK9SiMkOOYkl0PldvIPZ zD+OzACA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSOav-002rT6-Do; Mon, 20 Sep 2021 19:04:49 +0000 Received: from mail-pg1-x54a.google.com ([2607:f8b0:4864:20::54a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSOaj-002rQh-7w for linux-arm-kernel@lists.infradead.org; Mon, 20 Sep 2021 19:04:38 +0000 Received: by mail-pg1-x54a.google.com with SMTP id z127-20020a633385000000b002618d24cfacso15998521pgz.16 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=gqwWoNiyvuzYUfjO6WxaBEMBg6ybgOjAkcED9PWL1B8O608tZWu1WjNnQcxF7Jk0E6 UsQRQIW4lEzp10mdKRjzdWuHYGO4AFHCOIRh+3IqTqovS/XH9yrp3fKI0y6RfKsv9ick z5iEaxtZzabT2B9iYFc2EkZf5/RYlNQS/V0uGmq8CYnnNU7on9vFwVHn80slKGhQn6Sg kjACx81Uq7ngXqgwuBaSzqfQUe/Eq3rlScYZ09Vv9fpTWfkmcJoeHvOh2BpApFyzbdnj FDGscTtmWSukdw28GfswrJkFN8nKTZJaxtYBStQX5trwfsJc4gLuG2IKOAbbwrlu1Dkt dadg== X-Gm-Message-State: AOAM532FAmUHOFi7P5EVADDzYzeDspVxXBh7+OFgwlQ/kxKty8BvYt3v bV5blJx3R35+hIAPXXD3wXUOVTRm7h5P+Wdf5bw= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_120437_327674_A8FCA3E4 X-CRM114-Status: GOOD ( 13.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 From patchwork Mon Sep 20 19:03:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 12506221 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=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 CD517C433F5 for ; Mon, 20 Sep 2021 19:06:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 97A936008E for ; Mon, 20 Sep 2021 19:06:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 97A936008E Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sBlpf/M7bqX5Z2M5AOkCg4r938Fcp8JAweCfXyDrc2s=; b=GFo36eYjvpsGxw6oipeWhkS6WQ w1SfwJov2UgGaownYI3glDjxAc4Da9XcpUNND+qXx0HUuevnTfcY4EcbT9FVjeMoSS6Kmh4+zMDb2 PUlCGN0PAOW6416PrA+0ghoNwHlQfRYTZldmZNPmlaicwA2IdKH9R8W9QjOFIAEWle8gcRfWU6d5r pgbZrMge8aJzNis8hye1OljYdaazOtTABhB6LojtGzc2gzO+PmOBygzlzl2cZPY8XyzhUYWUkCKZW 4eP6G9zWRxRwfOiudfQYWR5AgiCIZKY9oc0yPcqUEJaVdVwjLjW9ObFp56KqJWs/CiwySd1jU8bna c4l46GQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSOb7-002rVP-Ff; Mon, 20 Sep 2021 19:05:01 +0000 Received: from mail-pf1-x44a.google.com ([2607:f8b0:4864:20::44a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSOal-002rRS-Eo for linux-arm-kernel@lists.infradead.org; Mon, 20 Sep 2021 19:04:40 +0000 Received: by mail-pf1-x44a.google.com with SMTP id k29-20020aa7973d000000b0043937d52143so14012749pfg.10 for ; Mon, 20 Sep 2021 12:04:38 -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=qzAEfbo0gBC3by+vg7/mN2onaOGI++gGn1lEWAXL/J0=; b=TIvje/75HLPEPbCASCaGqWu63p0aaRi38LtrMRKc79saZRiACJVhAE049lXenxktKF oY8RNEVFHwGMjv+xb9uG6X2PRZ95FgyJoLU13e7n8v7En2ZTah47BrPv6slTvVAlSKR+ vEjDDrojxUzNswpEez0RDopiQJ5o7E8JdkZuaLATohfvuECu8C4z83jzn2lDJ3Aj+FlY 6ahdoPq9wbqLDFBVqKha8F/5YRH7TeaqgLCEWbswtbTsFq5FHt846Fh701HxlId+mudg XeJNGVSQ0E+D0LGbv5AvT265j/Yz4bJgr6jPkGitzmI3GQYO14ITxtGXNouO2q0UIq02 6l9Q== 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=qzAEfbo0gBC3by+vg7/mN2onaOGI++gGn1lEWAXL/J0=; b=kuWx55rsYU4Dwb8HvkqDxLJE5fZ1TaEjRSfbD5rwhSeQfkfVvlkWOw5e8SStTW+XKt AIoARp1FhhwyoA8POIyX6maoP+j8crap1cyG13yVjzUiwHjFgAzxHTtld5Qu4KPiSISl N7P0JHdIG1LeIDHWzS8neZJrf+PJeOtYc9aSBHezcCAWS6Gcq8l9uwTxd5FjYiJAakz8 QoTPJFrtk06vANrtg6vejL4JkpVgcRz7VnzOXezAEsNH9vY4oaBrJZ4x3D4XCZvxDcZF +dqMNDd+p1v0IC+97U5VcPvEF4buRtxT/7T1y5xGIjumpifxOfg987ANJ9MUHGbSLuRT ItJg== X-Gm-Message-State: AOAM531UWfe9w569t28JUThuZL1OGGtxT81HzPUBkwo9s/3c77yzdclt GAi/F6CIS3BRhANyNKhNn6/3esqi4s7YgHwz4a4= X-Google-Smtp-Source: ABdhPJx2oGjcRxfnoo6TGqBkK3fZFSDMnVL/4q/T0eUkytitMXnCP+uC02k36cXYYDp2tesX0kSgAon1C8VIyEhC1Kc= X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a63:1f45:: with SMTP id q5mr24380379pgm.385.1632164677870; Mon, 20 Sep 2021 12:04:37 -0700 (PDT) Date: Mon, 20 Sep 2021 19:03:47 +0000 In-Reply-To: <20210920190350.3860821-1-willmcvicker@google.com> Message-Id: <20210920190350.3860821-3-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 2/4] soc: samsung: change SOC_SAMSUNG default config logic From: Will McVicker To: Catalin Marinas , Will Deacon , Krzysztof Kozlowski 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_120439_549304_599CA48A X-CRM114-Status: GOOD ( 13.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Switch the default logic to enable SOC_SAMSUNG and it's sub-configs to be enabled by default via "default y if ARCH_EXYNOS" versus being selected by the ARCH_EXYNOS config directly. This allows vendors to disable these configs if they wish and provides additional flexibility to modularize them in the presence of a generic kernel. There are no .config differences with this change. The configs SOC_SAMSUNG, EXYNOS_CHIPID, EXYNOS_PM_DOMAINS, and EXYNOS_PMU still remain enabled by default. Signed-off-by: Will McVicker --- arch/arm64/Kconfig.platforms | 4 ---- drivers/soc/samsung/Kconfig | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 3a66ed43088d..6a006490c9b9 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -91,14 +91,10 @@ config ARCH_BRCMSTB config ARCH_EXYNOS bool "ARMv8 based Samsung Exynos SoC family" - select EXYNOS_CHIPID - select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS - select EXYNOS_PMU select HAVE_S3C_RTC if RTC_CLASS select PINCTRL select PINCTRL_EXYNOS select PM_GENERIC_DOMAINS if PM - select SOC_SAMSUNG help This enables support for ARMv8 based Samsung Exynos SoC family. diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig index 5745d7e5908e..9402c02bc9de 100644 --- a/drivers/soc/samsung/Kconfig +++ b/drivers/soc/samsung/Kconfig @@ -4,6 +4,7 @@ # menuconfig SOC_SAMSUNG bool "Samsung SoC driver support" if COMPILE_TEST + default y if ARCH_EXYNOS if SOC_SAMSUNG @@ -15,6 +16,7 @@ config EXYNOS_ASV_ARM config EXYNOS_CHIPID bool "Exynos ChipID controller and ASV driver" if COMPILE_TEST depends on ARCH_EXYNOS || COMPILE_TEST + default y if ARCH_EXYNOS select EXYNOS_ASV_ARM if ARM && ARCH_EXYNOS select MFD_SYSCON select SOC_BUS @@ -24,6 +26,7 @@ config EXYNOS_CHIPID config EXYNOS_PMU bool "Exynos PMU controller driver" if COMPILE_TEST depends on ARCH_EXYNOS || ((ARM || ARM64) && COMPILE_TEST) + default y if ARCH_EXYNOS select EXYNOS_PMU_ARM_DRIVERS if ARM && ARCH_EXYNOS # There is no need to enable these drivers for ARMv8 @@ -34,6 +37,7 @@ config EXYNOS_PMU_ARM_DRIVERS config EXYNOS_PM_DOMAINS bool "Exynos PM domains" if COMPILE_TEST depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST + default y if (ARCH_EXYNOS && PM_GENERIC_DOMAINS) config SAMSUNG_PM_DEBUG bool "Samsung PM Suspend debug" From patchwork Mon Sep 20 19:03:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 12506225 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=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 8B920C433EF for ; Mon, 20 Sep 2021 19:07:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57FB160F6B for ; Mon, 20 Sep 2021 19:07:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 57FB160F6B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SXCQqS5k2GnspDoP9OwBxihugQQLn3/v1t8/VcgbsnY=; b=qP4huBK6amGicGtwNcaryq+rkG 1RyrAke2yQae8DB55GrNm0s8fXMDxbl1vKmKetfKW68GzSiyDuuWcwqPdni/KuLoP1JmKIt3sA2uR EHOdLh2jWeuFMvwb/CsSdOP4tNDBKjc61s81Qqu/DkNSwDjoU29xKSyRxBwrCfvWIorTFy7hTE4vY iUR5wt3tup7M2xTgtl239MAPk7u0tdDP6pqQmbTRVERGwwOjq/fquJYyrmB/BGgS8gsKu1A4sIknf YaoULw52CAL5x7eZ+OXCraoIit44O7/aWco4RyOV+kzg430tm6nAwiD7+F2/V1m5Rwfxp+v2i+m3H azv0ddOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSObk-002rn0-I0; Mon, 20 Sep 2021 19:05:41 +0000 Received: from mail-qt1-x849.google.com ([2607:f8b0:4864:20::849]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSObA-002rWU-Qc for linux-arm-kernel@lists.infradead.org; Mon, 20 Sep 2021 19:05:06 +0000 Received: by mail-qt1-x849.google.com with SMTP id o9-20020ac80249000000b002a0c9fd54d5so184139359qtg.4 for ; Mon, 20 Sep 2021 12:05:02 -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=341NPsK1ybPLUbD5QtJe4YMBG0Z2roU4z5iQWq3CxjE=; b=PY2KzdrPPFD4VV7+T49T1pYsHJHNpfX+Yb4N83tMgwWRKpG8VTQwwypwHR0xTEaO7Y KujqtZxRb/QqvZU6nzLfNz9z4pP3L1tn9ERsb3qyD+jlkqruHiN9FUGcAAsQxCIVzLYT N4XNEC8hiDrDVWHw3FvjQuhLg0lhIRW4tL6IN3R39HF3CnpkS7X7Oh9gveDpBWz0Ljx7 BhqR2Q1avZIE30a24d5cL23W+EUIfhZJeRE60EVAL31bOCo+CQg5RyC+d6oCzrNz1FKQ T8hELjPZC1TTzhG+n0yG2rg+8XaFhavT9So4+d1utCeW0j8DGOQBtyZ52O9yD5gwZGMF 8o3g== 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=341NPsK1ybPLUbD5QtJe4YMBG0Z2roU4z5iQWq3CxjE=; b=xKN1Atmvrn1yQoH89/N2KA2trqhHcbb9XxWQ8WK1S0edC37JKXoYDeU0M7IDGgIFJz 4uaDWZJ55JCZM4Cw+YS7wCmC+ByoBFGfm1Edt2iHOq0BX9u2VI/0x0pEMufqEbllrUF7 jr4mzBUuX9goQloaNbxHJdBj6+SXih2WT8Oe8SkGFUs8Y3mwh3jiAFL+hZ9vVRySZ6O9 0DlckEySg23ZuBXDG2b8azhuDXwGxnbyUlRga9qg82CkMx3kXkoE8es9pMIDAFD5+DIu ulPge0lB4ECrqXduZOf7BbQ4FQMQ+xiB02yTHN0Mf312X4LH2loVYyz1d0SoBPJWexvJ afzA== X-Gm-Message-State: AOAM533rPOHi68vIhO2aM5A878NdI1fajEd6+LAinKB45dNfBMxTxruR Q5va5h0KHhb6RmNHxBd/nPJChQj+TlN8JmFT8f8= X-Google-Smtp-Source: ABdhPJx92NOBqmltQd2ehK4f/WwOBUNSGREkXv8mTXpax7NQQDNXJUOgCnldX1b1QMJdT+igRJpcRZgk+LTJWoLX5qA= X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a05:6214:12af:: with SMTP id w15mr17401131qvu.66.1632164680013; Mon, 20 Sep 2021 12:04:40 -0700 (PDT) Date: Mon, 20 Sep 2021 19:03:48 +0000 In-Reply-To: <20210920190350.3860821-1-willmcvicker@google.com> Message-Id: <20210920190350.3860821-4-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 3/4] pinctrl: samsung: change PINCTRL_EXYNOS default config logic From: Will McVicker To: Catalin Marinas , Will Deacon , Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Linus Walleij 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-gpio@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_120504_967776_0E6FED3A X-CRM114-Status: GOOD ( 13.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Switching the default config logic of PINCTRL_EXYNOS to use "default y if ARCH_EXYNOS" versus having ARCH_EXYNOS directly select the config. This gives vendors the flexibility to disable the config or modularize it in the presence of a generic kernel. Verified this change doesn't effect the .config. Signed-off-by: Will McVicker --- arch/arm64/Kconfig.platforms | 1 - drivers/pinctrl/samsung/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 6a006490c9b9..a884e5da8b0f 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -93,7 +93,6 @@ config ARCH_EXYNOS bool "ARMv8 based Samsung Exynos SoC family" select HAVE_S3C_RTC if RTC_CLASS select PINCTRL - select PINCTRL_EXYNOS select PM_GENERIC_DOMAINS if PM help This enables support for ARMv8 based Samsung Exynos SoC family. diff --git a/drivers/pinctrl/samsung/Kconfig b/drivers/pinctrl/samsung/Kconfig index dfd805e76862..483acb8ac1f6 100644 --- a/drivers/pinctrl/samsung/Kconfig +++ b/drivers/pinctrl/samsung/Kconfig @@ -12,6 +12,7 @@ config PINCTRL_EXYNOS bool "Pinctrl common driver part for Samsung Exynos SoCs" depends on OF_GPIO depends on ARCH_EXYNOS || ARCH_S5PV210 || COMPILE_TEST + default y if ARCH_EXYNOS select PINCTRL_SAMSUNG select PINCTRL_EXYNOS_ARM if ARM && (ARCH_EXYNOS || ARCH_S5PV210) select PINCTRL_EXYNOS_ARM64 if ARM64 && ARCH_EXYNOS From patchwork Mon Sep 20 19:03:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 12506223 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=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 45779C433EF for ; Mon, 20 Sep 2021 19:06:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 131E06008E for ; Mon, 20 Sep 2021 19:06:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 131E06008E Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wnGaHL2Ah+lzFwHUWduq7LC3RP9NTrmM5akVzqb/lJg=; b=sKL29U1zbEjfj7uQX7ZSit9/VH mAigswEfs4Xj4mdoN0s4EDXFPDq0fn2BXuOONy5dGPFeTW36naIE1AWAytB8P88RqPQjoGtluI55v MUywXCAFSjDQ6neZAaWFGyHPsKl7+S3UQBb5K+ik4lEgTpSiqmca11128cz4ziZ9dv8K6zuun/bpL TqN1v1uA/LghWAj7d8GkVkD88XUnLA5VYUMIk1DrHAHBT7O5uCs51RPjwTQ8V53xoU08Mwp5Fd00O E4qUTGrrjouAML7b/+0mdRx7R8J8WBPdwEHFPd+nfFoklmet5W9GEnJeU7iQLPnnI9+Aqz5dxsEFR MZbKk0cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSObP-002rcn-Tz; Mon, 20 Sep 2021 19:05:20 +0000 Received: from mail-pg1-x54a.google.com ([2607:f8b0:4864:20::54a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mSOap-002rSG-9d for linux-arm-kernel@lists.infradead.org; Mon, 20 Sep 2021 19:04:44 +0000 Received: by mail-pg1-x54a.google.com with SMTP id a5-20020a656405000000b002692b7b6d95so16020172pgv.11 for ; Mon, 20 Sep 2021 12:04:42 -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=F6cGi29a7AfEikhLMTK8OrCpcnf5YNIMe8XqMKTgBWE=; b=WaybUjqVu/zv+vIZpFhmoCtqsH0J+cSC+hsipU29HLqreSTA/oMTEV/usynjaGKZv9 msiqVmzTwaISJLYoVuxNtt/gOJvHGb5rzFhqx8PlX8iGzC6ckmoHCoC+/hATCx2U31/j TkVCx8hqU8GF/UDHHT56XsQM+OTxqhNkZk9Y/iPCywv/zZ7F4ZAIi8ehJxEe76mkRz7m hH6zzWmqGPwAO8mqf7wcq0CCIre4iWQ3SvtB3uVg9xWldB19R5ZESw1sLbOiM9W/8gnD Z3arInj4gTz0ScRRtSPLos5dgfQAQrczWtK0J4PeTHKcyQw2hrt9Qdw4zYI2rIzCUBRJ /bdw== 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=F6cGi29a7AfEikhLMTK8OrCpcnf5YNIMe8XqMKTgBWE=; b=CU2QlolElwxNJ0spDYGGLd2EWNaR1AQGymPox0P9aFKgHVmGyA20sSx5wWhmju7gQI 0gdfGR12A2GtjIDieSwXN3cK3P1+Ql77Oi7EklRIuOhBkqxV5s21jZIUD18l+4myLoso 05JO1kav+0q5wab/AnKYzASocV8d6bYXOm/9csMThjgGhKKTgvtURKcC+SIRRPL8nWrU VMNum93UVzBW5YV/JQZ8iHXhs90IYBr5K9bHZNYpmeBk+LGPD5f4iqDNhmzDW/RpPfFA F2hVuGQcmMdVpYNUIINyhZa0jL1ZD9Lo80+qEgwM6ni1WhxucRYLSw/tmS8U49ScxfqK W/uQ== X-Gm-Message-State: AOAM533mviVowPvT5pU1JHy0eRAPXe5NO4Q1fbngCSHPKcCs/Yc7n22X pTO3FEmRx7lf3kzN/XPQ1Flb05xgqx/yk2tm5uI= X-Google-Smtp-Source: ABdhPJxzkMfeAZXRaAianGXffx1iCvr9RAwg8Omo/kfgyxb2a4u5Shp06Gkd/wq7B2gWBPNgyV3oA9U2ASPf6mLOHUo= X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a05:6a00:1141:b0:440:3c27:807c with SMTP id b1-20020a056a00114100b004403c27807cmr26237287pfm.71.1632164681943; Mon, 20 Sep 2021 12:04:41 -0700 (PDT) Date: Mon, 20 Sep 2021 19:03:49 +0000 In-Reply-To: <20210920190350.3860821-1-willmcvicker@google.com> Message-Id: <20210920190350.3860821-5-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 4/4] rtc: change HAVE_S3C_RTC default config logic From: Will McVicker To: Catalin Marinas , Will Deacon , Alessandro Zummo , Alexandre Belloni Cc: Lee Jones , Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210920_120443_383678_4A6D8D3A X-CRM114-Status: GOOD ( 14.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Switches the default config logic of HAVE_S3C_RTC to use "default y if (ARCH_EXYNOS && RTC_CLASS)" versus having ARCH_EXYNOS directly select it. This provides vendors flexibility to disable the config if desired or modularize it in the presence of a generic kernel. Verified this change doesn't impact the .config. Signed-off-by: Will McVicker Acked-by: Alexandre Belloni --- arch/arm64/Kconfig.platforms | 1 - drivers/rtc/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index a884e5da8b0f..f9f829aab511 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 HAVE_S3C_RTC if RTC_CLASS select PINCTRL select PM_GENERIC_DOMAINS if PM help diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e1bc5214494e..40afdb37d2a5 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -1406,6 +1406,7 @@ config RTC_DRV_OMAP config HAVE_S3C_RTC bool + default y if (ARCH_EXYNOS && RTC_CLASS) help This will include RTC support for Samsung SoCs. If you want to include RTC support for any machine, kindly