Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965518AbbBCOlm (ORCPT ); Tue, 3 Feb 2015 09:41:42 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:65478 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbbBCOl1 (ORCPT ); Tue, 3 Feb 2015 09:41:27 -0500 MIME-Version: 1.0 In-Reply-To: <20150203124441.GK21293@sirena.org.uk> References: <1422934415-24957-1-git-send-email-voice.shen@atmel.com> <20150203124441.GK21293@sirena.org.uk> From: Manuel Lauss Date: Tue, 3 Feb 2015 15:40:45 +0100 Message-ID: Subject: Re: [RFC PATCH] ASoC: wm8731: let codec to manage clock by itself To: Mark Brown Cc: Bo Shen , Manuel Lauss , Liam Girdwood , Richard Purdie , patches@opensource.wolfsonmicro.com, linux-sound@vger.kernel.org, alsa-devel , linux-arm-kernel@lists.infradead.org, LKML 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: 933 Lines: 22 On Tue, Feb 3, 2015 at 1:44 PM, Mark Brown wrote: > On Tue, Feb 03, 2015 at 08:54:57AM +0100, Manuel Lauss wrote: > >> + wm8731->mclk = devm_clk_get(&spi->dev, "mclk"); >> + if (IS_ERR(wm8731->mclk)) { >> + wm8731->mclk = NULL; >> + dev_warn(&spi->dev, "assuming static MCLK\n"); >> + } > > This is broken for both deferred probe and in the case where the clock > API genuinely returns a NULL clock. Other than that it's the kind of > thing that we've done for some other drivers, though it's not good to > have to do this. Check them for correct behaviour. Hm, so the only option is to create the simples possible 12MHz clk object? Manuel -- 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/