Received: by 10.192.165.148 with SMTP id m20csp478442imm; Fri, 4 May 2018 00:55:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp0BgIb9aSqn169FOdtiOJ/0y5FoQufa6uQiN1aT5xVGJyYMtoe6ZrwTDEAC3DrWQoXzqXl X-Received: by 2002:a63:9401:: with SMTP id m1-v6mr21638342pge.140.1525420502620; Fri, 04 May 2018 00:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525420502; cv=none; d=google.com; s=arc-20160816; b=UmZ23w9PtTMiwARAGEGwxSUoEyPJpl6N9rdahNeCeagJFLqedpkyUuPZpXogQZ4CuV FVmnJ+E0TJ2iAR3Eq6PX5oyxOv8DtD+7cxFZBEVGH8tpvOu5HHtyYx6Gex8+eX8MTGlj Gc+nr/7qBWnGBIsUiETHhqXI3tOZbS1nR0hunAwzBvwydhGgPokKLTlBNnQ7FlqOnVwD g7GR4FT6/vQWrLDX+dTW+W7wqDxGnSpJ2XtWH1Jiw10Fq7VReEr0UtlpUGH1qZ+4C1LH aRXhnoperCGT4Yvbi3Iab2PGM3C190lE1gtcMtpyqt/Hqh7ZXgLWuV4/aMlnZJpFd4QL lGVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=dCHEOSKFlInkda6j6ZydvUmTU2VOjj10qqf4gik676w=; b=CAtZ9yaVagvXckwRmkoYYQGCWlgDO38S9GSz1aBm1pW10ybvafi+bnaBbD0Z5rQ5SR heWIsINtE6QtIWr9YFOHl+HdfOTmKaHKohIqc5WnziV9gl0sEMiPm1k54QR7bquAvIEA YqumeKwt39lZZiuWVO/anabwbrcvgiBH50F6h4PClVzJXSvHOjyBQVByodPrrV/Q04Rv HY3TvXleZ8/y17Ujv0M73crn+x88jBlzzRreku0yJ9ONlQ2+IrLDGWVFvoMCv4oBPRLO vQIZMAZn2NDKG3YjFfpk3Pfp+ZcftV9dwgT1BGBrajaLVEc4etdQArAm9RHc9BsHFBNj neLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i192-v6si1308276pgc.73.2018.05.04.00.54.48; Fri, 04 May 2018 00:55:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751326AbeEDHyf (ORCPT + 99 others); Fri, 4 May 2018 03:54:35 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:47212 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751257AbeEDHyc (ORCPT ); Fri, 4 May 2018 03:54:32 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w447sP3g026492; Fri, 4 May 2018 09:54:27 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2hqe4v1kvk-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 04 May 2018 09:54:27 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 134453D; Fri, 4 May 2018 07:54:27 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DB6E0169C; Fri, 4 May 2018 07:54:26 +0000 (GMT) Received: from [10.201.21.58] (10.75.127.46) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 4 May 2018 09:54:25 +0200 Subject: Re: [RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default To: , Michael Turquette , Stephen Boyd CC: , , benjamin GAIGNARD , Loic PALLARDY References: <1525329609-7291-1-git-send-email-gabriel.fernandez@st.com> From: Alexandre Torgue Message-ID: <0066b4db-8da6-007d-780d-a8ffc4884ad0@st.com> Date: Fri, 4 May 2018 09:54:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1525329609-7291-1-git-send-email-gabriel.fernandez@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-04_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen On 05/03/2018 08:40 AM, gabriel.fernandez@st.com wrote: > From: Gabriel Fernandez > > 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 > Acked-by: Alexandre TORGUE > --- > 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 >