Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp930288lqj; Mon, 3 Jun 2024 05:32:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJYJlp+wmhO/qVz2o5XEV6bCV+h6kKn/nHAYcS8dmdncd3ji0pMel90/NgCvGmIIpUM4mSn8l4yioj/UCeSLdAixg0EY/HRR8S72Yzjg== X-Google-Smtp-Source: AGHT+IFld1E03LgOEAS/ab9EpCL17eCCTeY6nVxDlSoCv26RfdIqqcP7FKDGyUFvruUXxlDNJzNb X-Received: by 2002:a05:620a:a08:b0:792:ea2b:5f70 with SMTP id af79cd13be357-794f4f740f9mr1481441985a.11.1717417947584; Mon, 03 Jun 2024 05:32:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717417947; cv=pass; d=google.com; s=arc-20160816; b=uBC8DGljpc53YeQ8TDnmMRWcU7gNIpXBAAe+VXeojdbjeWPeDRWKoaSA1fLLmEBXlF UQXlCjYNXS+bkUaBjO3Eshamt3N5pMVK0cSGe8lGQ/M4F21RyEimwdyMBVCvpW9DeNXc JFv0oDoU6IQh5d/K9XF2KvozPjVXRC6I/7i1kh/I0Sz83WxswTb5ZcXWbukXKgXuzR+8 85+xLG1hjgzVfiknXkYC/H41z2YmGiMHn3V7uSevox8obYyQNbIcbAvyDqurls3Z9ER7 AB4lCC+NwSUBKNRVk8Mxa92fvGA7yZHYrhQ7umwe4OPeNzkCnrGChfoTQijXImUAllIg esMw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=H7ubab5Xxp+E3IgAd5A6uy0pPqxpQEBENyU2pnQF69E=; fh=/7kuOBbudqncj5rVNBg6VgNK/QY1QtPH5EYOMMlISIU=; b=XJuXV9Z9r3GV6Lf6+YVUJoMdkgaaq2RtknoHUdt25XuD+I0aI18hGxqT5sCsB2KLmL yeeIwSQNpJqDwDyMs/J/GQuhS94MQtnkfpxFe3zu5I6NFbI1UvHfNZoy4n82BVn7POEG +5unu46tOQCS+GVC/kXigg4q611oVE3rXkDeyDcEi+Gvzhzxak9//vF5i5BvEetDajJW Yg5eXJs2Jlqmv/RiU/wFuBxLOB9SvxKIaWEXpi8HO5OBaMPaMZXvVSemZrmuKmnGKufB q9NpiEhmDzxrTlFhvtEjgqKTKSmC3NQ2B79hLzIo7J1BUD0CUPtJkATYDQYZwGomuoQl qyQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g55rAM0t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f2f051adsi928205385a.27.2024.06.03.05.32.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g55rAM0t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 380181C23CAA for ; Mon, 3 Jun 2024 12:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AA0712C466; Mon, 3 Jun 2024 12:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g55rAM0t" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B851A64F for ; Mon, 3 Jun 2024 12:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717417941; cv=none; b=q7pos18ZOgE1XwWxbRr5DWoPVeBBzLFJlqaMzGSbgwzOAMHYagaKne1zlCoSX5CgO8uS/PY0d244ppAM+KFv98bkdMHLA42GgaDIsqdi72+eavQwVCelI24H7Mig1CykYr1I4g00cT8qc0ZeoJkZsKXUlYX/XT5nmZJJhdwDukw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717417941; c=relaxed/simple; bh=Z6gzK40Tr5pMhZZtIC99f8/GM2gQz6amBeERw55iMko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fgoeOrrHFrQTe2mk7ixq2rnaj+OzeDMi0TTpjG/INJCwaNBm5eNnQSEnF9WDH6SIxxtbTbOt/0huwMg4B2WbjDuY5Mwyf3jcdJY0qX9mbC7u7In9/j2Ox2FR/4L1OqLve5s6q1HX52v4P/CXSf9mRWB0iDhwGXiQOovUAaJOa6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g55rAM0t; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F299C2BD10; Mon, 3 Jun 2024 12:32:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717417941; bh=Z6gzK40Tr5pMhZZtIC99f8/GM2gQz6amBeERw55iMko=; h=From:To:Cc:Subject:Date:From; b=g55rAM0txzQDEHqkYAlVenCl0JcFw7yKN3UQBi7w6P5ksgu8lF8AhRLjwKl2/5ywK fHnLpr2OliQwr+DMWr1xPFs0asqAl7m4BC+jaOP02u8oqaLSS6AXO9839HSjuWl5W+ jHbHIp/UOJJRI0MzWNowB/uVfgXCRttePyDIS+/vQD56Hjxw2CvDw6oFs/CDf/3Hcb B4yl1PYdkWS7Ysk/AL7mgHpnZpbRBTi/ZCRXZ+Jw8AuL/y7WCCqXkKZAQ261qvpviR ei18VbdJvrAXNMcaj2QqkMCrPsLpDmLFEjZS7hEjjhIfFjBYkbHvgmnAbtzYO5SbHM JBmnDLsWUT5xg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1sE6rL-000000007wp-204Q; Mon, 03 Jun 2024 14:32:19 +0200 From: Johan Hovold To: Vinod Koul Cc: Bard Liao , Pierre-Louis Bossart , Sanyog Kale , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] soundwire: bus: suppress probe deferral errors Date: Mon, 3 Jun 2024 14:31:27 +0200 Message-ID: <20240603123127.30477-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.44.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use dev_err_probe() to avoid logging errors on probe deferral: wsa884x-codec sdw:4:0:0217:0204:00:0: Probe of wsa884x-codec failed: -517 Signed-off-by: Johan Hovold --- drivers/soundwire/bus_type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/bus_type.c b/drivers/soundwire/bus_type.c index c32faace618f..8c3746f0d527 100644 --- a/drivers/soundwire/bus_type.c +++ b/drivers/soundwire/bus_type.c @@ -112,9 +112,9 @@ static int sdw_drv_probe(struct device *dev) if (!name) name = drv->driver.name; - dev_err(dev, "Probe of %s failed: %d\n", name, ret); dev_pm_domain_detach(dev, false); - return ret; + + return dev_err_probe(dev, ret, "Probe of %s failed\n", name); } mutex_lock(&slave->sdw_dev_lock); -- 2.44.1