Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757634AbbFQRSd (ORCPT ); Wed, 17 Jun 2015 13:18:33 -0400 Received: from mail-by2on0121.outbound.protection.outlook.com ([207.46.100.121]:12107 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757107AbbFQRS3 (ORCPT ); Wed, 17 Jun 2015 13:18:29 -0400 Authentication-Results: elphel.com; dkim=none (message not signed) header.d=none; Message-ID: <5581ABE1.3030501@freescale.com> Date: Wed, 17 Jun 2015 10:18:25 -0700 From: York Sun User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Paul Bolle CC: , , , Sebastian Hesselbarth , Guenter Roeck , Andrey Filippov Subject: Re: [Patch v3] driver/clk/clk-si5338: Add common clock framework driver for si5338 References: <1434472269-27601-1-git-send-email-yorksun@freescale.com> <1434533368.2069.135.camel@x220> In-Reply-To: <1434533368.2069.135.camel@x220> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: CY1PR22CA0035.namprd22.prod.outlook.com (25.162.32.173) To BL2PR03MB145.namprd03.prod.outlook.com (10.255.230.13) X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB145;2:SoNna8FdpRlJUiaYnHEzVCqvKKkh1ywsa6KkttaD+rwTlcg0pbt70+DCGsS5zWWo;2:KJs1tQR8KZpH4dFjpxRn2ga/C84t1pKv7PI9pr8xik0rxUyj7BdaSov2LmgAuw3CvoFbK6gESHjUVox0/NeNMvamu8ogUDYfEc1yg/8oJjZPs0KfK/rqTCbYzR6xyUaxbMXpI6mxjp0IGm7nUy0coA==;6:tT5wgQyNQMJxpjKuLO/8EBfphsfm7ag+47FRWsPifze4aVERnn0Z8I89F2ULffDHnuqnT8eT0B6BTp1aW4uSj2rCF/ArwuYr2zWaL0owJCUatO6M+ph5HJhFt/Hj+GmZWp2lczphXj7iut5Jb3wOM5GXerwRkdaPE7Fz2tglMySabSAGeGUWM7IbIbG2YkVaoQ705ZLEYxIw0jXjrpBZP/FuD94aBy040y6JLcyhMUHj1jhGbZCGerlvnoevF4qS+gIvpMdZWgOhSj5WAMGfDjeNr7RMR/fXtT56qzobWaLbjySxSID3vzE9jZ8D5uo1vnvgQbcQSn3YlumFS5afa4S1ALJQZrvn0tuKoyO/75Nn3IwlCsNNcFWPx09elkts1yCGDmj+7CNBRbPXhdz2HHFEkNfEz4s/98+iTLi9rbrU4d9K0RzmpxSjD0hZSWxofRj/Ica8LLCJwKDHEtYlkjqYcI+tQTXtYKlgTq0lLw6K2eAZMl/DWtu4sU7KX3h4fBTtyiKAjxX6iDE8T4YXVzKZtzss+uppoR98uk+VHaGPXV7OfgjPyFEKPvuStov8b0KyqaGJb55SpSqYwIyosX+xsvsee6BwcdHdYEU9BKo= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB145; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:BL2PR03MB145;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB145; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB145;3:e+bJCTFoUUs4WKsdQNkAtjIzDnig/bbKiNXVlpQjSiDVYTKHCGtMFntj7y1VzH4M6nDdPcj/d5H112dCLiqgrz6YVe5nyPic0ilexhHQ40Mr9E9inwHUSQ4tCszvzuBIzJT/Ipgn/ITECOc8ikvLhU2O2vyW54mCMh5A/Y3AQp84gcZVrebhi9AOEgkgypDE5gBTropnnIIkYvFVBNikzWuHxvUHCLa/39HdBWZB37D8XVo6u9iBmR0EvJpS7P9MjKw3es72tZMLRPqmHThJPTFwcpeIsiXR91hIrAHnPA8jUbC5UE6UfkAbEyV9e9ho X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(6049001)(479174004)(24454002)(377424004)(51704005)(377454003)(59896002)(86362001)(80316001)(33656002)(5001960100002)(50466002)(77156002)(122386002)(62966003)(40100003)(87976001)(110136002)(36756003)(46102003)(189998001)(65956001)(66066001)(65806001)(77096005)(23676002)(83506001)(47776003)(2950100001)(64126003)(42186005)(87266999)(54356999)(50986999)(76176999)(65816999)(92566002);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB145;H:[10.214.81.216];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDJQUjAzTUIxNDU7OTpsMnpNeTIvMjdYQW0rMng2cEx2dmNtQVpvUGZY?= =?utf-8?B?aHNFS055NXNoYXF2S1p4NE5BNmxsRmVwS1FXRGFIVWtBd01DYkZuQWFuZGYx?= =?utf-8?B?amYydGtnK0hta3k5Zmlqem9ibnFrOEpYQlpNZVVkYy9VdEQ0OWZoYVhGa0hX?= =?utf-8?B?cUxPbzZNZ09oWmZ1djArNEZ5ZVdzeldPRUhKQXZNVkpwUW9GbGg4YVdJYUJC?= =?utf-8?B?d2FSeWFKaGFXYkdpZGFIUkw1R3NUY1dQYmVqeXJqMlBpQzNvVnM2YzVpVjR6?= =?utf-8?B?Mzc0VHlKVk1BenFnMXRna0gvQzJ0ZUpOa05ma0hKVEpnSDdzUnArbFF3S1RN?= =?utf-8?B?QXgrSUJpL21WQjFNMTNkMlA1ZkhOUUU0Wm96VzgrWnE3OG1adkZzMzFpMVNV?= =?utf-8?B?Zk9qQlViWWR3T2VpbTNMcVQyWEpYS2RRcjhXK3lSa1BLdmtla0NHQmtCT05S?= =?utf-8?B?V09tSEYzQXNsYkRQa0U4OWU0TjM1cVF3Y0tESUplNlpmamxQQXJiY0xJMkdw?= =?utf-8?B?aHIzajRBM2NJY0d0ZldWWWtQQm1ialdIRGRlQStXQlRiR01rNXFpYzV0MEJq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DfXfCPsYLHlJySr58FXqOXdFe4SljwnjMQ==;10:E3/563lLt9AKDqDvUrXyoZE+CMqcxoiD59C7qUYJGUQ0Nb2OIT1EnbRZmPfcfdb2PNYXoDYOXbcxc8yt0xsagkbuwA/cegAKr9ntnzcWtco=;6:/WsmO/I/lcNtqc1TQQVM1AfCuq1NAb+Vy3w7aBKOGfUyr+VcaVK8chtMHp+hpHZF X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2015 17:18:26.3432 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB145 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2222 Lines: 59 On 06/17/2015 02:29 AM, Paul Bolle wrote: > 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. Paul, I did check the mechanism to select COMMON_CLK. It doesn't fit my application. But it is not in the scope of this patch. I will discuss at the end of this email. > >> --- 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). Yes you did. I checked over and over and believe enabling this option doesn't break anything. By enabling it, a dozen modules are built either in the kernel, or as modules (depending on y or m). They support fix-rate clock and others. Here is what I am going to do. I will separate the Kconfig from this patch so it doesn't block this patch from going forward. I will continue exploring the correct way to enable common clock framework, for my application and for general use. York -- 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/