Received: by 10.192.165.148 with SMTP id m20csp733939imm; Fri, 4 May 2018 19:46:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr3fEkgICNo8Fzu/YeSMBDgsWCkDBELEOazowCbB202BzvLseu/5B5OpU6ft8kHVwGekQfa X-Received: by 2002:a17:902:229:: with SMTP id 38-v6mr4443522plc.384.1525488367016; Fri, 04 May 2018 19:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525488366; cv=none; d=google.com; s=arc-20160816; b=dQ5Blxb5WfEf6YoAipbiVJ7uIT8puVp6Gagr0/WdxB/5J9PmAG0kz1RAlfsOZbgdHQ o0kz9KnWaH7RqysULj615ytbYUXWkIzPIKAy7JvzIj5ASsQe7/eT0KAy8ipHfA5xzIDz JCl95+Ug+itzu4Reh6dFRZsJztlPKZic/VI77DrXTtoB6k/TMpQjB4h/RhLZUcLwq1pU onGtklHY5S1l3/AoAPGqqwc2DBUDo1/OtelRH8ZbFOFtB+Gn96aSa7J5LoHcbNuGxBoG FYj62ABQAWU7EAKZ+SidI8ENo6ltZ+j9wTrGUUzMb/5Rg8wiLj5mSYQGrzTHyljR2XgX 3OZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=T0p9xogGJYFBQqjPEq3eed3pnOuubCBENWyVwQoQ5Xo=; b=m3yfX1GkASPa/OclPRBsGjW5Nbxxu8oann0+4nMO309Yxy2eKpXvvksjys3WEeFcQ/ LEyN/VMrrTlfu7Vr8P3jgEebCYEH9jWyTWMOqHPT3MayxFaZ0z/h/2Zr+cuKnTorYKC9 8TmaDfHea/RTALI9BOIFI4rVvSEiLFcRQ8BHsVhN0czi6d2yl/MMzMpK/X03yNIabLlH SZRT27egEz8eqILk/y649Htzr0WJnNmZTcIq/VeOzefGs8uaUNpfWEiEsAtMtegt7aFF rvyHsqYd6IFE4xEJ6Djb53OYE/ieWxwWDUFCowuXn4ObtFSpmWy/6dAIfvBBOomCGMoQ XKig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S1DmpNNe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v80si5762779pfa.173.2018.05.04.19.45.51; Fri, 04 May 2018 19:46:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=S1DmpNNe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751925AbeEECpd (ORCPT + 99 others); Fri, 4 May 2018 22:45:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:43042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbeEECpb (ORCPT ); Fri, 4 May 2018 22:45:31 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D0DA20740; Sat, 5 May 2018 02:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525488331; bh=tGLXq6gxzb94eQ/eRqp12Pexi6YGbSHUV2Gmb1rDA/E=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=S1DmpNNegyRf2JQaU9BSLYzJug3CKx/o41R8DO6wyMgYtLOm/GwhXkg1I4rgsjuXf 2BgbE+87HXDkI9N8VxLqyX95eqIu9dtNdpJpl9GBdQFmhxn/9HoM5ad48pjQQyuV3X yiRd5lldyM079gS3ioE4VO74SikmOa/ZukFTvLH0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Alexandre Torgue , Michael Turquette , gabriel.fernandez@st.com From: Stephen Boyd In-Reply-To: <0066b4db-8da6-007d-780d-a8ffc4884ad0@st.com> Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin GAIGNARD , Loic PALLARDY References: <1525329609-7291-1-git-send-email-gabriel.fernandez@st.com> <0066b4db-8da6-007d-780d-a8ffc4884ad0@st.com> Message-ID: <152548833044.138124.7516235724401510636@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default Date: Fri, 04 May 2018 19:45:30 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Alexandre Torgue (2018-05-04 00:54:16) > 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 t= he stm32 drivers") > > = > = > Sorry to insist but we need it to have STM32 MCUs booting on Kernel v4.17. Thanks for the bump. I missed this one. Of course, the user can still select the configs now, just it's annoying for upgrade path. > = > > 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) But the point of the change this patch is fixing was to expose these to the user to turn off they wanted. You'll need to do something like that again here, instead of removing the prompt and replacing it with a def_bool. So this patch instead? It leaves it around for the whole arch, but limits the default to be the machines that matter. I suppose we could put an 'if EXPERT' on the bool part too if we don't even want to expose the options to normal users. -----8<----- From: Gabriel Fernandez Date: Thu, 3 May 2018 08:40:09 +0200 Subject: [PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default Cc: , Clock driver is mandatory if the machine is selected. Add a default of the machines that need the clk driver, so that the user can turn it off if they want, but otherwise it's exposed on the SoCs the driver is for. Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the s= tm32 drivers") Signed-off-by: Gabriel Fernandez Acked-by: Alexandre TORGUE Signed-off-by: Stephen Boyd --- drivers/clk/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 41492e980ef4..ac3f0e2bc03f 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -267,15 +267,16 @@ config COMMON_CLK_STM32MP157 = config COMMON_CLK_STM32F bool "Clock driver for stm32f4 and stm32f7 SoC families" - depends on MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746 + depends on ARCH_STM32 + default 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 - help + depends on ARCH_STM32 + default MACH_STM32H743 ---help--- Support for stm32h7 SoC family clocks = -- = Sent by a computer through tubes