Message ID | 1525329609-7291-1-git-send-email-gabriel.fernandez@st.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Stephen On 05/03/2018 08:40 AM, gabriel.fernandez@st.com wrote: > From: Gabriel Fernandez <gabriel.fernandez@st.com> > > Clock driver is mandatory if the machine is selected. > Then don't use 'bool' and 'depends on' commands, but 'def_bool' > with the machine(s). > > Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers") > Sorry to insist but we need it to have STM32 MCUs booting on Kernel v4.17. Thanks in advance Alex > Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com> > Acked-by: Alexandre TORGUE <alexandre.torgue@st.com> > --- > drivers/clk/Kconfig | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index 24a5bc3..721572a 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -266,15 +266,13 @@ config COMMON_CLK_STM32MP157 > Support for stm32mp157 SoC family clocks > > config COMMON_CLK_STM32F > - bool "Clock driver for stm32f4 and stm32f7 SoC families" > - depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746 > + def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746) > help > ---help--- > Support for stm32f4 and stm32f7 SoC families clocks > > config COMMON_CLK_STM32H7 > - bool "Clock driver for stm32h7 SoC family" > - depends on MACH_STM32H743 > + def_bool COMMON_CLK && MACH_STM32H743 > help > ---help--- > Support for stm32h7 SoC family clocks > -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoting gabriel.fernandez@st.com (2018-05-02 23:40:09) > From: Gabriel Fernandez <gabriel.fernandez@st.com> > > Clock driver is mandatory if the machine is selected. > Then don't use 'bool' and 'depends on' commands, but 'def_bool' > with the machine(s). > > Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers") > > Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com> > Acked-by: Alexandre TORGUE <alexandre.torgue@st.com> > --- Applied to clk-fixes -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 24a5bc3..721572a 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -266,15 +266,13 @@ config COMMON_CLK_STM32MP157 Support for stm32mp157 SoC family clocks config COMMON_CLK_STM32F - bool "Clock driver for stm32f4 and stm32f7 SoC families" - depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746 + def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746) help ---help--- Support for stm32f4 and stm32f7 SoC families clocks config COMMON_CLK_STM32H7 - bool "Clock driver for stm32h7 SoC family" - depends on MACH_STM32H743 + def_bool COMMON_CLK && MACH_STM32H743 help ---help--- Support for stm32h7 SoC family clocks