From mboxrd@z Thu Jan 1 00:00:00 1970 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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 -- 2.33.0.464.g1972c5931b-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 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 D10A3C433F5 for ; Tue, 21 Sep 2021 02:52:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1C4260EB2 for ; Tue, 21 Sep 2021 02:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245206AbhIUCyM (ORCPT ); Mon, 20 Sep 2021 22:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349471AbhIUC0k (ORCPT ); Mon, 20 Sep 2021 22:26:40 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 749E9C1E3A54 for ; Mon, 20 Sep 2021 12:04:42 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id f9-20020a1709028609b0290128bcba6be7so7769209plo.18 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=ygjd/8PUqH5FSswgh54uTISyRMfSoHD+eczP2XMkHc/J0+FP58TfWaqqUQC6l7NIKU mL8udDec0AQL8ZcR5WS4apfDRXd+GJ66oICFbeI8fJanvf+bssLYvvUsj/bhvQJgKrnJ Q6e6E0McokSZpdAHMl4MrgYgCnH769UR56GQcMSVaWokLp1HMBFPgevVYQYwTv3E6lAI x55GtsTdlwcjI9BQTEgKEq+0G4PAhMIBt7sNWYi4n15VoUxHgU0lbauKsZXz3n0nDiM2 tH8a20UsSgVxnP5cfbY82/+k37NcJZG3pjHtjVbNocTikW1EYJcHe13d9YWVKs4xN7zH D3aQ== X-Gm-Message-State: AOAM5327K9SMg3zXYTybNwT0gnxSTjghLj8zntKup0nbIK3N0nr9yYns pW5nleLZqlmjqun7mZFTdoHn3ME/r9N4E8yg3kY= 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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 -- 2.33.0.464.g1972c5931b-goog