From patchwork Wed Jan 17 15:12:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 188874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp974966dye; Wed, 17 Jan 2024 07:14:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpnhutrIGU3JXco+jA0v0Fye9XHMFIXarWskDGvvm8nc8pdwkSID93FyXwpObtinHmQKvy X-Received: by 2002:a17:907:1685:b0:a2d:4bfc:61e5 with SMTP id cx5-20020a170907168500b00a2d4bfc61e5mr3656962ejd.149.1705504473997; Wed, 17 Jan 2024 07:14:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705504473; cv=pass; d=google.com; s=arc-20160816; b=Ag9r3Q9YefU1e0nlsLABxJlMMPpPBHN9Y2a4/0eBPnORbJzGlvfEJqexEnbrM1KdAm ky4YUOXRw6z4f2TpJ1EtVsfmrW1LOVuyeoLIWTpxgTJ6lrFybjdd9uR94gwA3nS5HA6x gPqGflfdiUUYAq4CPo/fW/DzOp0kjuEb4RCTnOORZytAzHZ8V47b2lwAnmihak8Jc2t0 lyAipG4fyX/tfHQyRHgLaB5kAqfgn0BiTVWT5LQ4zRBgh4s8EbLQR9NNBfeTl+IRsQUM 5S9Tft0q5FIy8RiS0anqWdJd0NyNykVKITFkFiaYZOAK5qgr7cF6/qe/f/XI0ISk4iad AT0g== 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=aZ5dWg/o67onmhTzNFtXrOTvUPTxoBK6DGUcni7z13M=; fh=EDkoPUm3nxp+aCKUIYbfwJC6fB9WqaG4ypRF6SRM1m8=; b=u5jU4q+wPimF1Ys9LYVLv3yskwmPYzqFwij7PV5u72+BOxVqti2hliV2ctRH4XdgEd XyBO7lmABBt+qcSA4EFtdt8EDgxQ9k6GopfmWG/VCmXsSuWyptnMfL3kPd0fBeYYYtgn YNBjRL0J9dUU2YnxfATDBMwZDIOZSds9JZ2/w2B0RDIPegurBy40oZulV9M+Fj3af+Z2 BF0WkGXGaulS9jpnkf1MVxcOpAMwmQAiOQEjIAZF67n1SvPkJtef2e8EeLuUMhzxxLSY AfjFqgSIKbX4psFvpgxTGAJsNGag4fAA1QGPdb+kqadWX/8dJNspWr7pC3DTAilwQFmF pEqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IrakBhjW; 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-29136-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29136-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x8-20020a1709064bc800b00a2c4c45e73bsi5850964ejv.84.2024.01.17.07.14.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:14:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29136-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IrakBhjW; 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-29136-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29136-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9978F1F22F0B for ; Wed, 17 Jan 2024 15:14:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD89923741; Wed, 17 Jan 2024 15:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IrakBhjW" Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 7DB0E225A6 for ; Wed, 17 Jan 2024 15:12:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504341; cv=none; b=VKx7W92XAT2AnMsKYeh5Irz8xwwqkOgEMrmISDu/wrIrwPwlbLV8iTBkqmFdgRI5uDI7btmVIv2cDPwQD3Q1MaP7nhf7jpBFCtIkFX6sNwCO2FR3t4NxwKpsydauJ/FI1L53bk+LhB7PysMz42xwreaLVSxl8TT26TzN6sl2whY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504341; c=relaxed/simple; bh=zTLF4pKwDUhmIJpTw+ifYX48G8Y/tLdkZCXLW1dsOdg=; 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:MIME-Version: Content-Transfer-Encoding; b=fdHiURtFKS/zpA3NOeiwjlGPjMQliopUWpHv2T5xFWD0P3tkeS1zfitXeH5cUDpw+XQLedS86jHLVR+pc7ge5cW3C69oR/llGo9KPkfvHbwaAndszZQoEAvqAJw/AjRgxDF+hcLglEFqPTWXQXmO74YVYjQxaG0dlNciAeQYP+c= 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=IrakBhjW; arc=none smtp.client-ip=209.85.222.177 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-f177.google.com with SMTP id af79cd13be357-7831b3a48e7so661077085a.3 for ; Wed, 17 Jan 2024 07:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705504338; x=1706109138; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aZ5dWg/o67onmhTzNFtXrOTvUPTxoBK6DGUcni7z13M=; b=IrakBhjWYcTx281uJkfflWwa2NOYOeI1bCsGnxGVZrm6IjaBFUx7p0duk6zyKECBmQ dY/7X03ylYyCkWz59EehpkTbs8mKqgtBHJSZ/QWQeK9fDPI283k0wJ5UmQqtlYKrPGvm OWbP23UZMsfMSm6B5xliduX7ujbSXRKph1AgCZgFWgKSMVdp1T9fLtX8ov9Ec9aeYYom baa9xku1mtGfyq662seh7VQELl01Wg64sLh8kFd8W0DgONwth41KNlNEvdhFNdGIab1q MyE30R3wPb+HvgHbmC1dHoBz3oqYYXHlpjMqxwL0GJYb5nPqsbQk+O9wFMXudX9GodPm tceQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705504338; x=1706109138; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aZ5dWg/o67onmhTzNFtXrOTvUPTxoBK6DGUcni7z13M=; b=ZEi1/MYdLUMVgUL1MMbSvDsoJCc0DtSW8bKpEG7A0rmjwhlPZo6utjN68WyIHKaQFG wDQ2CsrUlNzqY+96KGhw1fSv+hs43wtniv4KE41x5rGnFPm3lI5SMCm4d8QBsoHdx8++ cH7X4GggLxEeoyt2UQ36sScePKMdhxVcTUtL/jUJB5OE1ghkd+auiKtHMhB5QXFEs5kX ax/cqdN68q94QirlP4cxBayC5mZrM/FfD8cSVsrPOvzrMfORQ0Geope4InucQeOMU9yZ YlhR7mCskNtuH6K0TkuPZlwZnv2OMcy+m3rsDUCN+x13mTOFicVASBlpEMS+PJzMIgxe TMQA== X-Gm-Message-State: AOJu0Yz1qM8pK98QSPQQjVKY6HSpJgN7OA1eDu6101c46u4LQkL3KCcK N9+By2vbVDkC1Rz1flageXdlwe4HBq41lg== X-Received: by 2002:a05:620a:55b0:b0:783:54a1:136f with SMTP id vr16-20020a05620a55b000b0078354a1136fmr5882267qkn.58.1705504338226; Wed, 17 Jan 2024 07:12:18 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:12:17 -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 , stable@vger.kernel.org Subject: [PATCH 1/3] ASoC: codecs: wcd938x: handle deferred probe Date: Wed, 17 Jan 2024 16:12:06 +0100 Message-Id: <20240117151208.1219755-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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: 1788351059234135542 X-GMAIL-MSGID: 1788351059234135542 WCD938x sound codec driver ignores return status of getting regulators and returns EINVAL instead of EPROBE_DEFER. If regulator provider probes after the codec, system is left without probed audio: wcd938x_codec audio-codec: wcd938x_probe: Fail to obtain platform data wcd938x_codec: probe of audio-codec failed with error -22 Fixes: 16572522aece ("ASoC: codecs: wcd938x-sdw: add SoundWire driver") Cc: Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd938x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index faf8d3f9b3c5..0aaf494844aa 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -3589,7 +3589,7 @@ static int wcd938x_probe(struct platform_device *pdev) ret = wcd938x_populate_dt_data(wcd938x, dev); if (ret) { dev_err(dev, "%s: Fail to obtain platform data\n", __func__); - return -EINVAL; + return ret; } ret = wcd938x_add_slave_components(wcd938x, dev, &match); 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) From patchwork Wed Jan 17 15:12:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 188876 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp975288dye; Wed, 17 Jan 2024 07:14:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFy9RlLf8Vui3kcSI8mrq055M5jK/oQH3hzRkb7d1GW9+F4fBPNFf3h5YnRAD5DKCY1lLZY X-Received: by 2002:a05:6359:63a3:b0:176:5e4:cb8d with SMTP id sg35-20020a05635963a300b0017605e4cb8dmr1867167rwb.51.1705504497941; Wed, 17 Jan 2024 07:14:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705504497; cv=pass; d=google.com; s=arc-20160816; b=LrrjZlD59b+WxexHJtvnqgsVcqKujgjmfo9YwVIynUT8JJyf7RP53xd/SG8CM7TYLs slsfHO7qbmEfWCDRh5SM32LWp9Hjr+DQxc945sE64D27tWcC6H3yGT1/8eOXOZm8Wy8Z fxDjjckUK9ccrdS/JR1t+n0sJS4ebYro/jPK7Jo1VhC8IdBeFClfWARCbP2VHpQ/vOPA 5dM7uvOiADufe8ekeZ+Xa/URhVUc+4bwMg5hW8/0OZkJREd4TgWJXQ4cy5r3lqJTZWWR ypTG3NQab4dHeM/e24OdOBU+m07lpkvn9UdZpjhvp1h32DypAGuPnIn+X5vApNeq5N7n x8kw== 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=ixH1kcICmlswgGdL4OCIid5fgK6X+yz0saxJFyTHsOI=; fh=0HKUKyvbKDnDV00Pl9ks4ZRxOdrxlGdR0/GQO3201mo=; b=YkvI3J522pdX5svEAuVytHGhWlZHDFCH+VDU9RrwTyCeE4McRqwSV/hLlISoqem/ie slJrIRtSKQVq7wAzt9L6gfTVA6CDODCINeFmwQ0TN+q3hneQtnM+QQ8W9eE3nMRnITAw EubDBHjNmaf5MrXtS1hB2ZSEqoG0UpMBATVbnM90cFL7qGUFV5kX4WQwtF4voVFMGIU6 z2xbyU2hfnoXLBsgV2xMA3+5iSgivkgBfZ+2GHXRNigY2NW46Jyb7HKTp9ujbdCh+2Ye ZT2WxWQpMYvNAcACtTWsogYZx3BqIVGTiupCHk3oNDELUPd28WCzpgVBcxeaOuj1vVeg eJaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rWgK3Gdz; 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-29138-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29138-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q190-20020a6343c7000000b005ceb4a70188si13765417pga.375.2024.01.17.07.14.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:14:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29138-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rWgK3Gdz; 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-29138-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29138-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9CE0D2855C3 for ; Wed, 17 Jan 2024 15:14:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E420723777; Wed, 17 Jan 2024 15:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rWgK3Gdz" Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 D8A0D23745 for ; Wed, 17 Jan 2024 15:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504345; cv=none; b=bvBeFNxg826ohOE7LFoTc3ksru2Fv5zqIA4P4rp+Up/HFzQEU65yKpEVCfNx9JPnxls2VwE3OzgPL6uR5EkaTdeWuRfDQWLcuhjGm9e5umDnkirIujZ9FPf2XXnIsv7ijNiuzkEF63oTLX8KSxwJqixHeuoPieix+hix/oscGV8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705504345; c=relaxed/simple; bh=GCZrQDHaMa0VPIX4o4j8+CDBJ3xXXLP0Tb/HGEhCxls=; 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=EcUSKs/bIz7nWD4/PHTvx+7yv43JxeJ+iXkzqatwhjgQvqGjwJt0I86yVWqCngX1UwuQjBx37YcH/3y5EhMsIFWQXFHT0K30TqVZW75jPdVzwhb6w8lFbt0ZePSq+vbNEls95xIvhtMJkxUDKd2FRf0uGdQu2CMS2IBhrC/GHUs= 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=rWgK3Gdz; arc=none smtp.client-ip=209.85.160.172 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-qt1-f172.google.com with SMTP id d75a77b69052e-429c00bf0efso42480851cf.1 for ; Wed, 17 Jan 2024 07:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705504343; x=1706109143; 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=ixH1kcICmlswgGdL4OCIid5fgK6X+yz0saxJFyTHsOI=; b=rWgK3GdzTzArrviW7WadgwybrfuFdRWkr/vi3LRCs0Msc2VwyXdiSWOiBbmX8a5Lti kj2a9/PR7wJuH9MfqepJVjszeufZglTz8R4gtdihi62Zd5l+l5UobnYdv7f2V+eoWv4u I+lAOOQD66+4ydV1XH0b3AFtB6fiKSeFzaBlmaNC3x1nFD8+a0H/p6MXeVo7/BXyrKSg 4pIo2L/q3GAtfLTdZ+xY430BZ8d2hB7GZgzdvC9AT/nky5XCKbeKYEcjF9l09uoNTu0o z1Dn5KI/pXNSggJt6d1d8kQi/C6tgvPDVDxtiY75OrWLO/o2UEAgrKDjBU0cRDloakhp wNbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705504343; x=1706109143; 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=ixH1kcICmlswgGdL4OCIid5fgK6X+yz0saxJFyTHsOI=; b=Xb+uUHNSHCURCkIiBuP4ulJG9GTyncwVGMLHcuTIuMNxt/NlEBuV/OQTyrNVmA1jD4 sdGlFTWtD+0TpIEUc+lTYoF3nmm7dflfUcNba5dmn2dULYogB2VStBHP6kOPwARF2iso Ox45rvc8Rs+LM0ji/wyi8UA/qvB6hO/5XPeYdmZ5AR8lulgWHtUZZUGMbM9K+iBF1ulx pLQFT0e42e4ywj3HOIF3D7hCJJMDEDEeJdW9lgo6jlg/XgsJzTNj9QzwKbkzC9ItZ9Gf DcpA8PI7kmLCLSG0ASJacSjiS2u27aM+r1FofPt5yy6cTibR9QnkanYFE6YbaXwMXfKk 46lA== X-Gm-Message-State: AOJu0Yz0EW8lOYJT0YAea1fEf2vpwOLPaTMhBCgSbu2KMO4Z8U8pORmU I0o1D9W1EFk8FGgMqsJd9+wI8GeLCPzR1g== X-Received: by 2002:ac8:578a:0:b0:42a:733:c26b with SMTP id v10-20020ac8578a000000b0042a0733c26bmr3066083qta.54.1705504342921; Wed, 17 Jan 2024 07:12:22 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:12:22 -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 3/3] ASoC: codecs: wcd934x: drop unneeded regulator include Date: Wed, 17 Jan 2024 16:12:08 +0100 Message-Id: <20240117151208.1219755-3-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: 1788351084209126182 X-GMAIL-MSGID: 1788351084209126182 Driver does not use any regulator code, so drop redundant include of regulator/consumer.h header. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wcd934x.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c index 1b6e376f3833..6813268e6a19 100644 --- a/sound/soc/codecs/wcd934x.c +++ b/sound/soc/codecs/wcd934x.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include