Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4529159pxb; Tue, 5 Oct 2021 05:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqTKn/tYOJEkZI+nSUSeHUjlJYzbKWsNPZw19bKJDcAJGnDdJ4uZnZlWpWa2NaSRaFpk1S X-Received: by 2002:adf:9784:: with SMTP id s4mr13994787wrb.277.1633435912953; Tue, 05 Oct 2021 05:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633435912; cv=none; d=google.com; s=arc-20160816; b=MmvrtlsI4nNtbszGI5iAp0NrI0w2uoyeIX4aIBKo1v1p5/hDkqhO7aNgBOxSue88xt r4orrL37AO5aGL+ItWxyiy89uP4vzhF2ZuoKJXLnu0azWfIf60TzkqcsKLGF6to1kCVU PPgsOKXxgzr67EO+FTmNw6C7ETYqRVlrDVF/ZkfJmAWA7RJ1qNOqCg1GFTRgE/dmCGoK UML+XqSRFFX9eATyBjiP071qNqKhIfi5BsMnGgoQidUGaeS6I1lAtyi/1GGsFmn0JN2a lwSCzZsgA30sBNUOIqy9touZoyjHLe6THmqTVhgoEVjyXihAESgUwO/CoX4eK6lbEfA1 C6ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NMod5kv6mgBP+Lyuh+sVjFWXXjpByRzbJbxi4k3EgsI=; b=Dux88wQkgfUaifJlBjGTzdz0eNsNFC6l+h+61NHL20kB2D2xyFBWDKwggsfk/jMZ6L BoS0l9Np/2rUTI0bs0blUkH1OiIZe0hNWL+In1t1bHREWx8VXa5sZFkW444bUv1eeIKT aHPmF58QM0oxqiqk/MAIUu80rCn94L+Pgjk2Y5wFYcPIoq64//dml7j6bi+JtX2LxTad P252+So9ShwmJRUiwSLV9P40OnvKkQHtEDho8VOvJmlEPN0EimMrtrlbCG06rIDO/NMW B3eDFlfFtGfpTdoiY3yQaQ1NcM+cL4mCpxtMTNUJ93nptL7kWPS3iley9+9b5ppwsmqS ++dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dKw9bQhz; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si15819255edz.212.2021.10.05.05.11.28; Tue, 05 Oct 2021 05:11:52 -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=@linaro.org header.s=google header.b=dKw9bQhz; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230500AbhJEMJd (ORCPT + 99 others); Tue, 5 Oct 2021 08:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234629AbhJEMJ2 (ORCPT ); Tue, 5 Oct 2021 08:09:28 -0400 Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E4B1C061753 for ; Tue, 5 Oct 2021 05:07:37 -0700 (PDT) Received: by mail-vs1-xe2c.google.com with SMTP id p2so917405vst.10 for ; Tue, 05 Oct 2021 05:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NMod5kv6mgBP+Lyuh+sVjFWXXjpByRzbJbxi4k3EgsI=; b=dKw9bQhzayOGjFRE3NoOdUQWH6uCbVW9FfwtlS53KSymDvI19CKdfrKmX4kio/TAU3 0Jn5zcm9ITLezTMjCY2YQTAceLs8c56SZI+78Kub+aBf9DKi3Nt1doq4P9JblkI+hFGz pD8HBW34/F8SanhmG42y2fvoUu/6vjVDcQp2GZLaYh8avPeeXo9VgiPa7jVn6kMBsWd9 doCLBRX4X4bZeG1E7J1yT0saKVyTFjN1i165ZKVdyySLsB1iNUaVpwrKPhUQdnszS4gM hN8JpbHN7UxS2XE9SceLySXOouV4JQf93DgjMpdy9L290wcId5KJ9ob5cQanl36JWBJo U19Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NMod5kv6mgBP+Lyuh+sVjFWXXjpByRzbJbxi4k3EgsI=; b=6pKYvbpsUcmtvSSlgBfbfLtwx7GIvtQR2PwhqVrcmInv/Ou3xuLPbujVB5VSs0E9fn SZu4WkgS23cywr5W7ecsElxTFEFbQZg2+VPxqkAONsbJdX0EqYtV5eZsO/gL9q9DoD2e a4EWCLVwGrGoImRAmPPT/5iKCRcqEC28kO8HmvN1IRJ34UmG4pAdDWxtuEFhmxTMvK// PdDDx9wisvnzPkUbIDeGyF1+LMBJcgBLTrkb6X7snsYMoEwueWguTvSOONrfExCIX+lc jm7Mb7wrCTyidIrsUseyI0S2PEXoVIaF4CWTtSv/5+L4gqP4mwY6No1ABFEmBiWLiFML +JFw== X-Gm-Message-State: AOAM533BoMqXg510iYkshYdmrzBlLuf+iR6XWOqgNTIAcbKZEUCyfb5d 2jD/0MUEjHz5RkdfMzE8nIGaLspNVxXIHMPbQw8MIA== X-Received: by 2002:a67:1781:: with SMTP id 123mr17925487vsx.1.1633435656646; Tue, 05 Oct 2021 05:07:36 -0700 (PDT) MIME-Version: 1.0 References: <20210919093114.35987-1-krzysztof.kozlowski@canonical.com> <20210919093114.35987-3-krzysztof.kozlowski@canonical.com> In-Reply-To: <20210919093114.35987-3-krzysztof.kozlowski@canonical.com> From: Sam Protsenko Date: Tue, 5 Oct 2021 15:07:25 +0300 Message-ID: Subject: Re: [PATCH v2 2/3] soc: samsung: exynos-chipid: convert to a module To: Krzysztof Kozlowski Cc: Russell King , linux-arm Mailing List , Linux Samsung SOC , Linux Kernel Mailing List , Marek Szyprowski , Sylwester Nawrocki , Bartlomiej Zolnierkiewicz , Tomasz Figa , Arnd Bergmann , Olof Johansson , Alim Akhtar , Chanwoo Choi , Pankaj Dubey Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 19 Sept 2021 at 12:31, Krzysztof Kozlowski wrote: > > Exynos ChipID and ASV (Adaptive Supply Voltage) driver is not essential > to system boot and it can successfully be built and loaded as module. > > This makes core kernel image smaller and reduces the memory footprint > when multi-platform kernel is booted on non-Exynos board. Usually it is > also distro-friendly. > > Add multiple authors of the driver since its conversion from > mach-exynos, ordered alphabetically by first name. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Sam Protsenko > drivers/soc/samsung/Kconfig | 3 ++- > drivers/soc/samsung/Makefile | 3 ++- > drivers/soc/samsung/exynos-chipid.c | 11 ++++++++++- > drivers/soc/samsung/exynos5422-asv.c | 1 + > 4 files changed, 15 insertions(+), 3 deletions(-) > > diff --git a/drivers/soc/samsung/Kconfig b/drivers/soc/samsung/Kconfig > index 1f643c0f5c93..fe139f26d093 100644 > --- a/drivers/soc/samsung/Kconfig > +++ b/drivers/soc/samsung/Kconfig > @@ -13,13 +13,14 @@ config EXYNOS_ASV_ARM > depends on EXYNOS_CHIPID > > config EXYNOS_CHIPID > - bool "Exynos ChipID controller and ASV driver" if COMPILE_TEST > + tristate "Exynos ChipID controller and ASV driver" if COMPILE_TEST > depends on ARCH_EXYNOS || COMPILE_TEST > select EXYNOS_ASV_ARM if ARM && ARCH_EXYNOS > select MFD_SYSCON > select SOC_BUS > help > Support for Samsung Exynos SoC ChipID and Adaptive Supply Voltage. > + This driver can also be built as module (exynos_chipid). > > config EXYNOS_PMU > bool "Exynos PMU controller driver" if COMPILE_TEST > diff --git a/drivers/soc/samsung/Makefile b/drivers/soc/samsung/Makefile > index 0c523a8de4eb..2ae4bea804cf 100644 > --- a/drivers/soc/samsung/Makefile > +++ b/drivers/soc/samsung/Makefile > @@ -1,8 +1,9 @@ > # SPDX-License-Identifier: GPL-2.0 > > obj-$(CONFIG_EXYNOS_ASV_ARM) += exynos5422-asv.o > +obj-$(CONFIG_EXYNOS_CHIPID) += exynos_chipid.o > +exynos_chipid-y += exynos-chipid.o exynos-asv.o > > -obj-$(CONFIG_EXYNOS_CHIPID) += exynos-chipid.o exynos-asv.o > obj-$(CONFIG_EXYNOS_PMU) += exynos-pmu.o > > obj-$(CONFIG_EXYNOS_PMU_ARM_DRIVERS) += exynos3250-pmu.o exynos4-pmu.o \ > diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c > index dcd9a08ce706..b2627a3a127a 100644 > --- a/drivers/soc/samsung/exynos-chipid.c > +++ b/drivers/soc/samsung/exynos-chipid.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -128,6 +129,7 @@ static const struct of_device_id exynos_chipid_of_device_ids[] = { > { .compatible = "samsung,exynos4210-chipid" }, > {} > }; > +MODULE_DEVICE_TABLE(of, exynos_chipid_of_device_ids); > > static struct platform_driver exynos_chipid_driver = { > .driver = { > @@ -137,4 +139,11 @@ static struct platform_driver exynos_chipid_driver = { > .probe = exynos_chipid_probe, > .remove = exynos_chipid_remove, > }; > -builtin_platform_driver(exynos_chipid_driver); > +module_platform_driver(exynos_chipid_driver); > + > +MODULE_DESCRIPTION("Samsung Exynos ChipID controller and ASV driver"); > +MODULE_AUTHOR("Bartlomiej Zolnierkiewicz "); > +MODULE_AUTHOR("Krzysztof Kozlowski "); > +MODULE_AUTHOR("Pankaj Dubey "); > +MODULE_AUTHOR("Sylwester Nawrocki "); > +MODULE_LICENSE("GPL"); > diff --git a/drivers/soc/samsung/exynos5422-asv.c b/drivers/soc/samsung/exynos5422-asv.c > index ca409a976e34..475ae5276529 100644 > --- a/drivers/soc/samsung/exynos5422-asv.c > +++ b/drivers/soc/samsung/exynos5422-asv.c > @@ -503,3 +503,4 @@ int exynos5422_asv_init(struct exynos_asv *asv) > > return 0; > } > +EXPORT_SYMBOL_GPL(exynos5422_asv_init); > -- > 2.30.2 >