From nobody Sun Apr 19 12:16:09 2026 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 F2F75C433EF for ; Fri, 1 Jul 2022 02:14:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233027AbiGACOt (ORCPT ); Thu, 30 Jun 2022 22:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233006AbiGACOf (ORCPT ); Thu, 30 Jun 2022 22:14:35 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7D5B60529 for ; Thu, 30 Jun 2022 19:14:34 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y141so1108361pfb.7 for ; Thu, 30 Jun 2022 19:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+nG6eb4+X5Ja/3xTBDEgAUy+rU3+Q7DlGcjeg+QB5NE=; b=AhRwhX3qb9Gd5pjZU3Ju6++wdDeh9TWEcwxe7bHgCzd2uV4SQi6lmZjo/YF93Keivu nppBG2JkTguvnOU2sKHsipgtfl7GIDry14WJl07b4OcAOSRUuxdFebUItxXO/SHmei2x Na8FewAQ1/FvgOHmArf8p6ak4Dcvc3Dq0r1lg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+nG6eb4+X5Ja/3xTBDEgAUy+rU3+Q7DlGcjeg+QB5NE=; b=Wkp0TEEOlidEIlLDaM2UmIdfgpNFO/agIe6h8h370nLTOmxUIFlU50JtPoIXyTvV0T DpaUmo6ZnQ7yL/qFUIJY1JzO58dyfbqauTXh0X69PeZa4+JcmaE8QWFdCOHSBDMaL56k P+rAtXdlKNpPktvocfKzeD3G+CnEhlffbRk+0IeUbwr1dxZerHQ+5VZLf1lX4m0M69iq fIFr/rlAmEfxhGO33NFiUtgjBHZwEW6GyybrzVC1yccl+lmPg3yE3B5pkEZBgMxmxxGN dPgfLD6fnB7JV17YCEEjnckVrbDhrnUb9e1D3gWYEay0RSpOGOR5YlHEm8QIVTHvrUsG aqSw== X-Gm-Message-State: AJIora9iT9GNjUqO5KAuzKRNGaowUwG6Ra7ctt7HV9NyfCTeE9+QG5i2 w7s83IFFL9uPnrbQAE6/sysGoQ== X-Google-Smtp-Source: AGRyM1vT575BCyuGLho/NbkSLyh3jD8NuJm0rgeF42h3/GJvEzoiIL/ra/yU9Bj42AjH05umGXxiJw== X-Received: by 2002:a63:4d4f:0:b0:3fd:f4a1:93db with SMTP id n15-20020a634d4f000000b003fdf4a193dbmr10451410pgl.374.1656641674280; Thu, 30 Jun 2022 19:14:34 -0700 (PDT) Received: from judyhsiao0523.c.googlers.com.com (0.223.81.34.bc.googleusercontent.com. [34.81.223.0]) by smtp.gmail.com with ESMTPSA id z29-20020aa7949d000000b0052515e20df8sm14423596pfk.152.2022.06.30.19.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 19:14:33 -0700 (PDT) From: Judy Hsiao To: Heiko Stuebner Cc: Liam Girdwood , Rob Herring , Brian Norris , Mark Brown , Jaroslav Kysela , Chen-Yu Tsai , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Judy Hsiao Subject: [PATCH v1] FROMGIT: ASoC: rockchip: i2s: Fix error code when fail to read I2S_CLR Date: Fri, 1 Jul 2022 02:14:27 +0000 Message-Id: <20220701021427.3120549-1-judyhsiao@chromium.org> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the error code '-EBUSY' when fail to read I2S_CLR in rockchip_snd_rxctrl() and rockchip_snd_txctrl() Fixes: 44f362c2cc6d ("ASoC: rockchip: i2s: switch BCLK to GPIO") Signed-off-by: Judy Hsiao Reviewed-by: Brian Norris --- sound/soc/rockchip/rockchip_i2s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchi= p_i2s.c index f783994cc16a..fd36c0bacc43 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -171,6 +171,7 @@ static int rockchip_snd_txctrl(struct rk_i2s_dev *i2s, = int on) retry--; if (!retry) { dev_warn(i2s->dev, "fail to clear\n"); + ret =3D -EBUSY; break; } } @@ -232,6 +233,7 @@ static int rockchip_snd_rxctrl(struct rk_i2s_dev *i2s, = int on) retry--; if (!retry) { dev_warn(i2s->dev, "fail to clear\n"); + ret =3D -EBUSY; break; } } --=20 2.37.0.rc0.161.g10f37bed90-goog