Message ID | b941a404d97c01ef3e30c49925927b9a7dafeb19.1702422544.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp8057756vqy; Tue, 12 Dec 2023 15:10:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZg2ROpurIkUZ5ZQg8fFWOJjL4qgus6a/bkd0kVsN11qrrekRfEUlcDRlqGEqnRhR/xM96 X-Received: by 2002:a17:903:2344:b0:1d0:76f4:e41b with SMTP id c4-20020a170903234400b001d076f4e41bmr3672163plh.45.1702422645616; Tue, 12 Dec 2023 15:10:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702422645; cv=none; d=google.com; s=arc-20160816; b=ClLh84RSOqweJu2Kkb0R1ydlUvycMjH/lxl6d5iypKKZzxUNg8q/UPPPCC+NFxS8ym +YbicetWwovkkthuCV12ruBvDAiJi/M2d8b1+xGak9KswXHg95rZbzcio1YXv4Y7h7d1 Cbbr+dhxn6267lZ5FmTM2Y2xTwweIMIGZDVOdfIhQffzj/eO/crK7vTi/mAR+LlPX5yd GgbPJGdrHeRzqLC/GbGA15uRABUG8tZxq+C9wlJZjdIwrGtla0u44bXOtFZ5OCyJXVHd LYHrgsd1UkzcOP6xgPfZ/AGUZxQ2wiRerpuRQpE2BuwBwizJo5M4SUXjGgQ2ZZ//gbe3 MNhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=+0Py1qpCFXD5DfwM+BDWStOAQ+1sIGVxJBrNo8nRb2g=; fh=FEEX/8bciNAlGMJJ595+FZ8TS2yHaAXESRYbpZ9dpLo=; b=rZ7NWHz3KGko7ILeI4vuVkKnYHIatPuC3D5bEcfRWlFDgZtXqWIj/afXv+jGW/m3vh fM6djT/qdVsKLbyGHptQ5fE+0YMInVByllfcsRJc4eTNTx2tL+LBW3M9QnNXvpTPEFHb WsUq687EljNsK+cgMgB9/GoBlKKIVGcQWl7H2fDKz6gPh7h2nJHFrTlaBPRj+SRHmw3J k5dPvY66mlUIKVSx9nMwOp/yKOJyDuNaIJ6jqVxm2lYGadBIKieWvhixLhVc/hLA5Zce YOaM8Jx8eCAzN++vG0WUd4X8KJKLgyZDhtGDztVLQodb46b7FOQgsSMEfX1q+MV3CrTC ysLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id je22-20020a170903265600b001bdd58f685fsi8333277plb.85.2023.12.12.15.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 15:10:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E12DC8046BFA; Tue, 12 Dec 2023 15:10:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377965AbjLLXK2 (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Tue, 12 Dec 2023 18:10:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377895AbjLLXK1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Dec 2023 18:10:27 -0500 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D2DB2; Tue, 12 Dec 2023 15:10:33 -0800 (PST) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from <daniel@makrotopia.org>) id 1rDBtB-0008Az-2l; Tue, 12 Dec 2023 23:10:11 +0000 Date: Tue, 12 Dec 2023 23:10:07 +0000 From: Daniel Golle <daniel@makrotopia.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Maso Huang <maso.huang@mediatek.com>, Daniel Golle <daniel@makrotopia.org>, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2] ASoC: mediatek: mt7986: silence error in case of -EPROBE_DEFER Message-ID: <b941a404d97c01ef3e30c49925927b9a7dafeb19.1702422544.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 12 Dec 2023 15:10:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785119527863263685 X-GMAIL-MSGID: 1785119527863263685 |
Series |
[v2] ASoC: mediatek: mt7986: silence error in case of -EPROBE_DEFER
|
|
Commit Message
Daniel Golle
Dec. 12, 2023, 11:10 p.m. UTC
If probe is defered no error should be printed. Use dev_err_probe() to have it muted. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Reviewed-by: Maso Huang <maso.huang@mediatek.com> --- v2: use dev_err_probe() sound/soc/mediatek/mt7986/mt7986-wm8960.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Il 13/12/23 00:10, Daniel Golle ha scritto: > If probe is defered no error should be printed. Use dev_err_probe() to > have it muted. > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > Reviewed-by: Maso Huang <maso.huang@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
On Tue, 12 Dec 2023 23:10:07 +0000, Daniel Golle wrote: > If probe is defered no error should be printed. Use dev_err_probe() to > have it muted. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: mediatek: mt7986: silence error in case of -EPROBE_DEFER commit: 6475b8e1821c9d14e60592a74c10d75431500c7c 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
diff --git a/sound/soc/mediatek/mt7986/mt7986-wm8960.c b/sound/soc/mediatek/mt7986/mt7986-wm8960.c index c1390b3734101..6982e833421d6 100644 --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c @@ -144,7 +144,7 @@ static int mt7986_wm8960_machine_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { - dev_err(&pdev->dev, "%s snd_soc_register_card fail: %d\n", __func__, ret); + dev_err_probe(&pdev->dev, ret, "%s snd_soc_register_card fail\n", __func__); goto err_of_node_put; }