From nobody Tue Dec 16 20:00:13 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27051CDB47E for ; Fri, 13 Oct 2023 11:20:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbjJMLU3 (ORCPT ); Fri, 13 Oct 2023 07:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjJMLUY (ORCPT ); Fri, 13 Oct 2023 07:20:24 -0400 X-Greylist: delayed 1037 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 13 Oct 2023 04:20:20 PDT Received: from vps19.webwerkers.nl (vps19.webwerkers.nl [136.144.231.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62F891 for ; Fri, 13 Oct 2023 04:20:20 -0700 (PDT) Received: from [89.255.59.226] (helo=server.mep) by vps19.webwerkers.nl with esmtpsa (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qrFwM-0005kS-DX; Fri, 13 Oct 2023 13:02:46 +0200 From: Roy Chateau Cc: roy.chateau@mep-info.com, Shenghao Ding , Kevin Lu , Baojun Xu , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: codecs: tas2780: Fix log of failed reset via I2C. Date: Fri, 13 Oct 2023 13:02:39 +0200 Message-Id: <20231013110239.473123-1-roy.chateau@mep-info.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Id: meptelco To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Correctly log failures of reset via I2C. Signed-off-by: Roy Chateau --- sound/soc/codecs/tas2780.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas2780.c b/sound/soc/codecs/tas2780.c index 86bd6c18a944..41076be23854 100644 --- a/sound/soc/codecs/tas2780.c +++ b/sound/soc/codecs/tas2780.c @@ -39,7 +39,7 @@ static void tas2780_reset(struct tas2780_priv *tas2780) usleep_range(2000, 2050); } =20 - snd_soc_component_write(tas2780->component, TAS2780_SW_RST, + ret =3D snd_soc_component_write(tas2780->component, TAS2780_SW_RST, TAS2780_RST); if (ret) dev_err(tas2780->dev, "%s:errCode:0x%x Reset error!\n", --=20 2.39.2