[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3551eb15-319d-4304-b213-2b0d9672419b@AM1EHSMHS019.ehs.local>
Date: Wed, 18 Sep 2013 13:41:01 -0700
From: Sören Brinkmann <soren.brinkmann@...inx.com>
To: Stephen Warren <swarren@...dotorg.org>
CC: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Guenter Roeck <linux@...ck-us.net>,
Mark Rutland <mark.rutland@....com>,
<devicetree@...r.kernel.org>,
Mike Turquette <mturquette@...aro.org>,
Hyun Kwon <hyunk@...inx.com>, Pawel Moll <pawel.moll@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Rob Herring <rob.herring@...xeda.com>,
<linux-arm-kernel@...ts.infradead.org>,
Rob Landley <rob@...dley.net>,
Grant Likely <grant.likely@...aro.org>
Subject: Re: [PATCH] clk: si570: Add a driver for SI570 oscillators
On Tue, Sep 17, 2013 at 10:14:01AM -0600, Stephen Warren wrote:
> On 09/17/2013 01:59 AM, Sebastian Hesselbarth wrote:
> > On 09/16/2013 08:37 PM, Stephen Warren wrote:
> ...
> >> Perhaps if clock-frequency is specified, the driver should refuse to
> >> provide anything else. If clock-frequency isn't specified, the driver
> >> shouldn't touch the HW when it initializes, but should honor any
> >> requests that come in from other drivers? That would maintain what I
> >> feel is clock-frequency's connection to being a fixed clock.
> >
> > For the clk-si5351 programmable clock driver in mainline, it already
> > uses "clock-frequency" for initial clock setup but allows to set it
> > later on. IMHO that is ok, because from a initial point-of-view, an
> > initial frequency is fixed. As soon as the driver takes over, the user
> > is free to do whatever he wants and should not be limited by DT.
> >
> > But if we vote against that approach, we should probably also modifiy
> > clk-si5351 accordingly.
>
> I suppose that approach isn't unreasonable. So, if there's precedent for
> it, this driver may as well follow it.
All right, this sounds the most flexible to me and requires the least
changes as well :).
I think all I have to change for v2 in regards of this, is to rename the
property to 'clock-frequency'. I'll do that and send out v2 later today.
Sören
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists