mfd: intel_soc_pmic: Fix a mess with compilation units
Subsystems (6)
PATCH v3 1/3 mfd: intel_soc_pmic: Fix a mess with compilation units
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 were 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 tested with
INTEL_SOC_PMIC=n. The line in Makefile is actually wrong.
---
- make option visible
- fix dependencies
drivers/acpi/Kconfig | 2 +- drivers/gpio/Kconfig | 2 +- drivers/mfd/Kconfig | 14 ++++++++++++-- drivers/mfd/Makefile | 2 +- drivers/platform/x86/Kconfig | 2 +- drivers/thermal/Kconfig | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-)
drivers/acpi/Kconfig +1 -1
@@ -512,7 +512,7 @@ config XPOWER_PMIC_OPREGION config BXT_WC_PMIC_OPREGION bool "ACPI operation region support for BXT WhiskeyCove PMIC" - depends on INTEL_SOC_PMIC + depends on INTEL_SOC_PMIC_BXTWC help This config adds ACPI operation region support for BXT WhiskeyCove PMIC.
drivers/gpio/Kconfig +1 -1
@@ -1054,7 +1054,7 @@ config GPIO_UCB1400 config GPIO_WHISKEY_COVE tristate "GPIO support for Whiskey Cove PMIC" - depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC select GPIOLIB_IRQCHIP help Support for GPIO pins on Whiskey Cove PMIC.
drivers/mfd/Kconfig +12 -2
@@ -425,18 +425,28 @@ 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 "Support for Intel Broxton Whiskey Cove PMIC" + select MFD_CORE + select REGMAP_IRQ + help + Select this option to enable support for Whiskey Cove PMIC + on Intel Broxton systems. The PMIC provides ADC, GPIO, + thermal, charger and related power management functions + on these systems. + config MFD_INTEL_LPSS tristate select COMMON_CLK
drivers/mfd/Makefile +1 -1
@@ -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
drivers/platform/x86/Kconfig +1 -1
@@ -1019,7 +1019,7 @@ config INTEL_PMC_IPC config INTEL_BXTWC_PMIC_TMU tristate "Intel BXT Whiskey Cove TMU Driver" depends on REGMAP - depends on INTEL_SOC_PMIC && INTEL_PMC_IPC + depends on INTEL_SOC_PMIC_BXTWC && INTEL_PMC_IPC ---help--- Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature. This driver enables the alarm wakeup functionality in the TMU unit
drivers/thermal/Kconfig +1 -1
@@ -365,7 +365,7 @@ endmenu config INTEL_BXT_PMIC_THERMAL tristate "Intel Broxton PMIC thermal driver" - depends on X86 && INTEL_SOC_PMIC && REGMAP + depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP help Select this driver for Intel Broxton PMIC with ADC channels monitoring system temperature measurements and alerts.
Signature · 1 line
2.11.0
PATCH v3 2/3 mfd: intel_soc_pmic_bxtwc: Move inclusion to c-file
There is no need to include intel_soc_pmic.h into header which doesn't require it.
--- drivers/mfd/intel_soc_pmic_bxtwc.c | 1 + include/linux/mfd/intel_bxtwc.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/mfd/intel_soc_pmic_bxtwc.c +1 -0
@@ -21,6 +21,7 @@#include <linux/kernel.h> #include <linux/mfd/core.h> #include <linux/mfd/intel_bxtwc.h> +#include <linux/mfd/intel_soc_pmic.h> #include <asm/intel_pmc_ipc.h> /* PMIC device registers */
include/linux/mfd/intel_bxtwc.h +0 -2
@@ -13,8 +13,6 @@* more details. */ -#include <linux/mfd/intel_soc_pmic.h> -#ifndef __INTEL_BXTWC_H__#define __INTEL_BXTWC_H__
Signature · 1 line
2.11.0
PATCH v3 3/3 mfd: intel_soc_pmic_bxtwc: Rename header to follow c-file
In reply to Andy ShevchenkoFor better understanding of relationship between headers and modules rename:
intel_bxtwc.h -> intel_soc_pmic_bxtwc.h
While here, remove file name from the file itself.
---
drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +-
include/linux/mfd/{intel_bxtwc.h => intel_soc_pmic_bxtwc.h} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
rename include/linux/mfd/{intel_bxtwc.h => intel_soc_pmic_bxtwc.h} (96%)drivers/mfd/intel_soc_pmic_bxtwc.c +1 -1
@@ -20,8 +20,8 @@#include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/mfd/core.h> -#include <linux/mfd/intel_bxtwc.h> #include <linux/mfd/intel_soc_pmic.h> +#include <linux/mfd/intel_soc_pmic_bxtwc.h> #include <asm/intel_pmc_ipc.h> /* PMIC device registers */
include/linux/mfd/intel_soc_pmic_bxtwc.h renamed from include/linux/mfd/intel_bxtwc.h +1 -1
@@ -1,5 +1,5 @@/* -* intel_bxtwc.h - Header file for Intel Broxton Whiskey Cove PMIC +* Header file for Intel Broxton Whiskey Cove PMIC * * Copyright (C) 2015 Intel Corporation. All rights reserved. *
Signature · 1 line
2.11.0
Quoted 9 lines · Andy Shevchenko
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 were supposed (*) to get into one kernel module.
Fix the mess by clarifying
Kconfigoption for Crystal Cove and split Whiskey Cove out of it.
Quoted 8 lines
(*) It looks like the configuration was never tested with
INTEL_SOC_PMIC=n. The line inMakefileis actually wrong.Cc "Rafael J. Wysocki" <[email protected]> (supporter:ACPI)Cc Linus Walleij <[email protected]> (maintainer:GPIO SUBSYSTEM)Cc Zhang Rui <[email protected]> (supporter:THERMAL)Cc Eduardo Valentin <[email protected]> (supporter:THERMAL)Signed-off-by Andy Shevchenko <[email protected]>
Yours,
Linus Walleij
Quoted 17 lines · Andy Shevchenko
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 were supposed (*) to get into one kernel module.
Fix the mess by clarifying
Kconfigoption for Crystal Cove and split Whiskey Cove out of it.(*) It looks like the configuration was never tested with
INTEL_SOC_PMIC=n. The line inMakefileis actually wrong.Cc "Rafael J. Wysocki" <[email protected]> (supporter:ACPI)Cc Linus Walleij <[email protected]> (maintainer:GPIO SUBSYSTEM)Cc Zhang Rui <[email protected]> (supporter:THERMAL)Cc Eduardo Valentin <[email protected]> (supporter:THERMAL)Signed-off-by Andy Shevchenko <[email protected]>
Quoted 4 lines
---
- make option visible
- fix dependenciesdrivers/acpi/Kconfig | 2 +-
This needs an ACPI Ack before I can do anything with it.
Quoted 108 lines
drivers/gpio/Kconfig | 2 +- drivers/mfd/Kconfig | 14 ++++++++++++-- drivers/mfd/Makefile | 2 +- drivers/platform/x86/Kconfig | 2 +- drivers/thermal/Kconfig | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-)drivers/acpi/Kconfig +1
-1@@ -512,7 +512,7 @@ config XPOWER_PMIC_OPREGION config BXT_WC_PMIC_OPREGION bool "ACPI operation region support for BXT WhiskeyCove PMIC" - depends on INTEL_SOC_PMIC + depends on INTEL_SOC_PMIC_BXTWC help This config adds ACPI operation region support for BXT WhiskeyCove PMIC.drivers/gpio/Kconfig +1
-1@@ -1054,7 +1054,7 @@ config GPIO_UCB1400 config GPIO_WHISKEY_COVE tristate "GPIO support for Whiskey Cove PMIC" - depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC select GPIOLIB_IRQCHIP help Support for GPIO pins on Whiskey Cove PMIC.drivers/mfd/Kconfig +12
-2@@ -425,18 +425,28 @@ 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 "Support for Intel Broxton Whiskey Cove PMIC" + select MFD_CORE + select REGMAP_IRQ + help + Select this option to enable support for Whiskey Cove PMIC + on Intel Broxton systems. The PMIC provides ADC, GPIO, + thermal, charger and related power management functions + on these systems. + config MFD_INTEL_LPSS tristate select COMMON_CLKdrivers/mfd/Makefile +1
-1@@ -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.odrivers/platform/x86/Kconfig +1
-1@@ -1019,7 +1019,7 @@ config INTEL_PMC_IPC config INTEL_BXTWC_PMIC_TMU tristate "Intel BXT Whiskey Cove TMU Driver" depends on REGMAP - depends on INTEL_SOC_PMIC && INTEL_PMC_IPC + depends on INTEL_SOC_PMIC_BXTWC && INTEL_PMC_IPC ---help--- Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature. This driver enables the alarm wakeup functionality in the TMU unitdrivers/thermal/Kconfig +1
-1@@ -365,7 +365,7 @@ endmenu config INTEL_BXT_PMIC_THERMAL tristate "Intel Broxton PMIC thermal driver" - depends on X86 && INTEL_SOC_PMIC && REGMAP + depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP help Select this driver for Intel Broxton PMIC with ADC channels monitoring system temperature measurements and alerts.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Lee Jones
AppliedRe: [PATCH v3 2/3] mfd: intel_soc_pmic_bxtwc: Move inclusion to c-file
In reply to Andy ShevchenkoQuoted 8 lines · Andy Shevchenko
There is no need to include
intel_soc_pmic.hinto header which doesn't require it.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/mfd/intel_soc_pmic_bxtwc.c | 1 + include/linux/mfd/intel_bxtwc.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.
Quoted 25 lines
drivers/mfd/intel_soc_pmic_bxtwc.c +1
-0@@ -21,6 +21,7 @@#include <linux/kernel.h> #include <linux/mfd/core.h> #include <linux/mfd/intel_bxtwc.h> +#include <linux/mfd/intel_soc_pmic.h> #include <asm/intel_pmc_ipc.h> /* PMIC device registers */ include/linux/mfd/intel_bxtwc.h +0
-2@@ -13,8 +13,6 @@* more details. */ -#include <linux/mfd/intel_soc_pmic.h> -#ifndef __INTEL_BXTWC_H__#define __INTEL_BXTWC_H__
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Lee Jones
AppliedRe: [PATCH v3 3/3] mfd: intel_soc_pmic_bxtwc: Rename header to follow c-file
In reply to Andy ShevchenkoQuoted 4 lines · Andy Shevchenko
For better understanding of relationship between headers and modules rename:
intel_bxtwc.h -> intel_soc_pmic_bxtwc.h
Quoted 8 lines
While here, remove file name from the file itself.
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +- include/linux/mfd/{intel_bxtwc.h => intel_soc_pmic_bxtwc.h} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename include/linux/mfd/{intel_bxtwc.h => intel_soc_pmic_bxtwc.h} (96%)
Applied, thanks.
Quoted 28 lines
drivers/mfd/intel_soc_pmic_bxtwc.c +1
-1@@ -20,8 +20,8 @@#include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/mfd/core.h> -#include <linux/mfd/intel_bxtwc.h> #include <linux/mfd/intel_soc_pmic.h> +#include <linux/mfd/intel_soc_pmic_bxtwc.h> #include <asm/intel_pmc_ipc.h> /* PMIC device registers */ include/linux/mfd/intel_soc_pmic_bxtwc.h renamed from include/linux/mfd/intel_bxtwc.h +1
-1@@ -1,5 +1,5 @@/* -* intel_bxtwc.h - Header file for Intel Broxton Whiskey Cove PMIC +* Header file for Intel Broxton Whiskey Cove PMIC * * Copyright (C) 2015 Intel Corporation. All rights reserved. *
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 25 lines · Lee Jones
Quoted 15 lines · Andy Shevchenko
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 were supposed (*) to get into one kernel module.
Fix the mess by clarifying
Kconfigoption for Crystal Cove and split Whiskey Cove out of it.(*) It looks like the configuration was never tested with INTEL_SOC_PMIC=n. The line in
Makefileis actually wrong.Cc: "Rafael J. Wysocki" <[email protected]> (supporter:ACPI)
Cc: Linus Walleij <[email protected]> (maintainer:GPIO SUBSYSTEM)Quoted 7 lines
Cc Zhang Rui <[email protected]> (supporter:THERMAL)Cc Eduardo Valentin <[email protected]> (supporter:THERMAL)Signed-off-by Andy Shevchenko <[email protected]>---
- make option visible
- fix dependencies
drivers/acpi/Kconfig | 2 +-
Quoted 1 line
This needs an ACPI Ack before I can do anything with it.
Rafael, can you give you tag?
Quoted 121 lines
Quoted 119 lines
drivers/gpio/Kconfig | 2 +-
drivers/mfd/Kconfig | 14 ++++++++++++--
drivers/mfd/Makefile | 2 +-
drivers/platform/x86/Kconfig | 2 +-
drivers/thermal/Kconfig | 2 +-6 files changed, 17 insertions(+), 7 deletions(-)drivers/acpi/Kconfig +0
-0@@ -512,7 +512,7 @@ config XPOWER_PMIC_OPREGION
configBXT_WC_PMIC_OPREGION
bool "ACPI operation region support for BXT WhiskeyCove PMIC"drivers/acpi/Kconfig +1
-1- depends on INTEL_SOC_PMIC + depends on INTEL_SOC_PMIC_BXTWChelp
This config adds ACPI operation region support for BXT WhiskeyCove PMIC.drivers/gpio/Kconfig +0
-0@@ -1054,7 +1054,7 @@ config GPIO_UCB1400
configGPIO_WHISKEY_COVE
tristate "GPIO support for Whiskey Cove PMIC"drivers/gpio/Kconfig +1
-1- depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWCselect
GPIOLIB_IRQCHIP
help
Support for GPIO pins on Whiskey Cove PMIC.drivers/mfd/Kconfig +0
-0@@ -425,18 +425,28 @@ config LPC_SCHSystem Management Bus and General Purpose I/O.
configINTEL_SOC_PMICdrivers/mfd/Kconfig +1
-1- bool "Support for Intel Atom SoC PMIC" + bool "Support for Crystal Cove PMIC"depends on GPIOLIB
depends on I2C=y
selectMFD_CORE
selectREGMAP_I2C
selectREGMAP_IRQ
helpdrivers/mfd/Kconfig +1
-1- Select this option to enable support for the PMIC device + Select this option to enable support for Crystal CovePMIC
on some Intel SoC systems. The PMIC provides ADC, GPIO, thermal, charger and related power management functions on these systems.drivers/mfd/Kconfig +6
-0+config INTEL_SOC_PMIC_BXTWC + tristate "Support for Intel Broxton Whiskey Cove PMIC" + select MFD_CORE + select REGMAP_IRQ + help + Select this option to enable support for Whiskey CovePMIC
drivers/mfd/Kconfig +4
-0+ on Intel Broxton systems. The PMIC provides ADC, GPIO, + thermal, charger and related power management functions + on these systems. +config
MFD_INTEL_LPSS
tristate
selectCOMMON_CLKdrivers/mfd/Makefile +0
-0@@ -207,8 +207,8 @@ obj-$(CONFIG_MFD_RT5033) += rt5033.oobj-$(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.odrivers/platform/x86/Kconfig +0
-0@@ -1019,7 +1019,7 @@ config INTEL_PMC_IPCconfig
INTEL_BXTWC_PMIC_TMU
tristate "Intel BXT Whiskey Cove TMU Driver" depends on REGMAPdrivers/platform/x86/Kconfig +1
-1- depends on INTEL_SOC_PMIC && INTEL_PMC_IPC + depends on INTEL_SOC_PMIC_BXTWC && INTEL_PMC_IPC---help---
Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature.
This driver enables the alarm wakeup functionality in the TMU unitdrivers/thermal/Kconfig +0
-0@@ -365,7 +365,7 @@ endmenu
configINTEL_BXT_PMIC_THERMAL
tristate "Intel Broxton PMIC thermal driver"drivers/thermal/Kconfig +1
-1- depends on X86 && INTEL_SOC_PMIC && REGMAP + depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAPhelp
Select this driver for Intel Broxton PMIC with ADC channels monitoring
system temperature measurements and alerts.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 26 lines · Andy Shevchenko
Quoted 25 lines · Lee Jones
Quoted 22 lines · Andy Shevchenko
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 were
supposed (*) to get into one kernel module.Fix the mess by clarifying
Kconfigoption for Crystal Cove and split
Whiskey Cove out of it.(*) It looks like the configuration was never tested with INTEL_SOC_PMIC=n. The line in
Makefileis actually wrong.Cc: "Rafael J. Wysocki" <[email protected]> (supporter:ACPI)
Cc: Linus Walleij <[email protected]> (maintainer:GPIO SUBSYSTEM)Cc Zhang Rui <[email protected]> (supporter:THERMAL)Cc Eduardo Valentin <[email protected]> (supporter:THERMAL)Signed-off-by Andy Shevchenko <[email protected]Quoted 1 line
Quoted 17 lines
Quoted 5 lines
Quoted 4 lines
---
- make option visible
- fix dependencies
drivers/acpi/Kconfig | 2 +-This needs an ACPI Ack before I can do anything with it.
Rafael, can you give you tag?
Quoted 10 lines
Quoted 10 lines
drivers/gpio/Kconfig | 2 +-
drivers/mfd/Kconfig | 14 ++++++++++++--
drivers/mfd/Makefile | 2 +-
drivers/platform/x86/Kconfig | 2 +-drivers/thermal/Kconfig | 2 +-
For the thermal part,
thanks,
rui
Quoted 121 lines
Quoted 121 lines
Quoted 120 lines
6 files changed, 17 insertions(+), 7 deletions(-)drivers/acpi/Kconfig +0
-0@@ -512,7 +512,7 @@ config XPOWER_PMIC_OPREGION
configBXT_WC_PMIC_OPREGION
bool "ACPI operation region support for BXT WhiskeyCove PMIC"drivers/acpi/Kconfig +1
-1- depends on INTEL_SOC_PMIC + depends on INTEL_SOC_PMIC_BXTWChelp
This config adds ACPI operation region support for BXT WhiskeyCove PMIC.drivers/gpio/Kconfig +0
-0@@ -1054,7 +1054,7 @@ config GPIO_UCB1400
configGPIO_WHISKEY_COVE
tristate "GPIO support for Whiskey Cove PMIC"drivers/gpio/Kconfig +1
-1- depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWCselect
GPIOLIB_IRQCHIP
help
Support for GPIO pins on Whiskey Cove PMIC.drivers/mfd/Kconfig +0
-0@@ -425,18 +425,28 @@ config LPC_SCHSystem Management Bus and General Purpose I/O.
configINTEL_SOC_PMICdrivers/mfd/Kconfig +1
-1- bool "Support for Intel Atom SoC PMIC" + bool "Support for Crystal Cove PMIC"depends on GPIOLIB
depends on I2C=y
selectMFD_CORE
selectREGMAP_I2C
selectREGMAP_IRQ
helpdrivers/mfd/Kconfig +0
-1- Select this option to enable support for the PMICdevice
drivers/mfd/Kconfig +1
-0+ Select this option to enable support for Crystal CovePMIC
on some Intel SoC systems. The PMIC provides ADC, GPIO,
thermal, charger and related power management functions
on these systems.drivers/mfd/Kconfig +6
-0+config INTEL_SOC_PMIC_BXTWC + tristate "Support for Intel Broxton Whiskey Cove PMIC" + select MFD_CORE + select REGMAP_IRQ + help + Select this option to enable support for Whiskey CovePMIC
drivers/mfd/Kconfig +2
-0+ on Intel Broxton systems. The PMIC provides ADC, GPIO, + thermal, charger and related power managementfunctions
drivers/mfd/Kconfig +2
-0+ on these systems. +config
MFD_INTEL_LPSS
tristate
selectCOMMON_CLKdrivers/mfd/Makefile +0
-0@@ -207,8 +207,8 @@ obj-$(CONFIG_MFD_RT5033) += rt5033.oobj-$(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.odrivers/platform/x86/Kconfig +0
-0@@ -1019,7 +1019,7 @@ config INTEL_PMC_IPCconfig
INTEL_BXTWC_PMIC_TMU
tristate "Intel BXT Whiskey Cove TMU Driver" depends on REGMAPdrivers/platform/x86/Kconfig +1
-1- depends on INTEL_SOC_PMIC && INTEL_PMC_IPC + depends on INTEL_SOC_PMIC_BXTWC && INTEL_PMC_IPC---help---
Select this driver to use Intel BXT Whiskey Cove PMIC TMU
feature.
This driver enables the alarm wakeup functionality in the
TMU unitdrivers/thermal/Kconfig +0
-0@@ -365,7 +365,7 @@ endmenu
configINTEL_BXT_PMIC_THERMAL
tristate "Intel Broxton PMIC thermal driver"drivers/thermal/Kconfig +1
-1- depends on X86 && INTEL_SOC_PMIC && REGMAP + depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAPhelp
Select this driver for Intel Broxton PMIC with ADC channels monitoring
system temperature measurements and alerts.
kbuild test robot
build botreproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross…
Hi Andy,
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.11-rc4 next-20170331]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/mfd-intel_soc_pmic-Fix-a-mess-with-compilation-units/20170320-153539 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile
All errors (new ones prefixed by >>):
>> drivers/mfd/intel_soc_pmic_bxtwc.c:24:31: fatal error: asm/intel_pmc_ipc.h: No such file or directory
compilation terminated.
vim +24 drivers/mfd/intel_soc_pmic_bxtwc.c
39d047c0 Qipeng Zha 2015-09-15 8 * version 2, as published by the Free Software Foundation. 39d047c0 Qipeng Zha 2015-09-15 9 * 39d047c0 Qipeng Zha 2015-09-15 10 * This program is distributed in the hope it will be useful, but WITHOUT 39d047c0 Qipeng Zha 2015-09-15 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 39d047c0 Qipeng Zha 2015-09-15 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 39d047c0 Qipeng Zha 2015-09-15 13 * more details. 39d047c0 Qipeng Zha 2015-09-15 14 */ 39d047c0 Qipeng Zha 2015-09-15 15 39d047c0 Qipeng Zha 2015-09-15 16 #include <linux/module.h> 39d047c0 Qipeng Zha 2015-09-15 17 #include <linux/acpi.h> 39d047c0 Qipeng Zha 2015-09-15 18 #include <linux/err.h> 39d047c0 Qipeng Zha 2015-09-15 19 #include <linux/delay.h> 39d047c0 Qipeng Zha 2015-09-15 20 #include <linux/interrupt.h> 39d047c0 Qipeng Zha 2015-09-15 21 #include <linux/kernel.h> 39d047c0 Qipeng Zha 2015-09-15 22 #include <linux/mfd/core.h> 39d047c0 Qipeng Zha 2015-09-15 23 #include <linux/mfd/intel_bxtwc.h> 39d047c0 Qipeng Zha 2015-09-15 @24 #include <asm/intel_pmc_ipc.h> 39d047c0 Qipeng Zha 2015-09-15 25 39d047c0 Qipeng Zha 2015-09-15 26 /* PMIC device registers */ 39d047c0 Qipeng Zha 2015-09-15 27 #define REG_ADDR_MASK 0xFF00 39d047c0 Qipeng Zha 2015-09-15 28 #define REG_ADDR_SHIFT 8 39d047c0 Qipeng Zha 2015-09-15 29 #define REG_OFFSET_MASK 0xFF 39d047c0 Qipeng Zha 2015-09-15 30 39d047c0 Qipeng Zha 2015-09-15 31 /* Interrupt Status Registers */ 39d047c0 Qipeng Zha 2015-09-15 32 #define BXTWC_IRQLVL1 0x4E02
:::::: The code at line 24 was first introduced by commit
:::::: 39d047c0b1c812e9f0014e7100e372e61f2de3de mfd: add Intel Broxton Whiskey Cove PMIC driver
:::::: TO: Qipeng Zha <[email protected]>
:::::: CC: Lee Jones <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Quoted 5 lines · kbuild test robot
Hi Andy,
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.11-rc4 next-20170331]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
Thank you for report, though...
Quoted 11 lines
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/mfd-intel_soc_pmic-Fix-a-mess-with-compilation-units/20170320-153539 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build treemake.cross ARCH=tile
...I doubt how below is related to my patch. This is obvious x86 code which was initially submitted without
depend on X86
line in corresponding Kconfig.
Quoted 43 lines
All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/mfd/intel_soc_pmic_bxtwc.c:24:31: fatal error:asm/intel_pmc_ipc.h: No such file or directorycompilation terminated.
vim +24
drivers/mfd/intel_soc_pmic_bxtwc.c39d047c0 Qipeng Zha 2015-09-15 8 * version 2, as published by the Free Software Foundation. 39d047c0 Qipeng Zha 2015-09-15 9 * 39d047c0 Qipeng Zha 2015-09-15 10 * This program is distributed in the hope it will be useful, but WITHOUT 39d047c0 Qipeng Zha 2015-09-15 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 39d047c0 Qipeng Zha 2015-09-15 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 39d047c0 Qipeng Zha 2015-09-15 13 * more details. 39d047c0 Qipeng Zha 2015-09-15 14 */ 39d047c0 Qipeng Zha 2015-09-15 15 39d047c0 Qipeng Zha 2015-09-15 16 #include <linux/module.h> 39d047c0 Qipeng Zha 2015-09-15 17 #include <linux/acpi.h> 39d047c0 Qipeng Zha 2015-09-15 18 #include <linux/err.h> 39d047c0 Qipeng Zha 2015-09-15 19 #include <linux/delay.h> 39d047c0 Qipeng Zha 2015-09-15 20 #include <linux/interrupt.h> 39d047c0 Qipeng Zha 2015-09-15 21 #include <linux/kernel.h> 39d047c0 Qipeng Zha 2015-09-15 22 #include <linux/mfd/core.h> 39d047c0 Qipeng Zha 2015-09-15 23 #include <linux/mfd/intel_bxtwc.h> 39d047c0 Qipeng Zha 2015-09-15 @24 #include <asm/intel_pmc_ipc.h> 39d047c0 Qipeng Zha 2015-09-15 25 39d047c0 Qipeng Zha 2015-09-15 26 /* PMIC device registers */ 39d047c0 Qipeng Zha 2015-09-15 27 #define REG_ADDR_MASK 0xFF00 39d047c0 Qipeng Zha 2015-09-15 28 #define REG_ADDR_SHIFT 8 39d047c0 Qipeng Zha 2015-09-15 29 #define REG_OFFSET_MASK 0xFF 39d047c0 Qipeng Zha 2015-09-15 30 39d047c0 Qipeng Zha 2015-09-15 31 /* Interrupt Status Registers */ 39d047c0 Qipeng Zha 2015-09-15 32 #define BXTWC_IRQLVL1 0x4E02:::::: The code at line 24 was first introduced by commit
::::::39d047c0b1c812e9f0014e7100e372e61f2de3demfd: add Intel Broxton Whiskey Cove PMIC driver:::::: TO: Qipeng Zha <[email protected]>
:::::: CC: Lee Jones <[email protected]>---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 19 lines · Andy Shevchenko
Quoted 5 lines · kbuild test robot
Hi Andy,
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.11-rc4 next-20170331]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]Thank you for report, though...
Quoted 9 lines
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/mfd-intel_soc_pmic-Fix-a-mess-with-compilation-units/20170320-153539 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
Quoted 6 lines
Quoted 1 line
make.cross ARCH=tile
...I doubt how below is related to my patch. This is obvious x86 code which was initially submitted without
depend on X86
line in correspondingKconfig.
I think you should probably specify the architecture in the Kconfig entry, or else some randconfigs will fail.
Quoted 45 lines
Quoted 42 lines
All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/mfd/intel_soc_pmic_bxtwc.c:24:31: fatal error:asm/intel_pmc_ipc.h: No such file or directorycompilation terminated.
vim +24
drivers/mfd/intel_soc_pmic_bxtwc.c39d047c0 Qipeng Zha 2015-09-15 8 * version 2, as published by the Free Software Foundation. 39d047c0 Qipeng Zha 2015-09-15 9 * 39d047c0 Qipeng Zha 2015-09-15 10 * This program is distributed in the hope it will be useful, but WITHOUT 39d047c0 Qipeng Zha 2015-09-15 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 39d047c0 Qipeng Zha 2015-09-15 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 39d047c0 Qipeng Zha 2015-09-15 13 * more details. 39d047c0 Qipeng Zha 2015-09-15 14 */ 39d047c0 Qipeng Zha 2015-09-15 15 39d047c0 Qipeng Zha 2015-09-15 16 #include <linux/module.h> 39d047c0 Qipeng Zha 2015-09-15 17 #include <linux/acpi.h> 39d047c0 Qipeng Zha 2015-09-15 18 #include <linux/err.h> 39d047c0 Qipeng Zha 2015-09-15 19 #include <linux/delay.h> 39d047c0 Qipeng Zha 2015-09-15 20 #include <linux/interrupt.h> 39d047c0 Qipeng Zha 2015-09-15 21 #include <linux/kernel.h> 39d047c0 Qipeng Zha 2015-09-15 22 #include <linux/mfd/core.h> 39d047c0 Qipeng Zha 2015-09-15 23 #include <linux/mfd/intel_bxtwc.h> 39d047c0 Qipeng Zha 2015-09-15 @24 #include <asm/intel_pmc_ipc.h> 39d047c0 Qipeng Zha 2015-09-15 25 39d047c0 Qipeng Zha 2015-09-15 26 /* PMIC device registers */ 39d047c0 Qipeng Zha 2015-09-15 27 #define REG_ADDR_MASK 0xFF00 39d047c0 Qipeng Zha 2015-09-15 28 #define REG_ADDR_SHIFT 8 39d047c0 Qipeng Zha 2015-09-15 29 #define REG_OFFSET_MASK 0xFF 39d047c0 Qipeng Zha 2015-09-15 30 39d047c0 Qipeng Zha 2015-09-15 31 /* Interrupt Status Registers */ 39d047c0 Qipeng Zha 2015-09-15 32 #define BXTWC_IRQLVL1 0x4E02:::::: The code at line 24 was first introduced by commit
::::::39d047c0b1c812e9f0014e7100e372e61f2de3demfd: add Intel Broxton Whiskey Cove PMIC driver:::::: TO: Qipeng Zha <[email protected]>
:::::: CC: Lee Jones <[email protected]>---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 23 lines · Lee Jones
Quoted 21 lines · Andy Shevchenko
Quoted 5 lines · kbuild test robot
Hi Andy,
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.11-rc4 next-20170331]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]Thank you for report, though...
Quoted 11 lines
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/mfd-intel_soc_pmic-Fix-a-mess-with-compilation-units/20170320-153539 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: tile-allyesconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build treemake.cross ARCH=tile
Quoted 7 lines
Quoted 4 lines
...I doubt how below is related to my patch. This is obvious x86 code which was initially submitted without
depend on X86
line in correspondingKconfig.I think you should probably specify the architecture in the
Kconfigentry, or else somerandconfigs will fail.
Yes, I understand how to fix this, though it's not a problem of this patch per se.
Fengguang, is there any possible way to determine the relation between an error and a root cause change?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Fengguang Wu
build botAndy, our 0day build error reports are all bisected ones. It means the error happens since the reported patch/commit, which is either responsible for the root cause, or somehow triggers (or changes…
On Mon, Apr 03, 2017 at 12:26:54PM +0300, Andy Shevchenko wrote:
>On Mon, Apr 3, 2017 at 12:20 PM, Lee Jones <[email protected]> wrote: >> On Sun, 02 Apr 2017, Andy Shevchenko wrote: >> >>> On Sun, Apr 2, 2017 at 11:03 PM, kbuild test robot <[email protected]> wrote: >>> > Hi Andy, >>> > >>> > [auto build test ERROR on ljones-mfd/for-mfd-next] >>> > [also build test ERROR on v4.11-rc4 next-20170331] >>> > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] >>> >>> Thank you for report, though... >>> >>> > >>> > url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/mfd-intel_soc_pmic-Fix-a-mess-with-compilation-units/20170320-153539 >>> > base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next >>> > config: tile-allyesconfig (attached as .config) >>> > compiler: tilegx-linux-gcc (GCC) 4.6.2 >>> > reproduce: >>> > wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >>> > chmod +x ~/bin/make.cross >>> > # save the attached .config to linux build tree >>> >>> > make.cross ARCH=tile >>> >>> ...I doubt how below is related to my patch. This is obvious x86 code >>> which was initially submitted without >>> depend on X86 >>> line in corresponding Kconfig. >> >> I think you should probably specify the architecture in the Kconfig >> entry, or else some `randconfig`s will fail. > >Yes, I understand how to fix this, though it's not a problem of this >patch per se. > >Fengguang, is there any possible way to determine the relation between >an error and a root cause change?
Andy, our 0day build error reports are all bisected ones. It means the error happens since the reported patch/commit, which is either responsible for the root cause, or somehow triggers (or changes the exact form of) an old bug.
I just manual confirmed the bisect is correct:
=============== commit 162c61d1a ===============/home/wfg/linux
HEAD is now at 162c61d... mfd: intel_soc_pmic: Fix a mess with compilation units /home/wfg/linux/obj-compiletest
make ARCH=tile allyesconfig
make ARCH=tile drivers/mfd/
!!! BUILD ERROR !!!
make ARCH=tile M=drivers/mfd/
!!! BUILD ERROR !!!
grep -a -F drivers/mfd/ /tmp/build-err-162c61d1a76aa5ccfb398225b3f6f2e896fb58b0-wfg --color ../drivers/mfd/intel_soc_pmic_bxtwc.c:24:31: fatal error: asm/intel_pmc_ipc.h: No such file or directory compilation terminated.
make[2]: *** [drivers/mfd/intel_soc_pmic_bxtwc.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [drivers/mfd/] Error 2
make: *** [sub-make] Error 2
make[2]: *** No rule to make target 'drivers/mfd//intel_soc_pmic_bxtwc.o', needed by 'drivers/mfd//built-in.o'. make[2]: Target '__build' not remade because of errors.
make[1]: *** [_module_drivers/mfd/] Error 2
make[1]: Target '_all' not remade because of errors.
make: *** [sub-make] Error 2
=============== PREV commit e93c10211d03c35271896b03a40d3eca4a674770 =============== /home/wfg/linux
Previous HEAD position was 162c61d... mfd: intel_soc_pmic: Fix a mess with compilation units HEAD is now at e93c102... mfd: lpc_ich: Enable watchdog on Intel Apollo Lake PCH /home/wfg/linux/obj-compiletest
make ARCH=tile allyesconfig
make ARCH=tile drivers/mfd/
make ARCH=tile M=drivers/mfd/
grep -a -F drivers/mfd/ /tmp/build-err-e93c10211d03c35271896b03a40d3eca4a674770-wfg --color
Thanks,
Fengguang
Quoted 27 lines · Fengguang Wu
Quoted 26 lines · Andy Shevchenko
Quoted 12 lines · Lee Jones
Quoted 10 lines · Andy Shevchenko
Quoted 6 lines · kbuild test robot
Hi Andy,
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.11-rc4 next-20170331]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]Thank you for report, though...
Quoted 8 lines
Quoted 4 lines
...I doubt how below is related to my patch. This is obvious x86 code which was initially submitted without
depend on X86
line in correspondingKconfig.I think you should probably specify the architecture in the
Kconfigentry, or else somerandconfigs will fail.Yes, I understand how to fix this, though it's not a problem of this patch per se.
Quoted 8 lines
Quoted 2 lines
Fengguang, is there any possible way to determine the relation between an error and a root cause change?
Andy, our 0day build error reports are all bisected ones. It means the error happens since the reported patch/commit, which is either responsible for the root cause, or somehow triggers (or changes the exact form of) an old bug.
Thanks, like you said in this case it looks pretty much for triggering an old bug.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 32 lines · Andy Shevchenko
Quoted 31 lines · Fengguang Wu
Quoted 28 lines · Andy Shevchenko
Quoted 12 lines · Lee Jones
Quoted 10 lines · Andy Shevchenko
Quoted 6 lines · kbuild test robot
Hi Andy,
[auto build test ERROR on ljones-mfd/for-mfd-next]
[also build test ERROR on v4.11-rc4 next-20170331]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]Thank you for report, though...
Quoted 8 lines
Quoted 4 lines
...I doubt how below is related to my patch. This is obvious x86 code which was initially submitted without
depend on X86
line in correspondingKconfig.I think you should probably specify the architecture in the
Kconfigentry, or else somerandconfigs will fail.Yes, I understand how to fix this, though it's not a problem of this patch per se.
Fengguang, is there any possible way to determine the relation between an error and a root cause change?
Quoted 7 lines
Quoted 4 lines
Andy, our 0day build error reports are all bisected ones. It means the error happens since the reported patch/commit, which is either responsible for the root cause, or somehow triggers (or changes the exact form of) an old bug.
Thanks, like you said in this case it looks pretty much for triggering an old bug.
Quite. But as a good open source citizen, you'll follow up with patches too, right? :)
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Lee Jones
AppliedQuoted 20 lines · Andy Shevchenko
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 were supposed (*) to get into one kernel module.
Fix the mess by clarifying
Kconfigoption for Crystal Cove and split Whiskey Cove out of it.(*) It looks like the configuration was never tested with
INTEL_SOC_PMIC=n. The line inMakefileis actually wrong.Cc "Rafael J. Wysocki" <[email protected]> (supporter:ACPI)Cc Linus Walleij <[email protected]> (maintainer:GPIO SUBSYSTEM)Cc Zhang Rui <[email protected]> (supporter:THERMAL)Cc Eduardo Valentin <[email protected]> (supporter:THERMAL)Signed-off-by Andy Shevchenko <[email protected]>---
- make option visible
- fix dependencies
Quoted 7 lines
drivers/acpi/Kconfig | 2 +- drivers/gpio/Kconfig | 2 +- drivers/mfd/Kconfig | 14 ++++++++++++-- drivers/mfd/Makefile | 2 +- drivers/platform/x86/Kconfig | 2 +- drivers/thermal/Kconfig | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-)
Applied, thanks.
Quoted 101 lines
drivers/acpi/Kconfig +1
-1@@ -512,7 +512,7 @@ config XPOWER_PMIC_OPREGION config BXT_WC_PMIC_OPREGION bool "ACPI operation region support for BXT WhiskeyCove PMIC" - depends on INTEL_SOC_PMIC + depends on INTEL_SOC_PMIC_BXTWC help This config adds ACPI operation region support for BXT WhiskeyCove PMIC.drivers/gpio/Kconfig +1
-1@@ -1054,7 +1054,7 @@ config GPIO_UCB1400 config GPIO_WHISKEY_COVE tristate "GPIO support for Whiskey Cove PMIC" - depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC select GPIOLIB_IRQCHIP help Support for GPIO pins on Whiskey Cove PMIC.drivers/mfd/Kconfig +12
-2@@ -425,18 +425,28 @@ 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 "Support for Intel Broxton Whiskey Cove PMIC" + select MFD_CORE + select REGMAP_IRQ + help + Select this option to enable support for Whiskey Cove PMIC + on Intel Broxton systems. The PMIC provides ADC, GPIO, + thermal, charger and related power management functions + on these systems. + config MFD_INTEL_LPSS tristate select COMMON_CLKdrivers/mfd/Makefile +1
-1@@ -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.odrivers/platform/x86/Kconfig +1
-1@@ -1019,7 +1019,7 @@ config INTEL_PMC_IPC config INTEL_BXTWC_PMIC_TMU tristate "Intel BXT Whiskey Cove TMU Driver" depends on REGMAP - depends on INTEL_SOC_PMIC && INTEL_PMC_IPC + depends on INTEL_SOC_PMIC_BXTWC && INTEL_PMC_IPC ---help--- Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature. This driver enables the alarm wakeup functionality in the TMU unitdrivers/thermal/Kconfig +1
-1@@ -365,7 +365,7 @@ endmenu config INTEL_BXT_PMIC_THERMAL tristate "Intel Broxton PMIC thermal driver" - depends on X86 && INTEL_SOC_PMIC && REGMAP + depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP help Select this driver for Intel Broxton PMIC with ADC channels monitoring system temperature measurements and alerts.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 27 lines · Lee Jones
Quoted 25 lines · Andy Shevchenko
Quoted 23 lines · Fengguang Wu
Quoted 7 lines · Andy Shevchenko
On Mon, Apr 3, 2017 at 12:20 PM, Lee Jones <[email protected]
Quoted 5 lines
wrote:
Quoted 3 lines · Andy Shevchenko
On Sun, Apr 2, 2017 at 11:03 PM, kbuild test robot <lkp@inte l.com>
wrote:Quoted 7 lines
Yes, I understand how to fix this, though it's not a problem of this
patch per se.Fengguang, is there any possible way to determine the relation between
an error and a root cause change?Andy, our 0day build error reports are all bisected ones. It means the
error happens since the reported patch/commit, which is either responsible for the root cause, or somehow triggers (or changes the
exact form of) an old bug.
Quoted 6 lines
Quoted 3 lines
Thanks, like you said in this case it looks pretty much for triggering
an old bug.Quite. But as a good open source citizen, you'll follow up with patches too, right? :)
It looks like I have to submit fix for older bug first. Likely I can do this without delays and give you a green light to apply via your tree. Unfortunately I will continue on this tomorrow.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 32 lines · Andy Shevchenko
Quoted 31 lines · Lee Jones
Quoted 28 lines · Andy Shevchenko
Quoted 17 lines · Fengguang Wu
Quoted 7 lines · Andy Shevchenko
On Mon, Apr 3, 2017 at 12:20 PM, Lee Jones <[email protected]
Quoted 5 lines
wrote:
Quoted 3 lines · Andy Shevchenko
On Sun, Apr 2, 2017 at 11:03 PM, kbuild test robot <lkp@inte l.com>
wrote:Quoted 7 lines
Yes, I understand how to fix this, though it's not a problem of this
patch per se.Fengguang, is there any possible way to determine the relation between
an error and a root cause change?Quoted 6 lines
Andy, our 0day build error reports are all bisected ones. It means the
error happens since the reported patch/commit, which is either responsible for the root cause, or somehow triggers (or changes the
exact form of) an old bug.Thanks, like you said in this case it looks pretty much for triggering
an old bug.
Quoted 6 lines
Quoted 2 lines
Quite. But as a good open source citizen, you'll follow up with patches too, right? :)
It looks like I have to submit fix for older bug first. Likely I can do this without delays and give you a green light to apply via your tree. Unfortunately I will continue on this tomorrow.
Turns out that this is not an older bug.
You need to fix your patch. I believe you lose the depend on INTEL_PMC_IPC, which ensures it's only built on x86 systems.
NB: I discovered this after a 20 second scan, so it might not be the correct fix. Please investigate.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 24 lines · Lee Jones
Quoted 16 lines · Andy Shevchenko
Quoted 14 lines · Lee Jones
Quoted 12 lines · Andy Shevchenko
Quoted 10 lines · Fengguang Wu
Quoted 8 lines · Andy Shevchenko
On Mon, Apr 3, 2017 at 12:20 PM, Lee Jones <lee.jones@linaro .org
Quoted 6 lines
wrote:
Quoted 4 lines · Andy Shevchenko
On Sun, Apr 2, 2017 at 11:03 PM, kbuild test robot <lkp@ inte
l.com>
wrote:Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
It looks like I have to submit fix for older bug first. Likely I can do
this without delays and give you a green light to apply via your tree.
Unfortunately I will continue on this tomorrow.
Quoted 7 lines
Turns out that this is not an older bug.
You need to fix your patch. I believe you lose the depend on
INTEL_PMC_IPC, which ensures it's only built on x86 systems.NB: I discovered this after a 20 second scan, so it might not be the correct fix. Please investigate.
Oh my gosh, I was looking to older version of the patch which does a select and thus I was quite sure that that triggers an old bug.
Thank you everyone who raised concern.
P.S. Certainly need a vacation...
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy