clk/mfd/regulator/rtc: Enable compile testing for some Maxim/Samsung drivers
Subsystems (4)
cover clk/mfd/regulator/rtc: Enable compile testing for some Maxim/Samsung drivers
Hi,
Some of the Maxim and Samsung PMIC/MUIC drivers can be safely compile tested to increase build-test coverage.
Rebased on next-20160930.
Patches do not depend on each-other, please pick up as you wish.
I compile-tested it on ~10 architectures, but not on all of possibilities. Please wait few days before applying so the 0-day robots could parse it and find possible non-compilable issues.
Best regards,
Krzysztof
Krzysztof Kozlowski (4):
clk: Enable compile testing for s2mps11 and max77686
regulator: Enable compile testing for Maxim and Samsung PMIC drivers
rtc: Enable compile testing for Maxim and Samsung drivers
mfd: Enable compile testing for max77620 and max77686
drivers/clk/Kconfig | 4 ++-- drivers/mfd/Kconfig | 4 ++-- drivers/regulator/Kconfig | 14 +++++++------- drivers/rtc/Kconfig | 7 ++++--- 4 files changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/4 clk: Enable compile testing for s2mps11 and max77686
s2mps11 and max77686 clock drivers can be compile tested to increase build coverage.
--- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/Kconfig +2 -2
@@ -33,7 +33,7 @@ source "drivers/clk/versatile/Kconfig" config COMMON_CLK_MAX77686 tristate "Clock driver for Maxim 77620/77686/77802 MFD" - depends on MFD_MAX77686 || MFD_MAX77620 + depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST ---help--- This driver supports Maxim 77620/77686/77802 crystal oscillator clock.
@@ -119,7 +119,7 @@ config COMMON_CLK_CS2000_CP config COMMON_CLK_S2MPS11 tristate "Clock driver for S2MPS1X/S5M8767 MFD" - depends on MFD_SEC_CORE + depends on MFD_SEC_CORE || COMPILE_TEST ---help--- This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator clock. These multi-function devices have two (S2MPS14) or three
Signature · 1 line
2.7.4
Stephen Boyd
AppliedRe: [PATCH 1/4] clk: Enable compile testing for s2mps11 and max77686
Quoted 5 lines · Krzysztof Kozlowski
s2mps11 and max77686 clock drivers can be compile tested to increase build coverage.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Applied to clk-next
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
PATCH 2/4 regulator: Enable compile testing for Maxim and Samsung PMIC drivers
In reply to Krzysztof KozlowskiMost of Maxim and Samsung PMIC/MUIC regulator drivers can be compile tested to increase build coverage.
--- drivers/regulator/Kconfig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/regulator/Kconfig +7 -7
@@ -379,7 +379,7 @@ config REGULATOR_MAX1586 config REGULATOR_MAX77620 tristate "Maxim 77620/MAX20024 voltage regulator" - depends on MFD_MAX77620 + depends on MFD_MAX77620 || COMPILE_TEST help This driver controls Maxim MAX77620 voltage output regulator via I2C bus. The provided regulator is suitable for Tegra
@@ -453,7 +453,7 @@ config REGULATOR_MAX8998 config REGULATOR_MAX77686 tristate "Maxim 77686 regulator" - depends on MFD_MAX77686 + depends on MFD_MAX77686 || COMPILE_TEST help This driver controls a Maxim 77686 regulator via I2C bus. The provided regulator is suitable for
@@ -461,7 +461,7 @@ config REGULATOR_MAX77686 config REGULATOR_MAX77693 tristate "Maxim 77693/77843 regulator" - depends on (MFD_MAX77693 || MFD_MAX77843) + depends on MFD_MAX77693 || MFD_MAX77843 || COMPILE_TEST help This driver controls a Maxim 77693/77843 regulators via I2C bus. The regulators include two LDOs, 'SAFEOUT1', 'SAFEOUT2'
@@ -470,7 +470,7 @@ config REGULATOR_MAX77693 config REGULATOR_MAX77802 tristate "Maxim 77802 regulator" - depends on MFD_MAX77686 + depends on MFD_MAX77686 || COMPILE_TEST help This driver controls a Maxim 77802 regulator via I2C bus. The provided regulator is suitable for
@@ -669,14 +669,14 @@ config REGULATOR_RT5033 config REGULATOR_S2MPA01 tristate "Samsung S2MPA01 voltage regulator" - depends on MFD_SEC_CORE + depends on MFD_SEC_CORE || COMPILE_TEST help This driver controls Samsung S2MPA01 voltage output regulator via I2C bus. S2MPA01 has 10 Bucks and 26 LDO outputs. config REGULATOR_S2MPS11 tristate "Samsung S2MPS11/13/14/15/S2MPU02 voltage regulator" - depends on MFD_SEC_CORE + depends on MFD_SEC_CORE || COMPILE_TEST help This driver supports a Samsung S2MPS11/13/14/15/S2MPU02 voltage output regulator via I2C bus. The chip is comprised of high efficient
@@ -685,7 +685,7 @@ config REGULATOR_S2MPS11 config REGULATOR_S5M8767 tristate "Samsung S5M8767A voltage regulator" - depends on MFD_SEC_CORE + depends on MFD_SEC_CORE || COMPILE_TEST help This driver supports a Samsung S5M8767A voltage output regulator via I2C bus. S5M8767A have 9 Bucks and 28 LDOs output and
Signature · 1 line
2.7.4
Mark Brown
maintainerRe: [PATCH 2/4] regulator: Enable compile testing for Maxim and Samsung PMIC drivers
Quoted 2 lines · Krzysztof Kozlowski
Most of Maxim and Samsung PMIC/MUIC regulator drivers can be compile tested to increase build coverage.
All these drivers already just depend on the MFDs which don't have any weird architecture dependencies - the main goal with COMPILE_TEST is usually to eliminate dependencies which just can't be selected so they can be built at all. Given that there's no easy way to select everything in a subsystem otherwise does this buy us a lot?
Re: [PATCH 2/4] regulator: Enable compile testing for Maxim and Samsung PMIC drivers
Quoted 9 lines · Mark Brown
Quoted 2 lines · Krzysztof Kozlowski
Most of Maxim and Samsung PMIC/MUIC regulator drivers can be compile tested to increase build coverage.
All these drivers already just depend on the MFDs which don't have any weird architecture dependencies - the main goal with
COMPILE_TESTis usually to eliminate dependencies which just can't be selected so they can be built at all. Given that there's no easy way to select everything in a subsystem otherwise does this buy us a lot?
Initially I thought similar - if parent MFD driver can be compile-tested, then these children do not need that flag...
However the MFD drivers depend on I2C which (currently) cannot be removed for compile testing. On the other hand, regulator drivers do not need that dependency so you can compile-test them with I2C=n. That is the main benefit. If you wish, I can add this information to the commit msg.
Best regards,
Krzysztof
PATCH 3/4 rtc: Enable compile testing for Maxim and Samsung drivers
In reply to Krzysztof Kozlowskimax8907, max77686 and s5m RTC drivers can be compile tested to increase build coverage. The s5m-rtc uses REGMAP_IRQ so add this as explicit dependency.
--- drivers/rtc/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/rtc/Kconfig +4 -3
@@ -303,7 +303,7 @@ config RTC_DRV_MAX6900 config RTC_DRV_MAX8907 tristate "Maxim MAX8907" - depends on MFD_MAX8907 + depends on MFD_MAX8907 || COMPILE_TEST help If you say yes here you will get support for the RTC of Maxim MAX8907 PMIC.
@@ -343,7 +343,7 @@ config RTC_DRV_MAX8997 config RTC_DRV_MAX77686 tristate "Maxim MAX77686" - depends on MFD_MAX77686 || MFD_MAX77620 + depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST help If you say yes here you will get support for the RTC of Maxim MAX77686/MAX77620/MAX77802 PMIC.
@@ -602,7 +602,8 @@ config RTC_DRV_RV8803 config RTC_DRV_S5M tristate "Samsung S2M/S5M series" - depends on MFD_SEC_CORE + depends on MFD_SEC_CORE || COMPILE_TEST + select REGMAP_IRQ help If you say yes here you will get support for the RTC of Samsung S2MPS14 and S5M PMIC series.
Signature · 1 line
2.7.4
Alexandre Belloni
AppliedRe: [PATCH 3/4] rtc: Enable compile testing for Maxim and Samsung drivers
Quoted 9 lines · Krzysztof Kozlowski
max8907, max77686 and s5m RTC drivers can be compile tested to increase build coverage. The s5m-rtc uses
REGMAP_IRQso add this as explicit dependency.Signed-off-by Krzysztof Kozlowski <[email protected]>--- drivers/rtc/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 4/4 mfd: Enable compile testing for max77620 and max77686
In reply to Krzysztof KozlowskiThe OF is not a strict build-time dependency so max77620 and max77686 can be compile tested to increase build coverage.
--- drivers/mfd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mfd/Kconfig +2 -2
@@ -563,7 +563,7 @@ config MFD_MAX14577 config MFD_MAX77620 bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support" depends on I2C=y - depends on OF + depends on OF || COMPILE_TEST select MFD_CORE select REGMAP_I2C select REGMAP_IRQ
@@ -578,7 +578,7 @@ config MFD_MAX77620 config MFD_MAX77686 tristate "Maxim Semiconductor MAX77686/802 PMIC Support" depends on I2C - depends on OF + depends on OF || COMPILE_TEST select MFD_CORE select REGMAP_I2C select REGMAP_IRQ
Signature · 1 line
2.7.4
Lee Jones
AppliedRe: [PATCH 4/4] mfd: Enable compile testing for max77620 and max77686
Quoted 7 lines · Krzysztof Kozlowski
The OF is not a strict build-time dependency so max77620 and max77686 can be compile tested to increase build coverage.
=20Signed-off-by Krzysztof Kozlowski <[email protected]>--- drivers/mfd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Quoted 14 lines
drivers/mfd/Kconfig +1
-1@@ -563,7 +563,7 @@ config MFD_MAX14577 config MFD_MAX77620 bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support" depends on I2C=3Dy - depends on OF + depends on OF || COMPILE_TEST select MFD_CORE select REGMAP_I2C select REGMAP_IRQ
drivers/mfd/Kconfig config MFD_MAX77620 · line 584
Quoted 8 lines
drivers/mfd/Kconfig +1
-1@@ -578,7 +578,7 @@ config MFD_MAX77620 config MFD_MAX77686 tristate "Maxim Semiconductor MAX77686/802 PMIC Support" depends on I2C - depends on OF + depends on OF || COMPILE_TEST select MFD_CORE select REGMAP_I2C select REGMAP_IRQ
--=20
Lee Jones
Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
--=20
You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---=20
You received this message because you are subscribed to the Google Groups "= rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected].
For more options, visit https://groups.google.com/d/optout.