From mboxrd@z Thu Jan 1 00:00:00 1970 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 6FC5DC433EF for ; Fri, 1 Jul 2022 07:26:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234743AbiGAH0a (ORCPT ); Fri, 1 Jul 2022 03:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234099AbiGAH02 (ORCPT ); Fri, 1 Jul 2022 03:26:28 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E9F6B82C for ; Fri, 1 Jul 2022 00:26:25 -0700 (PDT) Received: from p508fd39e.dip0.t-ipconnect.de ([80.143.211.158] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o7B2S-0008DI-2C; Fri, 01 Jul 2022 09:26:04 +0200 From: Heiko Stuebner To: Judy Hsiao 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: Re: [PATCH v1] FROMGIT: ASoC: rockchip: i2s: Fix error code when fail to read I2S_CLR Date: Fri, 01 Jul 2022 09:26:03 +0200 Message-ID: <11057863.VV5PYv0bhD@phil> In-Reply-To: <20220701021427.3120549-1-judyhsiao@chromium.org> References: <20220701021427.3120549-1-judyhsiao@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Judy, Am Freitag, 1. Juli 2022, 04:14:27 CEST schrieb Judy Hsiao: > 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 those chromium-tags in patch subjects are not meant to go into upstream submissions, so please drop the FROMGIT. > --- > 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/rockchip_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 = -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 = -EBUSY; > break; > } > } >