From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH v4] ASoC: simple-card: add Device Tree support Date: Mon, 2 Dec 2013 16:24:38 +0000 Message-ID: <20131202162438.GN12952@e106331-lin.cambridge.arm.com> References: <20131003104248.GI27287@sirena.org.uk> <87fvsh2966.wl%kuninori.morimoto.gx@renesas.com> <20131024171758.GA2461@kartoffel> <87iowm9jwv.wl%kuninori.morimoto.gx@renesas.com> <20131115155028.GE24831@e106331-lin.cambridge.arm.com> <87li0m7d7c.wl%kuninori.morimoto.gx@renesas.com> <20131118113617.GC30853@e106331-lin.cambridge.arm.com> <87mwl1du71.wl%kuninori.morimoto.gx@renesas.com> <20131120162403.GA22479@e106331-lin.cambridge.arm.com> <8738mqzk8z.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <8738mqzk8z.wl%kuninori.morimoto.gx@renesas.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Kuninori Morimoto Cc: "devicetree@vger.kernel.org" , Linux-ALSA , Lars-Peter Clausen , Pawel Moll , Stephen Warren , Takashi Iwai , Mark Brown , Ian Campbell , Liam Girdwood , Simon List-Id: devicetree@vger.kernel.org On Thu, Nov 21, 2013 at 12:12:13AM +0000, Kuninori Morimoto wrote: > > Hi Mark Rutland > > > > -------------------- > > > So, ideally. However we have to consider the fact that the clock API > > > isn't reliably available makes this harder than it should be. Even > > > among the DT using platforms at least PowerPC still uses a custom clock > > > API. We could just use this as a carrot to push people to convert > > > though. > > > --------------------- > > > > I would be happier if we could unify the common clock infrastructure, it > > would make this kind of thing a lot lessy messy. However, I'm not > > against the system-clock-frequency property for now. > > Thank you > > > > OK, sorry for my English > > > > Sorry for the confusion, I'll try to be less ambiguous in future :) > > > > What I was trying to get at here is that if there is neither a clock or > > a system-clock-frequency property in the device tree, dai->sysclk will > > not have been initialised in this path. Is this a valid case, and will > > dai->sysclk have a well-defined, sane value? > > My understanding, this "dai" itself is created by devm_kzalloc() > So, default dai->sysclk is 0. > And, if there is no clocks, no system-clock-frequency property, > it try of_property_read_u32() side. but it will do nothing to dai->sysclk > in such case. so dai->sysclk is still 0, and it is very sane on this driver. > Is this good answer ? That sounds fine to me. Just wanted to make sure. :) Thanks, Mark.