Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6900903ybh; Thu, 8 Aug 2019 07:23:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQg6y6Q1ht8HwE6oueo+lh17VmeY8oK2Gr8WzHN7SK62dQVPyq5Jhng9E/NnL2RoVGBG6M X-Received: by 2002:a17:902:8489:: with SMTP id c9mr14207454plo.327.1565274218097; Thu, 08 Aug 2019 07:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565274218; cv=none; d=google.com; s=arc-20160816; b=TaNScOCZ2W6aeasNjmI03qrHw4xo+lpl+jfmlHYGeKX/57s2WAUyNZmgb6729hGhzf siavW2r/BeShfO0SR1cYtd78j7Ns35gmCNrB51WtbfCIkIgRFce79YgxDGul4dt9+Zqm ymvsQTCP9ydBRYnjXhXzp+WFsXj0ihVS6TcEyhDNkN7RRH/iYpJrIZ8nDqGdJ1bHkrKx uOnNe1eQLgqcC5YW19u0MFI0Hzy7oQ67C8aAm5E7znmTfaGh3nOTZgfHSfEDBIgzCkF+ 09mCvIrKDFqqR2qwR8s11FHd6fc04ToZCNJxeVGbmABtnpXhmxyAO/x0yP2i28LxIebt 6AWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=AAyN24AzAzO1awwqHODdXPWc78B4O/mVcZTdCznoEes=; b=phZ2v54lD0Im7EMSBy0aD1ZcBfil9wGidsU2IeVBCSDyfa+IkstabA1n9I1Nq39Nas soFlOVBeAIolD690Mii3JikRMOusiTS5eUGgP0XTpshkg9p4DEUWGnOtqtgNaUVb2zsc ZTmol2xkat6cTi9mXtA1xZFaEG3Thl7/dEfqulssHA77T7QP90ohDV/ySu6DFt5vc20T ttMOZ5yOWu3U+P+0GIAg6Ol56W/7Uk3ylDoVVyDFKfhvqFIo7VQCuHEHtBBKEVA6j/fW ubBpLQgK9i1v8o3+HY0cVjaTeDrvkTnGOZZ8Lrum2x2iGTz0U24nZ4jYbUKd21xGOhQD q5Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ihji1C0P; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si15177564pgh.41.2019.08.08.07.23.21; Thu, 08 Aug 2019 07:23:38 -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=pass header.i=@agner.ch header.s=dkim header.b=ihji1C0P; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732981AbfHHNQz (ORCPT + 99 others); Thu, 8 Aug 2019 09:16:55 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:48864 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732808AbfHHNQz (ORCPT ); Thu, 8 Aug 2019 09:16:55 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id F38935C2324; Thu, 8 Aug 2019 15:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1565270214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AAyN24AzAzO1awwqHODdXPWc78B4O/mVcZTdCznoEes=; b=ihji1C0POjshqOnHilzCuIJvCLQiIHTYUZvITc2HhVRGqAwz7VUPA7HyZnNVoj8M0cxJog 0o304WNpDEQmark5ttYGQwnbMGUwQnc854J8a+oymFH6jw8IuoNb96izgE5X3BZlI++rwL nFxk2rEl1AJFBrbrXLmQMig+I+bNdJw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Thu, 08 Aug 2019 15:16:53 +0200 From: Stefan Agner To: Takashi Iwai Cc: Mark Brown , 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 In-Reply-To: References: <20190808123655.31520-1-stefan@agner.ch> <20190808124437.GD3795@sirena.co.uk> <20190808130217.GE3795@sirena.co.uk> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-08-08 15:14, Takashi Iwai wrote: > On Thu, 08 Aug 2019 15:02:17 +0200, > Mark Brown wrote: >> >> On Thu, Aug 08, 2019 at 03:00:06PM +0200, Takashi Iwai wrote: >> > Mark Brown wrote: >> >> > > No, they absolutely should tell the user why they are deferring so the >> > > user has some information to go on when they're trying to figure out why >> > > their device isn't instantiating. >> >> > But it's no real error that *must* be printed on the console, either. >> > Maybe downgrading the printk level? >> >> Yes, downgrading can be OK though it does bloat the code. > > 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); } if (ret) { soc_cleanup_platform(card); mutex_unlock(&client_mutex); return ret; } -- Stefan