From patchwork Wed Jan 17 15:12:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 188877 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp976060dye; Wed, 17 Jan 2024 07:16:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjbxoYzKL9RVc/Q1Mv58MGdmQp+xnENgIzjUPqO64S7BdaCQxoBeE2NotZCxO4ZydKjKgf X-Received: by 2002:a17:90a:7e02:b0:28d:28e6:436 with SMTP id i2-20020a17090a7e0200b0028d28e60436mr4543495pjl.1.1705504560866; Wed, 17 Jan 2024 07:16:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705504560; cv=pass; d=google.com; s=arc-20160816; b=t49w9MKTstVDVR2SrSb9Xy8QqUVOjlB7bDOy/YcXI6Kulxi26kCiuj/Z4pHoFu4IOJ Oy/mXWzF1PwlAuyY+gYISB8kWbelADHYTNGbtV9OFTw18VFtqc8wrXvJ1c9GLqs9xZG9 ecW6D/FtwbTcafju2iUAfz3jdiuNAbkyp0eYZmg88op+1ASegabK8ypm81tqW5yMlevp itEfVKMKfC8Jg09xeADHu0TqdvU39qzDftDzjWdKGw2WbXvGd+jbGTwsFccuc46UxRI4 um514zwwDw8n6qCMfn2rqs8pYTcRw4micmtBklLrvrxdt0KHb+at4UjD/i0WaetrVJYY vU8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jvT4DYI0xpteMdP3q2s5kHm3KTUWGSKMdy7WHIRX+6Q=; fh=0HKUKyvbKDnDV00Pl9ks4ZRxOdrxlGdR0/GQO3201mo=; b=fZOfzpYixgv25DnEQd4EbckjrkEY5KoDI5+pPBSEzUpY5Z34+/VMrp5pm646sGbWXc TJELux5/woDOQXMxjJRzYK7GnkU9fhp8Wew4lBGXUEcyVog4C2FsNOAXX10kU91aykr5 ig3U2pezS52Wgrp3OQsgDym7Gq4W3ofpxwETGmUo5GgH7VoDxZpywRq9QMg8QO1psxLP rzjJlTvgBFPMHESUejuVIYm55lS8oh1Rr1u1Ez6CLmN3ciedy0jqJtyNGZKE0l2Zt63F B2K1cPxzGLcTVV7wXrRN2q/ju6MY7drAEtOUtdoF8XE2EI8N5Jks5YonnShR7JfXqKBN C8Uw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ImRlAvB2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-29137-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29137-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s2-20020a170902ea0200b001cff34e87a0si14860825plg.600.2024.01.17.07.16.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:16:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29137-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ImRlAvB2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-29137-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29137-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 983EDB23200 for ; Wed, 17 Jan 2024 15:14:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B749A22F02; Wed, 17 Jan 2024 15:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ImRlAvB2" Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 954C822EE9 for ; Wed, 17 Jan 2024 15:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504343; cv=none; b=sla/G92/nmKr92sYhzejByRUNWniD+wxzXrhJjbz7EvPPWMyCMPwf+gbg3dSohSieAZ7bCcvJD9mHCoBFlxP3ePz2hGn81FvLuU9vTW2I20q+gy1+LwfNYPwLHFBItXsyeXTRlYvHTxgTNes0NmKEqHR9j+E/JEH9TdXwlq05f0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504343; c=relaxed/simple; bh=CEoOOu3lx1F0t2DXMRp7Dd+POoFYCjzJbOK7DJcvqdM=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; b=RTPp+4FPHl7SweKoFnNlR/kmnLOO+QbNZ3bYAuzM/NJZ1IrkV4PBaJgmGxKn2Tle7gu+I9diLXIvgw/jEgNv1FW8aEyWy34hZk19kizfoez+U513WpMzL9At06m9VJRFkK5r3pO7ps22gGHvi380C/Dv5huySoiyws53WcEgb3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ImRlAvB2; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-78324e302d4so773324785a.1 for ; Wed, 17 Jan 2024 07:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705504340; x=1706109140; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jvT4DYI0xpteMdP3q2s5kHm3KTUWGSKMdy7WHIRX+6Q=; b=ImRlAvB2VX2WoNVjVFkfAx2s7RCaWtKacz9r5L6xihfvPiTJ2k9Jke0HVphWCK1XDx A3SRXZ1jdXTet/Ehp5MCjuDir0QX5kI3IEDABQwtvBLMKMwQxgMgV7HO4i3vQVHmKCGr ppPA+SpLOyaVzQyWbAQROpeKG3RGadgMobg7ep1jSTbIp8UEDNgroZR23oSmdoxguDvi GDf7oubtV+UJYuRf9Qb8AftsyxqofTE6kE8qpnNE8HNLoXV60FUALJpY825YZVHMjmTo vD4QEDp+A8dsAtynAKDB1DX9GqOrvWpHqCR7N7aHvuAMfroH3NfuXqR0G0jG+1rV6xr6 CHfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705504340; x=1706109140; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jvT4DYI0xpteMdP3q2s5kHm3KTUWGSKMdy7WHIRX+6Q=; b=DZT/hD3L95XfmiGAqbIUtfeFinktQ+p9Pofejj+6q+8RQKlx06PMe9Ao5+2ipWkL3a iJktpnS+Nbq2wlYDeNbqCHP8xfx0f/n8RcWks6k5f65eAnbDuX2a2ZUi0lfpjRK2MA5h rOdpPlCiTSHGn2QnBUbYRT2J9Zci6ALmhnyF3d+Z8wh2QLYorX5EgKxVPa7ZVjgGYoBW 3IH/JOiVZ36bQcSXGhORIWpQurpd73g+aXzM8HnDtqqOjDC29nw3xMnpCwDerniqkv+C GMMsL6beMDDGVMPRCAR63Snez4KWrbGQUdn4H0xMor351bd00eezdxrnMzqlWPHB8ASH nwdA== X-Gm-Message-State: AOJu0YzCJpLsO+nvzVBJObuCsUmxYxFGp1vpyCwcrifCD0TEmlhafL3e c11sUODnzBWpx4g/rIrr7KOF186TCQQTVQ== X-Received: by 2002:a05:620a:10b4:b0:783:4e8a:6b19 with SMTP id h20-20020a05620a10b400b007834e8a6b19mr7348059qkk.14.1705504340607; Wed, 17 Jan 2024 07:12:20 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id m7-20020a05620a24c700b007816cf21f7asm4519337qkn.76.2024.01.17.07.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:12:20 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] ASoC: codecs: wcd938x: skip printing deferred probe failuers Date: Wed, 17 Jan 2024 16:12:07 +0100 Message-Id: <20240117151208.1219755-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240117151208.1219755-1-krzysztof.kozlowski@linaro.org> References: <20240117151208.1219755-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788351150443661202 X-GMAIL-MSGID: 1788351150443661202 Probe calls wcd938x_populate_dt_data() which already prints all the error cases with dev_err_probe(), so skip the additional dev_err(). Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd938x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index 0aaf494844aa..54a21d2f5c40 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -3587,10 +3587,8 @@ static int wcd938x_probe(struct platform_device *pdev) mutex_init(&wcd938x->micb_lock); ret = wcd938x_populate_dt_data(wcd938x, dev); - if (ret) { - dev_err(dev, "%s: Fail to obtain platform data\n", __func__); + if (ret) return ret; - } ret = wcd938x_add_slave_components(wcd938x, dev, &match); if (ret)