Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbbEZWie (ORCPT ); Tue, 26 May 2015 18:38:34 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:34095 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751314AbbEZWic (ORCPT ); Tue, 26 May 2015 18:38:32 -0400 Date: Tue, 26 May 2015 15:38:29 -0700 From: Guenter Roeck To: York Sun Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, lee.jones@linaro.org, andrey@elphel.com, sebastian.hesselbarth@gmail.com, rabeeh@solid-run.com Subject: Re: clock driver Message-ID: <20150526223829.GA26454@roeck-us.net> References: <5564C58B.9050400@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5564C58B.9050400@freescale.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1327 Lines: 30 On Tue, May 26, 2015 at 12:12:11PM -0700, York Sun wrote: > Linux experts, > > I have rewritten a driver for Silicon Labs SI5338 programmable clock chip. The > original driver was written by Andrey (CC'ed), but was floatingn outside of the > kernel. The driver was written to use sysfs as the interface, not the common > clock framework. I wonder if I have to rewrite the driver following common clock > framework. One concern is to support a feature to accept ClockBuilder (TM) > output on sysfs. I don't see sysfs support on common clock framework. Please > correct me if I am wrong. > > If not using common clock framework is acceptable, I would like to send a RFC > patch for review. > My original driver for si570 was rejected because it didn't support the clock framework, so you might face an uphill battle. SI provides a document for SI5338 describing how to configure it without using clockbuilder [1]. Can that be used to implement generic code which doesn't need clockbuilder ? Guenter --- [1] https://www.silabs.com/Support%20Documents/TechnicalDocs/Si5338-RM.pdf -- 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/