Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754966AbbFQJ3k (ORCPT ); Wed, 17 Jun 2015 05:29:40 -0400 Received: from lb1-smtp-cloud2.xs4all.net ([194.109.24.21]:57290 "EHLO lb1-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbbFQJ3d (ORCPT ); Wed, 17 Jun 2015 05:29:33 -0400 Message-ID: <1434533368.2069.135.camel@x220> Subject: Re: [Patch v3] driver/clk/clk-si5338: Add common clock framework driver for si5338 From: Paul Bolle To: York Sun Cc: mturquette@baylibre.com, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Sebastian Hesselbarth , Guenter Roeck , Andrey Filippov Date: Wed, 17 Jun 2015 11:29:28 +0200 In-Reply-To: <1434472269-27601-1-git-send-email-yorksun@freescale.com> References: <1434472269-27601-1-git-send-email-yorksun@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1487 Lines: 45 On Tue, 2015-06-16 at 09:31 -0700, York Sun wrote: > COMMON_CLK in Kconfig is changed from bool to tristate so all common > clock framework drivers can be selected by users. A bool to tristate change isn't needed to make it possible to set a symbol manually. That's achieved by adding a prompt (which the patch also does). This change adds a prompt to the symbol that enables the framework. But, as far as I can see, clock drivers depending on that framework already can be set manually. So that's another reason the above looks incorrect to me. Note that the "help" of COMMON_CLK contains: Architectures utilizing the common struct clk should select this option. Does the architecture this patch targets perhaps not select COMMON_CLK? If that's the case, it seems you should change that architecture instead. > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > config COMMON_CLK > - bool > + tristate "Common Clock" > select HAVE_CLK_PREPARE > select CLKDEV_LOOKUP > select SRCU I told you yesterday that setting this to tristate allows over a dozen new modules to be created. I'd be surprised if that doesn't break stuff left and right without additional changes (which this patch lacks). Thanks, Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/