Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1600548

Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units
Date Tue, 14 Mar 2017 16:10:01 +0100
Message-ID <tkWff-1T2-9@gated-at.bofh.it> (permalink)
References <tkDvY-501-21@gated-at.bofh.it>
X-Original-To Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=quH+sMBOYPu4xxvoCsUidGqt+AtyVK5EiXIsL7Z9EJU=; b=RG4tUKuTd0mNcSwd8bhBf6asMW1Rxy1p8ya2DirPoUX4r7WYttoXZJqQk0jM3IMEOV 6/wk/Wx4JmN3yIXbCI5ukysACVHYdWh3PKcPIWbrIGFo0vX0ub0jj0gRZkNvW+5HDpoW g/MY3kHSw0sJ7+MIuDUjG3D2jc1n6oHJVk+wU=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=quH+sMBOYPu4xxvoCsUidGqt+AtyVK5EiXIsL7Z9EJU=; b=lTDBqgBhji0qzrKfJ+q2KdgHOlkpAyfhoLRHkoIVX2r/fUUt2TcbuO7bh+dHkJkS5Y UJVD0T42mKtijr3ZoYjswuSubpI6thrF6jWt8RtUBxAXN4Xcv0cIavcTCGtg8w5KOvnm /lXWIoVCkC0wRVt9Z2loca/QLb1wmjNAINIATk7QLB4kSItF7WJjM+Ro8oNxNaLWvQXB +eyXQGOT61C3HJWNE3SXOjjrTwkAkSwSlpXBQOzgJp0A4NKgYD2hgvp7X5CdmxFtiWy1 W9wULRYAkF0XvN6qtd7wht2j210c2zTmBR/D3wtewewUAgqxm6LTw6s0yur7qOV/virT SwYQ==
X-Gm-Message-State AFeK/H2BcSWKzMqeTdbPbh8W89Wuox+LoBYA/zbKaeRsZis027GXupEhyh812t9O4znwnJFY
X-Received by 10.28.46.73 with SMTP id u70mr14909057wmu.54.1489503756353; Tue, 14 Mar 2017 08:02:36 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.6.2-neo (2016-08-21)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 85
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org
X-Original-Date Tue, 14 Mar 2017 15:02:34 +0000
X-Original-Message-ID <20170314150234.z4omelqdwox5tts4@dell>
X-Original-References <20170313190727.8069-1-andriy.shevchenko@linux.intel.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1600548

Show key headers only | View raw


On Mon, 13 Mar 2017, Andy Shevchenko wrote:

> Crystal Cove and Whiskey Cove are two different PMICs which are
> installed on Intel Atom SoC based platforms.
> 
> Moreover there are two independent drivers that by some reason are
> supposed (*) to get into one kernel module.
> 
> Fix the mess by clarifying Kconfig option for Crystal Cove and split
> Whiskey Cove out of it.
> 
> (*) It looks like the configuration was never ever tested. The line in
>     Makefile is actually wrong.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/Kconfig          | 9 +++++++--
>  drivers/mfd/Makefile         | 2 +-
>  drivers/platform/x86/Kconfig | 1 +
>  3 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 55ecdfb74d31..83609acd55ef 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -425,18 +425,23 @@ config LPC_SCH
>  	  System Management Bus and General Purpose I/O.
>  
>  config INTEL_SOC_PMIC
> -	bool "Support for Intel Atom SoC PMIC"
> +	bool "Support for Crystal Cove PMIC"
>  	depends on GPIOLIB
>  	depends on I2C=y
>  	select MFD_CORE
>  	select REGMAP_I2C
>  	select REGMAP_IRQ
>  	help
> -	  Select this option to enable support for the PMIC device
> +	  Select this option to enable support for Crystal Cove PMIC
>  	  on some Intel SoC systems. The PMIC provides ADC, GPIO,
>  	  thermal, charger and related power management functions
>  	  on these systems.
>  
> +config INTEL_SOC_PMIC_BXTWC
> +	tristate
> +	select MFD_CORE
> +	select REGMAP_IRQ

I think you need to make mention that this is Whiskey Cove?

>  config MFD_INTEL_LPSS
>  	tristate
>  	select COMMON_CLK
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index 31ce07611a6f..201aeaf5112a 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -207,8 +207,8 @@ obj-$(CONFIG_MFD_RT5033)	+= rt5033.o
>  obj-$(CONFIG_MFD_SKY81452)	+= sky81452.o
>  
>  intel-soc-pmic-objs		:= intel_soc_pmic_core.o intel_soc_pmic_crc.o
> -intel-soc-pmic-$(CONFIG_INTEL_PMC_IPC)	+= intel_soc_pmic_bxtwc.o
>  obj-$(CONFIG_INTEL_SOC_PMIC)	+= intel-soc-pmic.o
> +obj-$(CONFIG_INTEL_SOC_PMIC_BXTWC)	+= intel_soc_pmic_bxtwc.o
>  obj-$(CONFIG_MFD_MT6397)	+= mt6397-core.o
>  
>  obj-$(CONFIG_MFD_ALTERA_A10SR)	+= altera-a10sr.o
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index e1bffc9bb194..afbff6d9834b 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -1011,6 +1011,7 @@ config PVPANIC
>  config INTEL_PMC_IPC
>  	tristate "Intel PMC IPC Driver"
>  	depends on ACPI
> +	select INTEL_SOC_PMIC_BXTWC
>  	---help---
>  	This driver provides support for PMC control on some Intel platforms.
>  	The PMC is an ARC processor which defines IPC commands for communication

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units Lee Jones <lee.jones@linaro.org> - 2017-03-14 16:10 +0100
  Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation  units Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-14 16:30 +0100
    Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units Lee Jones <lee.jones@linaro.org> - 2017-03-15 11:20 +0100
      Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation  units Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-17 16:10 +0100

csiph-web