Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756995Ab3CYLyT (ORCPT ); Mon, 25 Mar 2013 07:54:19 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:50307 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756749Ab3CYLyS (ORCPT ); Mon, 25 Mar 2013 07:54:18 -0400 MIME-Version: 1.0 In-Reply-To: <5149E85E.90701@gmail.com> References: <6e120226-8a3c-415f-90f2-c44e7b6bbf96@googlegroups.com> <5149E85E.90701@gmail.com> Date: Mon, 25 Mar 2013 12:54:17 +0100 Message-ID: Subject: Re: [PATCH v3] clk: add si5351 i2c common clock driver From: Sebastian Hesselbarth To: Daniel Mack Cc: michal.bachraty@gmail.com, fa.linux.kernel@googlegroups.com, Mike Turquette , Grant Likely , Rob Herring , Rob Landley , Stephen Warren , Thierry Reding , Dom Cobley , Linus Walleij , Arnd Bergmann , Andrew Morton , Russell King - ARM Linux , Rabeeh Khoury , Jean-Francois Moine , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1803 Lines: 37 On Wed, Mar 20, 2013 at 5:48 PM, Daniel Mack wrote: > On 20.03.2013 14:55, michal.bachraty@gmail.com wrote: >> Thanks for writing this driver! I have tested your si5351 clock >> driver and his tuning capabilities. It works well, it generates >> proper clock frequency, but when new frequency is generated, little >> clock gap (1ms) is generated. Si5351 datasheet and WP claims, clock >> tuning can be without gaps - >> http://www.silabs.com/Support%20Documents/TechnicalDocs/Si5350-51-Frequency-Shifting-WP.pdf >> >> I made some tests with Si5351A chip and I found that when tuning touch >> only Multisynth registers, it can tune without gaps. There is no need >> for soft PLL reset. I found also, accessing Multisynth registers is not >> atomic, so there can be another frequency at output, while not all >> registers are written. Writing only to one register seems to be atomic. Michael, if you don't configure the clock output to modify the pll, changing output frequency will not alter pll config and there will be no reset of pll. > Yeah, but limiting possible changes to the PLLs to one single register > also means that you cannot offer to generate all the frequencies any > more. What could probably be done is refine the algorithm so that it > stays 'as close as possible' to the former values, but I'm not sure how > much work that implies. > > Can you provide a patch against Sebastian's v3 to do that? Then it can > be cleanly applied on top of the driver later. Ack. Feel free to post a patch on top of v4 now. Sebastian -- 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/