Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4668870ioa; Wed, 27 Apr 2022 08:34:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+JSPqABPQZKGdJU4oNK4rzhQi6qERuDcBC6tVQgri8u9gUxVZxLC6gB/P7Lldpke1fDyq X-Received: by 2002:a17:90b:1d90:b0:1d9:acbb:ab18 with SMTP id pf16-20020a17090b1d9000b001d9acbbab18mr10731271pjb.170.1651073682476; Wed, 27 Apr 2022 08:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651073682; cv=none; d=google.com; s=arc-20160816; b=dNZ5Wqb7JSVRLxbLgLeZaiLuALiD9labF0erM3kgXXQX8ZtoWPaeKG+elOGVD69qm0 GvDGXdRWuBZulbH2aJkY30vYo0HG2J9PdUmvr/Y3jpBb4psRcBUrMG/RXiQR311oWTZu VeWDeivenvlt+BhQ8/B+L8wGsm72ZZGN3s7qjUTD5Cql34f8oY1ZI6p1O/44kSSqvg25 Qd/t6DFLfaXicxlkTerp5piesbE8Vv3Ujb+QGDTM9tbfEk9sOZmE7DK2dABj0E3OXnLi wqarcxDy1LY1NVZxJjuJyhfs1dsLXg6uN57qBopopPq5wo9Vs2cnqv4GvshwlgLv7IVK 2A9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rC1I/YxoZvpUioOZX42tJOCa5yR61WbSa3yvtsC5Zdw=; b=ZMFw1ElfgOejipAL4p6LfwkRd2q+nnE9G/N1Wtbr3z+w84f4aLOSwclyXBKmhHR7Tp Q9QwYQ/FGb92yL0SGCFDfPdLtFM97X/CSox2X12erdhSollh9lEor73deUYdoKgccXDN eWwlqbTpFvR4Xe2qF53mXnV2ZjBCMPBeHYTdp/ugQ3fKlTUJVvvgZEtEsSpJe2hlswI+ FQPFLMqHGi1pQf3wAViD2Y4h+6zvScLakKp48+rdywveec73jgrt3jSQssoUTLtoJVcz nHLJhnkOOlc7LNfloBK0frM/PvBWUt5nW6tqQPWojrjF0jM9ALk+KDwUpZSXVXOsd1i0 kGRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="d1N/G6Aj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q11-20020a65494b000000b0039905cd1790si1857751pgs.579.2022.04.27.08.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:34:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="d1N/G6Aj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47A2155222; Wed, 27 Apr 2022 08:07:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238975AbiD0PK5 (ORCPT + 99 others); Wed, 27 Apr 2022 11:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236491AbiD0PK4 (ORCPT ); Wed, 27 Apr 2022 11:10:56 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B610133E07 for ; Wed, 27 Apr 2022 08:07:44 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23R6M8vo014103; Wed, 27 Apr 2022 10:07:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=rC1I/YxoZvpUioOZX42tJOCa5yR61WbSa3yvtsC5Zdw=; b=d1N/G6AjNnIRThXsbxyZL1lav5XGbbiOn9e3b4AqECLkWKRhPY6HWgR3NnzhLhuZqFCl rUmm+pK8CJTTucPvkp5qDboBfmeKqTaRsSuNiyEcsVhay8mxl4PI4PX3/S/J2sshGy+Y Dg3NZv5Waq06RYSB8tgeX6sS8ssEw09WgWPxCBPR73PGFfi64A0wuyrdpH7NMdurVBsD bgcTMeZc1MBtCAnfhKhEPWswq0achlpTsnAAXQt1sNxEE9OjdXMty9/RDxCyFQ3pcsHf 2VPCDXea4udQxNehTp8esRkrcpM43q6Wew8lheSIh8qvhfECgD9RAnZbYe23yUR1wzWs UQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3fprt60xth-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 27 Apr 2022 10:07:36 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 27 Apr 2022 16:07:30 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.24 via Frontend Transport; Wed, 27 Apr 2022 16:07:30 +0100 Received: from vitaly-Legion-7-16ACHg6.ad.cirrus.com (unknown [198.90.238.170]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 6565446C; Wed, 27 Apr 2022 15:07:30 +0000 (UTC) From: Vitaly Rodionov To: Jaroslav Kysela , Takashi Iwai , Mark Brown CC: , , , Stefan Binding Subject: [PATCH 19/26] ALSA: cs35l41: Do not print error when waking from hibernation Date: Wed, 27 Apr 2022 16:07:13 +0100 Message-ID: <20220427150720.9194-20-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220427150720.9194-1-vitalyr@opensource.cirrus.com> References: <20220427150720.9194-1-vitalyr@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: spaYy79zCg5QNdFGXUjmWboqJAd8xoK3 X-Proofpoint-ORIG-GUID: spaYy79zCg5QNdFGXUjmWboqJAd8xoK3 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Binding When waking from hibernation, it is possible for the function which sends the wake command to fail initially, but after a retry it will succeed. There is no need to print an error if the initial attempts fail. Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov --- sound/soc/codecs/cs35l41-lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l41-lib.c b/sound/soc/codecs/cs35l41-lib.c index dc4654f43157..8a796dbe0718 100644 --- a/sound/soc/codecs/cs35l41-lib.c +++ b/sound/soc/codecs/cs35l41-lib.c @@ -1300,7 +1300,8 @@ int cs35l41_set_cspl_mbox_cmd(struct device *dev, struct regmap *regmap, return 0; } - dev_err(dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); + if (cmd != CSPL_MBOX_CMD_OUT_OF_HIBERNATE) + dev_err(dev, "Failed to set mailbox cmd %u (status %u)\n", cmd, sts); return -ENOMSG; } -- 2.32.0