Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4289981pxj; Mon, 21 Jun 2021 18:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb8eDZnADcXwRwaBJjw0lCyO2QR/e6jvPg7EtWB8QcFo1EE7iAnWrUEr86PdqDZoAWyYYS X-Received: by 2002:a05:6e02:2142:: with SMTP id d2mr878998ilv.48.1624326972217; Mon, 21 Jun 2021 18:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624326972; cv=none; d=google.com; s=arc-20160816; b=q6jNbrQYnUPdIEUtHX1Hz1RxaMbiGBLhTeAExYAr+5N3fN273bAuU6AAxYZSsMCTrl LFp3KE842OlnRDkj4AARqgZUzYESitmpEcwCSMGT4h1xw4/Hooh4vGnR5gP8GFMZAEFS /BFEtqwaplmB400eRCeQERVExU+JoQjb6/TaKWlMU6VPWF8Azd935PoE5Gtszs0/qbcJ kHYkJe8kqDFyaLrdz1Op4qWMc1NNhRweuZGJXPLkJqr2bWkqoRvtzYyNwx4fXDvvuxe2 3/cJkUymFiHR+0uZiVO/OfsW0bZISb+jKcaQvoDDP6nEQjm77tLEMW6+PB5xdAsf2iYs 690A== 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=1QTuaNj1iCRevxIVn07f/kyH2pwUNv2dSDLfnl7sJyA=; b=fpOwuz9Lu1MBIiM8LiAGmUa/mJE44z/OGrD5iaNQGCDjF/YEtOdHvhTmf27m6fSKva WwePyc3ZJUKBvvZHgNKVhSdTX95WHIQE3c8PdhtRW4vedl2F712s/Ek0R1ypNe0zhkX+ RrTuMoBzr7u3P+ia2F35YZa2T4kgHUoGb5z6EFv7s9S2m/zVmD8GwsHvo7LVn5PmSQo6 iDF7OwVGrZgLr1AkBhqGD8KH2TXRiD6UXh3DnkRxGnL7jk8TJggDwBVYZ5xE74pEPu+v eLmN7VC7wAIOicUJP5CDFpoRuasFtvm31wewtrBxpVePlKGpk7ikgY35CJX8L1++nELH 1g9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oJNrVUa2; 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 m1si16049078ilu.13.2021.06.21.18.55.59; Mon, 21 Jun 2021 18:56:12 -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=oJNrVUa2; 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 S230343AbhFVBzl (ORCPT + 99 others); Mon, 21 Jun 2021 21:55:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbhFVBzk (ORCPT ); Mon, 21 Jun 2021 21:55:40 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E9E2C061574 for ; Mon, 21 Jun 2021 18:53:23 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id m15so2604546qvc.9 for ; Mon, 21 Jun 2021 18:53:23 -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=1QTuaNj1iCRevxIVn07f/kyH2pwUNv2dSDLfnl7sJyA=; b=oJNrVUa2XPX5TJqSmRrTkm0n3hiPddmWMVfa017B9LAUrPBpxAncFYkrkGZSDEXRBh AuBhSk3qcrWUlGNDCJjmssf0Vk2JApDxtoHkB8G5ja/M6VeMZY+8N/ION8pueo4oDD8o rmTqTefG1n90ow3ol+EgjrvPq7onL/saU9cSB/67IW4CvtGGZslQVe83NKXOUyVoAArx qvfF42EXyE1DH2ZONycGLVvneo844q60/iV+zKH6trXGym0Fj+myF39tCVrVHtk5aBCg O+F7XqYFobhmmUUI7+t1OQcOIgxsRytAJWE4aLtt42PXe8tEqlbq+o5xzwE0pQXi6Q6u g/tQ== 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=1QTuaNj1iCRevxIVn07f/kyH2pwUNv2dSDLfnl7sJyA=; b=KovSxQ2Ni3yq3jQ00jFQIBAfRVow2sup9eWCUYIMkpxFEx7M/XDEqfvkXiB8YIaMWx DiG/s1ciCZ6SNppbJMINUm+7/rchHOE80oRB7Uomon3wMWxcYXRLJ8vcBjrB3Ux7CROo NCwlk4QG0Ugx28r+kSUHEZw9x8TaG1v/3UsqXX5z3jmK08tCDo6ENg2TCibNCH9Usxf/ oh7LPpvoDwbNg57aFtnByLOdI32jdh2RrDyYzyipP6MeN6Hbr12aIxzaEmAMJ9p+1YFA mqff5Urqq+zR5bPWjwrb5+SvKeg1j7850vzmthyvXi+uJWxpnL4NBcMn04CWrUbH/KNK 1VfA== X-Gm-Message-State: AOAM533eChNjU0wKUdyAiQa2wIJVRgHM/A3ZAPJLUjqip9l2dr3z5VJ7 23KThnj75dFqJRgG9/WqGxkUih0MILrJrZrZbE8= X-Received: by 2002:ad4:4bc9:: with SMTP id l9mr9578935qvw.36.1624326801992; Mon, 21 Jun 2021 18:53:21 -0700 (PDT) MIME-Version: 1.0 References: <1624324395-7260-1-git-send-email-shengjiu.wang@nxp.com> In-Reply-To: From: Shengjiu Wang Date: Tue, 22 Jun 2021 09:53:11 +0800 Message-ID: Subject: Re: [RESEND PATCH v2] ASoC: fsl-asoc-card: change dev_err to dev_err_probe for defer probe To: Fabio Estevam Cc: Shengjiu Wang , Linux-ALSA , Timur Tabi , Xiubo Li , linux-kernel , Takashi Iwai , Nicolin Chen , Mark Brown , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 9:45 AM Fabio Estevam wrote: > > 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? so I think we can use the v1 one, use dev_dbg instead. best regards wang shengjiu