Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4286311pxj; Mon, 21 Jun 2021 18:48:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQXRusYfwurOjnjR9Qy9hLqjIkIzbkYTKOC1JDPJ9VjyU2tlQrHsUPDEAOra+fiBnRV8lS X-Received: by 2002:a17:907:9cc:: with SMTP id bx12mr1149374ejc.25.1624326496517; Mon, 21 Jun 2021 18:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624326496; cv=none; d=google.com; s=arc-20160816; b=lLiL71bmrItK8z/BdNx/l2k3PTwxYsoiv74aOQ6ldVFH66Opdy9i948gD6aXJv8HX1 iq1swzfiMXNDSo3t6ap6yp30Pov9ndoAWkvJYEBVsfCFtR13uYmS19JQJyb7NvNpJLLT hQ9znD2Ey3+QzFLijFXetNBqj5XC3OYqhV8+kYGr2m8UVJKt/UBvSZ8HaZgn1VG4EMwy YczoXKlno4LUbHBWl/KeLwvViClLidWqJouXU70Htj1nlDHrOnPecT46uTMEnSgGl0xZ X/29/6EA1mBpuHd6pBmf0wUCGzbu2rKlw1o/bJEAakp9F4e1Kj/wGasLTbgo/v/fQETY STcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2T+4u9U452MLDrV2sYabqwjNLxExFpoXzhYGSkfV/Ws=; b=bVSpr6yUb6934YCEx/PP3j+w32xgUMj3WV1EWxNKtcPdq9K7tJ6Oq+YGw+yLjl+GYQ Vwq9lkU3gx83jZS710T0uBCtnE4JyfTKBziO2wQrlsc4+RVA1mtFOn2sVB6AubByJMbM VclQvThEPF6k9cLTIL7c9wfX/X9APOQ2Zg5+gHDUDB7yanFsGBA0wKIZ6SqEUJi/9I+R dHoIes4R+ZmULuGWChD/jb2J/OxEJYuERqw50NUy5n9PEwCEH87E7lEFkIJa0h+oM+d1 so21Vd3HuG8ozwLOmtPjh7QV446dhSJswtKdIrJ429WjRjB5wJZyWRIq/eUG12MzZ3nY oMbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eRVgBkLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hx2si5341435ejc.155.2021.06.21.18.47.52; Mon, 21 Jun 2021 18:48:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eRVgBkLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbhFVBq5 (ORCPT + 99 others); Mon, 21 Jun 2021 21:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbhFVBq4 (ORCPT ); Mon, 21 Jun 2021 21:46:56 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78EACC061574 for ; Mon, 21 Jun 2021 18:44:40 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id p7so33114727lfg.4 for ; Mon, 21 Jun 2021 18:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2T+4u9U452MLDrV2sYabqwjNLxExFpoXzhYGSkfV/Ws=; b=eRVgBkLkEobSTUu2RowLHRnirDS2+IwYWobxfQcL1BQgaljFpmhjb4Nq7LOUQ+Hj3M s4W6phGuKaUSejFuFkfCQ4U9v3NjqK4FOKXIomQNR81jfOE//up36OIDU7Mnx3DX4qpF l2cY4IJK/9UAsJPc6Nu/AETIeST4OORcrqv75/Seg1CHIvvQvQwe7iXiAz1dgNtUnBcG DgCCoGbUjaPkgkzK5U0tufNBgh54zK8J7B2+UnH6aXqk04V4W4S73ISaRvv9kqG8brSA n6TnhwiWH1Rk99hHEuAwK9kMtmxRFbKyGkRfUZqJk36daIK2zyCxk4SzQqKiRu4dDBb1 U2HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2T+4u9U452MLDrV2sYabqwjNLxExFpoXzhYGSkfV/Ws=; b=sP6qNG5i5+ZSJzpOuLyIx1Krm9R8fznmo1/mSnJcVWeICbI8mowb8lYcdBov9yfje/ tDWi6/EEFewTaBPPjlZEkLxNY/BbPkbkAbEh5jc4dHbdHnJ4WI0qqsbHz4Gh8EqOJnA9 XuOdim5gfr+TwutuP08y0N6q7tM3J5UMP1bIsC39hZRVOYcuTVPvo/46i7Cr9tMUstN8 Mq5DH/dW4aqDO/banoKji31aN6FpstWynR8Im7fUyqM7QiXJbYw9SxHaZJEtDEaeBRUu QBqAp+JXgPkNlzG/T77gbawqRIB9xPoGdYg9CkYuQUrwheFV72r8XZuFOmizFs17aRt2 tXww== X-Gm-Message-State: AOAM531HPOFBluedQffK39qi3srA3B718U1KF3Obz+JmxP5laQj8wopv XLZAdu1+zk27r3j9qO9w9B+zHZWxZ1qwXm+/LXA= X-Received: by 2002:a05:6512:1583:: with SMTP id bp3mr864286lfb.500.1624326278809; Mon, 21 Jun 2021 18:44:38 -0700 (PDT) MIME-Version: 1.0 References: <1624324395-7260-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: <1624324395-7260-1-git-send-email-shengjiu.wang@nxp.com> From: Fabio Estevam Date: Mon, 21 Jun 2021 22:44:27 -0300 Message-ID: Subject: Re: [RESEND PATCH v2] ASoC: fsl-asoc-card: change dev_err to dev_err_probe for defer probe To: Shengjiu Wang Cc: Timur Tabi , Nicolin Chen , Xiubo Li , Mark Brown , Jaroslav Kysela , Takashi Iwai , Linux-ALSA , linuxppc-dev@lists.ozlabs.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shengjiu, On Mon, Jun 21, 2021 at 10:31 PM Shengjiu Wang wrote: > > Don't need to print error message for defer probe > > Signed-off-by: Shengjiu Wang > --- > changes in v2: > - use dev_err_probe instead of dev_dbg > > sound/soc/fsl/fsl-asoc-card.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c > index 121e08c2af2a..24c890d76da0 100644 > --- a/sound/soc/fsl/fsl-asoc-card.c > +++ b/sound/soc/fsl/fsl-asoc-card.c > @@ -708,8 +708,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) > of_node_put(framemaster); > > if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) { > - dev_err(&pdev->dev, "failed to find codec device\n"); > ret = -EPROBE_DEFER; > + dev_err_probe(&pdev->dev, ret, "failed to find codec device\n"); I know I suggested dev_err_probe() before, but looking at this again, I realized that the error message will never be printed. Maybe the error message could just be deleted?