Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2993096ybi; Sun, 26 May 2019 12:04:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/zDL5I6nQq6S6HZbS4gfkqi/Qcm9ms2STfzWd40+h1I8AggZEMNdegcv1k+fkeXAiD18s X-Received: by 2002:aa7:96ec:: with SMTP id i12mr118246219pfq.82.1558897462159; Sun, 26 May 2019 12:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558897462; cv=none; d=google.com; s=arc-20160816; b=DfAes9NlkF8d+B4d6xTjULDJLix1lE99iEkWIcO7EfufoMyFhZlorEfuVGoV+xYNBG YaFSFEtLqzEH/dBjm0+Z8Chg0uw+LglM7wKC7Fe7NIfbOaOKh/u/z4yiY2VVO3zeThnm EkSP/Ow0PUE0HZinQ2xMRuQb2w4Lpn8aESzbeT5CRXOAellkvIMZBYnJ905o5Xt0y8Sx qzZ6pcIxxioOXxI1qIGadp2DppWnXObx+oNJySuT3dyUHldVi2zYtPCNuYGO9IVnO85I Wlf0UozGp2q62+tRpqwAiQRN3EZ1CpYCYaHQyb2PIn26BJfyn/mNk6HLJRfJ3CWL3EJK mSAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ozbpBHH7tRCrsdtMEQjsQDlxSXHNruEgExveiJhJ0fo=; b=SKgpht7UJCjGXEHQBBqCTjtqLMfE8NiT6Ko97PQB5imEdjViNNMdp+IhjA+wAv8o57 BP/05GlEr0NJamGk+GuB1j1BRj5gyKd71u58/X3U4zFMEwKFYIcmFP+ee6u68uoclbnI Vw8pAyox8m/3k0XOoeCBvwwIkaLpnMf1XRYELhMJU+1mdE2+LvXZFWmjRZ66Ny9eBHqx fy9jV+rvTPVPu+wcymmd0IkP6iOMoG3RQmcJU24VBuqPKjbs5Sa1TeWDm3MMHUYnwHWM T3UJotqLbMQYyFIRhdyUypLz1MVCpDPrYrQ54GRPckj2O/09sbiU5vQlP3OI2TixGWZ6 5Ssw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xkg3tPCA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si6956457plr.29.2019.05.26.12.03.54; Sun, 26 May 2019 12:04:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xkg3tPCA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbfEZTAm (ORCPT + 99 others); Sun, 26 May 2019 15:00:42 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36956 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbfEZTAm (ORCPT ); Sun, 26 May 2019 15:00:42 -0400 Received: by mail-yw1-f67.google.com with SMTP id 186so5804965ywo.4; Sun, 26 May 2019 12:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ozbpBHH7tRCrsdtMEQjsQDlxSXHNruEgExveiJhJ0fo=; b=Xkg3tPCAZXTRWbYvkia1rPlSLig1Y7GQZ4mFLN0JUZWf8a7xttjpv80JLmoXWsOBbI 0z5tsEfJ5nw5U0tJswI6KRnYhiqLRxuwKaeoE6H4UWUH/smXoDXabl5oLPh2ynvTLh8c wnqxAo2TCmsdS+P71y14Di7yBEB7eOjOMPlaJWe9hUW39slwAWULG8sF7qwmdNQWv/sj HzjypXp6N0DZ270bB+5GuMoPT4yQI8gq860sBzESkWOj82dBBSZ2n+2pp8Heap0BI9u7 dzm4duCz3dWwXIQ5z/MCEiOFu/09RivNT5GdjFnr2W5UnUxoBL2neIt5NZ8/hy8oXPRy i2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ozbpBHH7tRCrsdtMEQjsQDlxSXHNruEgExveiJhJ0fo=; b=hUhQ+HKZCJRQNPdFvhKSXujj3YmbpjTGXxsHDnLJyVzvElPjS3chwLd4fopP6JAcSO ggCXuBafLpJ5BKEo0Bdd5gu7P5mA6OeVo9C48qGcGH0K9KgYjJUqp1/OgpEDA5owLei5 ZuGAAxWklNVH8i6D1WWYRStfKQAmANymAkNNmWxwIpMENr1uCu4CR42Fz98AR6WMIA8I m3wAbl696vnXN6Yupe1EVOd90a3xjXsiEh9gv1ALT5Um1pdNJt4IwWOSHiTynUu512EW EpOnk8hr6cAW4XUKWK0LJN59vd/NrbUvyFtO68yvjofGD+eXAuVRKCC4sywCdch2NHWt F9lg== X-Gm-Message-State: APjAAAVu8q9GcbOBv2fzYs1XaNeqTNjeysyEEWVZfkjdL5ORf8oUYNdL GdOHWmrHMg7EEigbksw3roaq96Fhe69Nplfo9A4= X-Received: by 2002:a81:997:: with SMTP id 145mr7897486ywj.457.1558897241180; Sun, 26 May 2019 12:00:41 -0700 (PDT) MIME-Version: 1.0 References: <20190525162323.20216-1-peron.clem@gmail.com> <20190525162323.20216-4-peron.clem@gmail.com> <20190526182410.soqb6bne6w66d5j6@flea> In-Reply-To: <20190526182410.soqb6bne6w66d5j6@flea> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Sun, 26 May 2019 21:00:30 +0200 Message-ID: Subject: Re: [PATCH v3 3/7] ASoC: sun4i-spdif: Add TX fifo bit flush quirks To: Maxime Ripard Cc: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Jagan Teki , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Sun, 26 May 2019 at 20:24, Maxime Ripard wro= te: > > On Sat, May 25, 2019 at 06:23:19PM +0200, Cl=C3=A9ment P=C3=A9ron wrote: > > Allwinner H6 has a different bit to flush the TX FIFO. > > > > Add a quirks to prepare introduction of H6 SoC. > > > > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > > --- > > sound/soc/sunxi/sun4i-spdif.c | 11 ++++++++++- > > 1 file changed, 10 insertions(+), 1 deletion(-) > > > > diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdi= f.c > > index b6c66a62e915..8317bbee0712 100644 > > --- a/sound/soc/sunxi/sun4i-spdif.c > > +++ b/sound/soc/sunxi/sun4i-spdif.c > > @@ -166,10 +166,12 @@ > > * > > * @reg_dac_tx_data: TX FIFO offset for DMA config. > > * @has_reset: SoC needs reset deasserted. > > + * @reg_fctl_ftx: TX FIFO flush bitmask. > > It's a bit weird to use the same prefix for a register offset > (reg_dac_tx_data) and a value (reg_fctl_ftx). I just look at sun4i-codec and they use a regmap, But I think it's a bit overkill no? What do you think about val_fctl_ftx ? Thanks for your review, Cl=C3=A9ment > > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com