Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4103486rdb; Mon, 11 Dec 2023 08:56:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdFFHfNa4FXFLfETxaAahGO9ctB4PcKJBtHRmEoMT4NUcqBtmvK0AmUJQYvCtvKeAYrq22 X-Received: by 2002:a05:6a20:bf10:b0:18f:97c:8a45 with SMTP id gc16-20020a056a20bf1000b0018f097c8a45mr5941008pzb.112.1702313801720; Mon, 11 Dec 2023 08:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702313801; cv=none; d=google.com; s=arc-20160816; b=revcCICfCvZLT89jKa9fzK61UJ5pvI1wJmiWuETNOiwHWEY+dlysDFKWEvLSlcOpry QYmZayPkzPHCBvBkCQP3CNYdZiirOPIvhgwUtivSsn2lPcfyx7fm7HErBGo1vZm9cSQ9 9VT89yXsRg4X/07oDM3vlk3nY0yOZPtFnWSP684vQF+rgWwFSP1U4HOPr/m+iFAna485 QibLp72javjmC4UngJwLpAcOb+p1lVC9qQGUzb9zP8sgo0AKStEbLPxE496NW5y4wspb L5fpaBDQ4m1+Gp4S+qZvmc85LM9qBRKh+wnuGSZLo+BauZX64cWQa1hpGInCSKkEzNiV 3Fhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YCMreTiCD4gULkB9H2UFsXzEVdngCwHr3/wjzSr8bGE=; fh=Pn5KqweeUrE5Y7eKPd1g18PzNbMO4YUH4a6X3s5ujgI=; b=ZC5RZJSwCg+73E7y4aQJdTlNdMHpIvAv1g+yjL4GRDShvtu9QI68GSYYmo1zoKleyQ Qmq6fGWqE7PU+VLQ6mF0owC9RwpUK8jQgbLnU1CY/1DCXiQsRno90QM1GnwSLmxkXu1u /+ugQoVNyZXzYZ26QHvKNVcmho+7PuSovcGIqRKt/k8ozI9tnvbrP/hKD7jXg8h3s4t4 7uIwT/vjp0up6tPHf/r9dJbd2VBqdkFEo9fd/N9TrHMcG7GSnjs/YSc6RrT+qpxIejEu gcdSRtuYXCyydtmmqixsVHno7GjxcBhOwNCPHW4Tdo8+wt23VwK4FLdgUyVFGozZWK++ QdzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hSYJ5ZSP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y35-20020a056a00182300b006c339527ab8si6206050pfa.192.2023.12.11.08.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hSYJ5ZSP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 775B580613AE; Mon, 11 Dec 2023 08:56:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229638AbjLKQ4Z (ORCPT + 99 others); Mon, 11 Dec 2023 11:56:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbjLKQ4Y (ORCPT ); Mon, 11 Dec 2023 11:56:24 -0500 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE015BD; Mon, 11 Dec 2023 08:56:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702313787; bh=UHAxHzAWe0eE9J7rlsFTxRyXjBw3RyM2beztcNyE+3c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hSYJ5ZSPxzWA44W5gp0fsrbvrrNBIrJqXspIX9zOlsBa5GKckBgSEJUpO/pXFz2aD 363GKKi9JqB47wQWxgLoww5HWt6SxUWicPTWkn5etUbpAyrrpH8qtszNMwIeLPavAF iftr4LxTcBj+PBuJwOQ+JWWAgc22EYxsRw3Q5UvjJKjM4Q6K2xOtFU2L3GccaBs2WJ 4tz7ALc5GVsblCJx9MUhQmR3YHRYM6hCBf2jY1qSfMMg2H2qr/6DPmbnEWp9BecpuD 2E16GQZpBx34vqKimStyFGao3NhLnXgP7Tv1GEQDONJ0u3DzH/D9gzD8xTNf1RJNK7 7rTF+ZnCaT8Xw== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 6BE7F3781443; Mon, 11 Dec 2023 16:56:26 +0000 (UTC) Message-ID: <07d71c9b-45e0-4d51-9449-68d40a46449e@collabora.com> Date: Mon, 11 Dec 2023 18:56:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 03/11] ASoC: amd: acp: Add missing error handling in sof-mach Content-Language: en-US To: Emil Velikov 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 References: <20231209205351.880797-1-cristian.ciocaltea@collabora.com> <20231209205351.880797-4-cristian.ciocaltea@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 08:56:39 -0800 (PST) On 12/11/23 15:31, Emil Velikov wrote: > 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. No need to undo, will update the commit as suggested. > With that the series is: > Reviewed-by: Emil Velikov Thanks for reviewing, Cristian > HTH o/ > -Emil