From patchwork Thu Jan 18 11:23:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 124935 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp84188lja; Thu, 18 Jan 2018 03:23:40 -0800 (PST) X-Google-Smtp-Source: ACJfBotTLfg1u5mPXGpqn0RqtKVlfoIH479DnFpprgRvs3ZR6tacaVPtt9FgjvEwQ+I5X0OdW3Nk X-Received: by 10.28.157.139 with SMTP id g133mr4992864wme.114.1516274620404; Thu, 18 Jan 2018 03:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516274620; cv=none; d=google.com; s=arc-20160816; b=S1eSoenyzMBSrBNaGJGS7ndjeSfc8SFEIlHQFpFrXGwd2YXROM5YJQC3leJGjv9WuL UhNv8sCl923YZMlVmlu6TzJ/Qrtxe9hU87knSFn15zz2MS4ygCJmFwjRrjzgHLQwSntv ralyaMy2/GrvFgT1eQDjDeepbv0GJhq/PMMHPHKFb58cQu8inMzq6GGCNQEbZJbMSFUI gsMJMFyUE1jabZcWHsAbcJTyTal09PYqFDleut43gLQnwtSpCY/KTQUgOMrUpQkZRdi4 Yw+gtUtyQuZPpoKuOcukYROuOrGGqDFxTADRoL3+XFdmeaPuvfj4bw2GNkQVHqJhs1Fj Kdrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=Rne5WeUjDwg4EOqWFyqtM7YgyfCd0hQ/0o3R4SO9sIo=; b=bveOAPGlnkrddYeANhWUvl95R/UWrMJziKItYg5jKy1ZoR7Z9GtHZEg0WfgyGAL6K5 PgyfWPuWkcHUeebNfbycYKBucGp+fvkNY4ckuhN3WQmj46DIF3chdck8NCbidYYoQIQW GnZlyFVqtkQYll0I5XY/UuG8iMet6LN5DoymJI59ZJ1U1iOfHTPnBupPqN5iia/H1xpm XuMlctKBvOLBAoIWiIiCoSLeNYkOA1YrqoJEjBZ01N6KESSn2QHgC7EcueRFWYiMpgyc TQEPlIzk+IZoE5xD/30OG2avG3RK/tjxv0JEXEajv8+YWyfR8Yzjv5soCEuN+w3XWUQ9 u29A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=d8rJTKRi; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 195si3960573wma.42.2018.01.18.03.23.39; Thu, 18 Jan 2018 03:23:40 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=d8rJTKRi; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A521C267869; Thu, 18 Jan 2018 12:23:06 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0965E2671CF; Thu, 18 Jan 2018 12:23:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 651A32671C0 for ; Thu, 18 Jan 2018 12:23:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=kYvD8Pmpl8iM/SkOod3Md/UupFt9KWrDrQka+A1b2Gc=; b=d8rJTKRis7hi h/SJ0UbIFW0DzruAGuDx54yj7RZSSFWpaeGAiX+7wgmZlBdKcyMsuAaB9fvYtBCZMS0nPCBG0DOuP nBBdRLb3Bb306nLZtmnLGen8p2a0JBoq2qdS+6hBTF1iKvvxWdKLJWClP7GHKyTVLsRaWbchZ/SCh wrFUs=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ec8Hc-0007K3-W4; Thu, 18 Jan 2018 11:23:01 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1ec8Hc-0003ll-Gb; Thu, 18 Jan 2018 11:23:00 +0000 From: Mark Brown To: Fabio Estevam In-Reply-To: <1516203981-6333-1-git-send-email-fabio.estevam@nxp.com> Message-Id: Date: Thu, 18 Jan 2018 11:23:00 +0000 Cc: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [alsa-devel] Applied "ASoC: sgtl5000: Do not print error on probe deferral" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: sgtl5000: Do not print error on probe deferral has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 8af5748fa48698a433ba9a1766204bda283dffa8 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Wed, 17 Jan 2018 13:48:54 -0200 Subject: [PATCH] ASoC: sgtl5000: Do not print error on probe deferral When the MCLK is not yet available when the codec is probed, probe deferral will happen and in this case we should not print an error message. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- sound/soc/codecs/sgtl5000.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.15.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index f2bb4feba3b6..633cdcfc933d 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1332,10 +1332,13 @@ static int sgtl5000_i2c_probe(struct i2c_client *client, sgtl5000->mclk = devm_clk_get(&client->dev, NULL); if (IS_ERR(sgtl5000->mclk)) { ret = PTR_ERR(sgtl5000->mclk); - dev_err(&client->dev, "Failed to get mclock: %d\n", ret); /* Defer the probe to see if the clk will be provided later */ if (ret == -ENOENT) ret = -EPROBE_DEFER; + + if (ret != -EPROBE_DEFER) + dev_err(&client->dev, "Failed to get mclock: %d\n", + ret); goto disable_regs; }