Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757894Ab3CTIUY (ORCPT ); Wed, 20 Mar 2013 04:20:24 -0400 Received: from mail-ee0-f52.google.com ([74.125.83.52]:60827 "EHLO mail-ee0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757845Ab3CTIUV (ORCPT ); Wed, 20 Mar 2013 04:20:21 -0400 Message-ID: <51497140.9020804@gmail.com> Date: Wed, 20 Mar 2013 09:20:16 +0100 From: Sebastian Hesselbarth User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Mike Turquette CC: Grant Likely , Rob Herring , Rob Landley , Stephen Warren , Thierry Reding , Dom Cobley , Linus Walleij , Arnd Bergmann , Andrew Morton , Russell King - ARM Linux , Rabeeh Khoury , Daniel Mack , Jean-Francois Moine , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3] clk: add si5351 i2c common clock driver References: <1360414772-12232-1-git-send-email-sebastian.hesselbarth@gmail.com> <1363603397-2762-1-git-send-email-sebastian.hesselbarth@gmail.com> <20130320002623.8663.55217@quantum> In-Reply-To: <20130320002623.8663.55217@quantum> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1640 Lines: 40 On 03/20/2013 01:26 AM, Mike Turquette wrote: > Quoting Sebastian Hesselbarth (2013-03-18 03:43:17) >> This patch adds a common clock driver for Silicon Labs Si5351a/b/c >> i2c programmable clock generators. Currently, the driver supports >> DT kernels only and VXCO feature of si5351b is not implemented. DT >> bindings selectively allow to overwrite stored Si5351 configuration >> which is very helpful for clock generators with empty eeprom >> configuration. Corresponding device tree binding documentation is >> also added. >> >> Signed-off-by: Sebastian Hesselbarth >> --- >> Changes from v2: >> - add curly brackets to if-else-statements (Reported by Daniel Mack) >> - fix div-by-zero for clk6/clk7 (Reported by Daniel Mack) >> - fix parameter address calculation for clk6/clk7 >> >> Changes from v1: >> - remove .is_enabled functions as they read from i2c >> (Reported by Daniel Mack) >> - add CLK_SET_RATE_PARENT on clkout reparent if clkout uses >> its own multisync >> > > I've just pushed out a new clk-next branch which includes Ulf Hansson's > series to introduce the .is_prepared callback. Perhaps you can use that > where you were previously using .is_enabled? Mike, thanks for the info, but I think having .prepare_enable and regmap caching is just fine for now. When .is_prepared is in mainline, I will re-add the callbacks. 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/