Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp632932pxb; Wed, 29 Sep 2021 06:39:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnPTY3MZBQwPVW4STXOJ2t01GKTAMjnwVnexwSquCkZO/WNN+xRj5bwxUaxJSM7Ts4nyfP X-Received: by 2002:a63:d40a:: with SMTP id a10mr38699pgh.7.1632922788360; Wed, 29 Sep 2021 06:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632922788; cv=none; d=google.com; s=arc-20160816; b=bXXktnXkjv4Fw4IudwYcCfxMWMkjRMqm9GMOxG7SDGCbosvEJdj+04EI1koenr5KvP E0r2lNMr1Clc/raL4IsiTAqI0CFjwbm54k1wX+rcsVl316XDmeA7hhgrv2hWjdKgWlTL 0Uonb9qVLLGhLGBy9Tv2qjQFm8Cdt9pTLkBN+jEATK1s4/Af2/twUJIx2ki9LwSs2ORG STpJOn/EYwpU65mRf5Vb/8KAc7YH8nuUNELtQojPM90xWDVdydMAc7S6nZP65fNKl1n0 dhAGApdL9MXYA2QOJQc1rWjqjKtHOKo1NsfG1fAD5TTLikJf9RCqG7s4VlZkbG2sTisN K0bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=IJ3OurHG/eMoa5Ez3cxwk82+OEdomsIA6378FAznzbU=; b=ZamfBJ+QLp+iJeEriBXnEvbwUKFgTIdtZm32o3rNmIZXcu+SHwUKK7Cehpn9mFA6Z4 2WEXvStdci7DvvF2bVWah72yk2+u7YBaAjWD4fpOPtXEwNLSkX/5dThqHYB4Qy22WjSu l+0Z6m/UsGEOWgtSzS6wBuey19ZOdVVTvrithPRmZlU/Eh+UKgnqjjF0Rp2BhcV8UKkX 6qOs9MKbNJAqAsSnzL9Nu4JHziwKlsDvX8KG1rPm8PgjrWPjM4XxVNldn+DDVPmnxJdQ qSbFkyu2SaD+DXNVj6yv626G6hndspG5zjn2eqRJEQWDaO7nbhmvtzWifaRVQ9IgBY0e P6JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Jgcjd3gz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si1645664pjf.47.2021.09.29.06.39.28; Wed, 29 Sep 2021 06:39:48 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Jgcjd3gz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344277AbhI2Nim (ORCPT + 99 others); Wed, 29 Sep 2021 09:38:42 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:50108 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344276AbhI2Nil (ORCPT ); Wed, 29 Sep 2021 09:38:41 -0400 Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 938D540264 for ; Wed, 29 Sep 2021 13:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632922619; bh=IJ3OurHG/eMoa5Ez3cxwk82+OEdomsIA6378FAznzbU=; h=To:Cc:References:From:Subject:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=Jgcjd3gzUNd9zvgicFXZyfLywA2NCZRDDkZNlb2PygLc8Ec9nYRiTYt2a/jrrOo3g kwVf5ZCxCYApy/GLxXRCiAZN6/5NUH42DBwb65Cfg0nBXGZ+f393wvPzRCTZgPlqyT ODpFTWYaHn6RQ2bE7y5lIyPajGF9RKcWjXA3vnRWot+wzMGYQjFblcTC7bGnuIc26J z1ea8HokGuluH1QzfKTzNz+GBjaZsmq8TONoJBzMM9gX+UbQLFkzvi7sv6cgo7XAT2 9NtO+0AjczK5oyUM1BzbGN0j7RJY76ETMt2z1TMp4H36pR6bkFe4QVTiBVX3oTSUf4 9qLIMaZ5kl2Ew== Received: by mail-lf1-f72.google.com with SMTP id h27-20020a0565123c9b00b003fca9e11144so2374332lfv.19 for ; Wed, 29 Sep 2021 06:36:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IJ3OurHG/eMoa5Ez3cxwk82+OEdomsIA6378FAznzbU=; b=wRRe78ecLQo9RG19oACsNUfjzec3uiKY38/2QkULJ7LxnmBVcEnylDg1CLdH5Iig3h JegbVnxXcdmSFBCWtOJSg/5f+iWRKbFD5JM/H+js3SwXPbcqTiAQrTkpid8/Lq+efi1F BVe3UDdl+rN01NsOaybkhppcZbCSG6gBbulLhVfltXFeBQUFVned3qqJZgaHIUNnNMtJ 0gkZQdI5i6Pj0z6vpU3QVem65BERrqGfDjgrnPn2Cnen1ooqXQkLiZUAzGp38UlSrsb7 Kxdu2/pB9695djW8i8/EQkM8xhsN9YyNKBx5ev00QAohCuF1ym7pza8n8ayWhd3RkpYk FlxA== X-Gm-Message-State: AOAM533DWAUxpshBWVoM+H5YmVQqlvqxcbx6WZVG7QiZCCY+qQuRZ9Us /7sLpz4LTo7M3NbFvlpeiLa0ll7Oic1fhB4AtrDhOTrp2A2j4j1SyX9E1zpHEyBw5RGLzAdLBSW 4WCZBKKFyMiiwSDQkApfLT3DTGSscHE82QvXtcZwC1A== X-Received: by 2002:a05:6512:b0f:: with SMTP id w15mr11643582lfu.164.1632922618893; Wed, 29 Sep 2021 06:36:58 -0700 (PDT) X-Received: by 2002:a05:6512:b0f:: with SMTP id w15mr11643554lfu.164.1632922618705; Wed, 29 Sep 2021 06:36:58 -0700 (PDT) Received: from [192.168.0.197] ([193.178.187.25]) by smtp.gmail.com with ESMTPSA id v26sm269056lja.22.2021.09.29.06.36.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Sep 2021 06:36:58 -0700 (PDT) To: Will McVicker , Russell King , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Linus Walleij , Alessandro Zummo , Alexandre Belloni , John Stultz , Thomas Gleixner , Arnd Bergmann , Olof Johansson Cc: Lee Jones , Geert Uytterhoeven , Saravana Kannan , 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, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org References: <20210928235635.1348330-1-willmcvicker@google.com> <20210928235635.1348330-12-willmcvicker@google.com> From: Krzysztof Kozlowski Subject: Re: [PATCH v2 11/12] soc: samsung: pm_domains: modularize EXYNOS_PM_DOMAINS Message-ID: <976e57f8-07ee-4698-b29d-dd854b79e570@canonical.com> Date: Wed, 29 Sep 2021 15:36:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210928235635.1348330-12-willmcvicker@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/09/2021 01:56, Will McVicker wrote: > Convert the Exynos PM Domains driver into a module. This includes > setting EXYNOS_PM_DOMAINS as tristate and removing it from being > auto-selected by ARCH_EXYNOS. Instead, the config will use > "default y if ARCH_EXYNOS" which allows us to set it to a module via the > defconfig now. > > Signed-off-by: Will McVicker > --- > arch/arm/mach-exynos/Kconfig | 1 - > arch/arm64/Kconfig.platforms | 1 - > drivers/soc/samsung/Kconfig | 3 ++- > drivers/soc/samsung/pm_domains.c | 12 +++++++----- > 4 files changed, 9 insertions(+), 8 deletions(-) > > diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig > index e97e1d8f7b00..2ad19a08bf06 100644 > --- a/arch/arm/mach-exynos/Kconfig > +++ b/arch/arm/mach-exynos/Kconfig > @@ -15,7 +15,6 @@ menuconfig ARCH_EXYNOS > select EXYNOS_THERMAL > select EXYNOS_PMU_ARM > select EXYNOS_SROM > - select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS > select GPIOLIB > select HAVE_ARM_ARCH_TIMER if ARCH_EXYNOS5 > select HAVE_ARM_SCU if SMP > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms > index e5e4b9b2fb97..e44d5e9f5058 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 EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS > select HAVE_S3C_RTC if RTC_CLASS > select PINCTRL > select PM_GENERIC_DOMAINS if PM > diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig > index fdf1162ec98b..e4743c29f73c 100644 > --- a/drivers/soc/samsung/Kconfig > +++ b/drivers/soc/samsung/Kconfig > @@ -37,8 +37,9 @@ config EXYNOS_PMU_ARM > depends on ARCH_EXYNOS || (ARM && COMPILE_TEST) > > config EXYNOS_PM_DOMAINS > - bool "Exynos PM domains" if COMPILE_TEST > + tristate "Exynos PM domains" +Cc Arnd and Olof, Unlike in clocks and soc drivers changes, you mentioned the removal of "if", however it is not explained why you do it. Why is the most important part of commit message, not "what". Because "What" we can easily see. But "why" is sometimes trickier. Please also explain why Exynos is so special that we deviate from the policy for all SoC that critical SoC-related drivers have to be enabled (built-in or as module). https://lore.kernel.org/lkml/CAK8P3a1TY+XT1vF=wAh0XA5BXU5Z6Ab1d4DekXbVsN9aj3aL5w@mail.gmail.com/ We follow specific convention or policy and changing it requires some discussion, not silently under the "modularize" hood. It really looks like you want to sneak it in. P.S. I recommend also to Cc Soc maintainers, because their point of view here is crucial. > depends on (ARCH_EXYNOS && PM_GENERIC_DOMAINS) || COMPILE_TEST > + default y if ARCH_EXYNOS Best regards, Krzysztof