Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3973623rdb; Mon, 11 Dec 2023 05:39:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmcc/QYjCWeoo4EQ2zMQ1UxUWSwfEBj9unCirhsBiF2hd5UFoUVxEMq63psBe716tuBNsf X-Received: by 2002:a05:6a20:6a1f:b0:190:5bea:fbbe with SMTP id p31-20020a056a206a1f00b001905beafbbemr2234605pzk.99.1702301944022; Mon, 11 Dec 2023 05:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702301943; cv=none; d=google.com; s=arc-20160816; b=lG0r7qRfvd/ADICBMfFpNy8zCu31IxcMBb0a5/pmbsHQTw02/tKKv1w1NMeqCodcRP H4WrtNLNrvHCU0e9H4PWOVfy/Hnze29ouwWeeChZ6sK+4bGr8HG/jR91+g2F6Ln0inIg clpQc8MaP9kAzlrsE9g52GsCwji9Ir/dBpZJXEyV+jYTDGmHKeTxBchclS4O7qvo8lCK 7aovsUUHQcrpv2hwkiWRP6uDYX7kBpUK2DQQuMdLohv4rGvyC0nni/Kg5LuSzezSWKsZ gEAbopml1fAYNQNoBGHUIWa24YKNIprVrLLXvjM45LL0txAow7OIH5ZVjIUthebMvlV4 hB/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zIixrj1lodQvViOoHV+6A9BieQavCRgFfG2LEkps1Ds=; fh=Fyzpi5JC31p2NDyw7B2YRJ5rhJuUASH5oq2jXA4SGq8=; b=TfYu9LDXlR6jVRDbw63B0f7JH/CjAzL9cku4OD2WUaM8Otlk1Ccko8xPWvxTGMR2zQ ZKKL2uYbdjCltyiADF1qSxE0HDAOAvU1OPlFHaMWHs3Aw1WfO0e/kl8xoS7a2aoGuzve vIssZtjUn/oP9LLp48IOmTtrBmCKyxu4IUHiG8RmOsK347J6LlpdGLYMF6GDAkQ26Ved pR//fAuj3NM7B6LP4n8z8EaWDUmIT3V1Qci1E5aglCPb/sRws/PSJKhgFFQ3+rYmw/d2 eK+kGEc89sFD5d2ztPwRC14otL7leSNnIBzmtCcbtOSuQbLCULcLaq7IEJPkeH6/3oiq 4zIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4jY5LX4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id cb22-20020a056a02071600b0056569ee3ae6si6181441pgb.798.2023.12.11.05.39.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 05:39:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=4jY5LX4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 422B0808A905; Mon, 11 Dec 2023 05:38:59 -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 S1343688AbjLKNi0 (ORCPT + 99 others); Mon, 11 Dec 2023 08:38:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234350AbjLKNiZ (ORCPT ); Mon, 11 Dec 2023 08:38:25 -0500 X-Greylist: delayed 398 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 11 Dec 2023 05:38:31 PST Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FED4DB; Mon, 11 Dec 2023 05:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702301512; bh=ZbhJvDZ4J8DSoVnmT01KLlPScbl5+K/exJcCzkD1IaQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=4jY5LX4hwFqHL541gjzRwtzNMDErKcqccncYrm7AFa2820Byy0P9gIDznieXsETdv aoVxhkQPSPO4vYE8KfiV3R2tnM4CP44ZBqfDA1Mc9pt6TMfqTn43t3o1CTueP2stAW eXwz1ArrLRZlnVNCN/Q7yyFwtIE/x3ukOzZBQQL0gQODew+R1RP7Z04/PlqmPpLzvq ndEFRof85Am05NuNm7usF+i7ppQb9qCppG50A9tHuu0dr554ZaFwlHynfPz3jsT+SQ 1gWUdTXDLfT4f2HleESzUFodpbOtEZn1MXh5vG8Kva/mMfUWMLcFMr70EblT2TfYPH zbsi25b6bUtcw== Received: from arch-x395 (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: evelikov) by madrid.collaboradmins.com (Postfix) with ESMTPSA id C92CD378110F; Mon, 11 Dec 2023 13:31:50 +0000 (UTC) Date: Mon, 11 Dec 2023 13:31:49 +0000 From: Emil Velikov To: Cristian Ciocaltea Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Venkata Prasad Potturu , Alper Nebi Yasak , Syed Saba Kareem , Kuninori Morimoto , Marian Postevca , Vijendar Mukunda , V sujith kumar Reddy , Mastan Katragadda , Ajit Kumar Pandey , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org, kernel@collabora.com Subject: Re: [PATCH 03/11] ASoC: amd: acp: Add missing error handling in sof-mach Message-ID: References: <20231209205351.880797-1-cristian.ciocaltea@collabora.com> <20231209205351.880797-4-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231209205351.880797-4-cristian.ciocaltea@collabora.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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: 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]); Mon, 11 Dec 2023 05:38:59 -0800 (PST) On 2023/12/09, Cristian Ciocaltea wrote: > Handle potential acp_sofdsp_dai_links_create() errors in ACP SOF machine > driver's probe function. Additionally, switch to dev_err_probe(). > > Fixes: 9f84940f5004 ("ASoC: amd: acp: Add SOF audio support on Chrome board") > Signed-off-by: Cristian Ciocaltea > --- > sound/soc/amd/acp/acp-sof-mach.c | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > > diff --git a/sound/soc/amd/acp/acp-sof-mach.c b/sound/soc/amd/acp/acp-sof-mach.c > index 1d313fcb5f2d..6f0ca23638af 100644 > --- a/sound/soc/amd/acp/acp-sof-mach.c > +++ b/sound/soc/amd/acp/acp-sof-mach.c > @@ -112,16 +112,14 @@ static int acp_sof_probe(struct platform_device *pdev) > if (dmi_id && dmi_id->driver_data) > acp_card_drvdata->tdm_mode = dmi_id->driver_data; > > - acp_sofdsp_dai_links_create(card); > + ret = acp_sofdsp_dai_links_create(card); > + if (ret) > + return dev_err_probe(&pdev->dev, ret, "Failed to create DAI links\n"); > > ret = devm_snd_soc_register_card(&pdev->dev, card); > - if (ret) { > - dev_err(&pdev->dev, > - "devm_snd_soc_register_card(%s) failed: %d\n", > - card->name, ret); > - return ret; > - } > - > + if (ret) Do we need to undo acp_sofdsp_dai_links_create() in here? If not, please add a trivial note in the commit message. With that the series is: Reviewed-by: Emil Velikov HTH o/ -Emil