Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7261628ybh; Thu, 8 Aug 2019 12:43:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC4tq3vrghraWjYUy34EhXQN+/wIAlsgPY/GzDC8/Iu1k57rkh2t45VvEXQQ/03I2yLf+U X-Received: by 2002:a17:902:654f:: with SMTP id d15mr14245525pln.253.1565293400971; Thu, 08 Aug 2019 12:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565293400; cv=none; d=google.com; s=arc-20160816; b=j6KVRCHxLTBrONm53LnPMM0sQuxJuHT3E/60feeGvxD4bkdd2BDBEm30B9I1QtnhYu reCJzMho+DJ36xL4q+b2BrIhnZRXDYz6X6IypxZBMQoGPkijsdjzY3CtAjSxTRaewhWD UUeybGlqpmPK5j0HJy8vHTGkEgn9i0kgDsfzUafR8uJeMS9etVHP/7R70Zhfz12k/ZsN G8XRby64HCPZ94EOJlD4fUSBw2vn6hyx2L2yWqqQ7aIXy6Cfl9caOQ0/s6JN6Ugsomw2 Jpumjhz7aNAfDO7jf7gQEyqGQsJi/f1sautdUNtjYyKfcpbkrQ3ENHKfwNkpQYGcWJ+0 Nxrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=loQXC1douT+pE3TmAqOFGF87K1GV3m/+5JMD18/HSF0=; b=OTwjlCygFaJDpd8Vjg1WtU062t7C3dbQ8brr60MOqOqjjq5W8lPoBEkUQI5XQmNhkb KTnOVRW8XOeEVBBUce8iEXczA562y8R0kLiGcacB+hMk+i/xl5ZJYuB9SGFa4bIMRsIU 4Kk74X4b4LkQ0RfPCFtHlRwnuRLQLjt/28NcqKaVe/ytHlNQroiU+XbeU+qp/uT6ytvq kNC6JIZq8alXfx+RkwKclSp8EhoUuNSHwVLjohA+osxfGEwlA+QGGSM+u0xETRc6B1Ei EGcAKqozdIkYkIO9wrc2NB48umPMplsPcCIkqhqW26WgDNqGkOQ3evhQFXP85B3JAIZQ b/gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=LEu9JLll; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si56794076pgw.234.2019.08.08.12.43.05; Thu, 08 Aug 2019 12:43:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=LEu9JLll; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390261AbfHHT1u (ORCPT + 99 others); Thu, 8 Aug 2019 15:27:50 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:60984 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728025AbfHHT1u (ORCPT ); Thu, 8 Aug 2019 15:27:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=loQXC1douT+pE3TmAqOFGF87K1GV3m/+5JMD18/HSF0=; b=LEu9JLllOYP8sy6yAvu08FPGc Go/ojWDAqu+DptOthMkNG7BVmL/SloDqUb8BJ4haeFBUx2PNGzh/xulrr3SIF8uiETb6VcQwIwyEe 8OUGQcLy3oHIhwWseE1QRYt5Dl3u1NI63a9hjpt3Dm6TRYMj+6g/rQZd8r4FIixFbFb7c=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hvo4e-0003oc-1Q; Thu, 08 Aug 2019 19:27:44 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 404BD2742B42; Thu, 8 Aug 2019 20:27:43 +0100 (BST) Date: Thu, 8 Aug 2019 20:27:43 +0100 From: Mark Brown To: Stefan Agner Cc: Takashi Iwai , alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, Stefan Agner , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: soc-core: remove error due to probe deferral Message-ID: <20190808192743.GL3795@sirena.co.uk> References: <20190808123655.31520-1-stefan@agner.ch> <20190808124437.GD3795@sirena.co.uk> <20190808130217.GE3795@sirena.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1hKfHPzOXWu1rh0v" Content-Disposition: inline In-Reply-To: X-Cookie: I think we're in trouble. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1hKfHPzOXWu1rh0v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Aug 08, 2019 at 03:16:53PM +0200, Stefan Agner wrote: > On 2019-08-08 15:14, Takashi Iwai wrote: > > Mark Brown wrote: > > I guess we can use dev_printk() with the conditional level choice. > How about use dev_info always? We get a dev_err message from > soc_init_dai_link in error cases... > ret = soc_init_dai_link(card, dai_link); > if (ret && ret != -EPROBE_DEFER) { > dev_info(card->dev, "ASoC: failed to init link %s: %d\n", > dai_link->name, ret); > } Well, if there's adequate error reporting in init_dai_link() it's a bit different - we can just remove the print entirely regardless of what the return code is. The point is to ensure that we don't just silently fail. Unfortunately there's no prints in the probe deferral case there so they need adding, that'll actually improve things though since we can make it print the name of the thing it's mising which will be useful to people trying to figure out what's going on (we used to do that but it got lost in reshufflings). --1hKfHPzOXWu1rh0v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1Md64ACgkQJNaLcl1U h9AMagf+L43HuMa/NUgOlEHZm98nUtKAaX8K47V2+fZA8apI3qs/jrwjcUoIfhMU CZMT7n2i3X520n100poQubrce5JFTbXLd5Mm7H5E77Fs5zoZ5W53jL6ts5DoyQ5E UYpoxkg4bMQXmSgAlihHpjLRubteVsS3+07FhrSdGlvwlpGYSBrh+IOMtZes3I7W b7xTa6denXXkrx8sg6tznkI7q6xweTy+B3gc9GpIEA1CQek6a3WYq6DV+1C+t8dN Ps0f2A39s+UVOaHpPgtwb9V3DwlBGnUis0vdrET8JpfK7whAEaw1D58ADRW77QiS o6jc4CTInKtvwwipe0OcMO4Dn9jssQ== =mPEe -----END PGP SIGNATURE----- --1hKfHPzOXWu1rh0v--