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