Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp481918ybl; Tue, 28 Jan 2020 06:38:24 -0800 (PST) X-Google-Smtp-Source: APXvYqw9SmHq9Vox47hwGCBcAgw9SL8BqoavhpV8WpH7amqcjt4st4Z59crA8tpv8INlTyneNdyB X-Received: by 2002:a05:6830:1e5c:: with SMTP id e28mr8214954otj.163.1580222304595; Tue, 28 Jan 2020 06:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222304; cv=none; d=google.com; s=arc-20160816; b=uN2MpE2SlFTmJ2v74Jw0ideZempmNG5Zu3OQh59kVhEeeXShJRtd3Vmdq0wGOZR5jy shfTwAABTjr5v9bR5R7KmJdaZwiDgyoAtegDnuOTTuEDCHmJ13AajTPKMJN3rGnzzRiY iH2CaOJAnMwtUVr0BskwROAraHRX7qCKE/oaC/o7NQzOgx4E9KfgcI63sP+cW7VpNGzE reBlHRYlf30svWs3w0kV4IBBxMfgD/APGYEBKOVZrYtdNOTkQJe8DSRJgpT/mxZ3eVhY N5Ym+MTfMj3e2pIEAWHedk2541WMFb36ocbzwroAVodbuLtttMBN3cXL36GEUmxGbUd1 ZYIA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ArLoMA8L00hABoUBs7ave8EkeRshHQFhUfK+ucphHoc=; b=BPJF0Wcuhyb7ezYXr/kI+EuZziXq4JvgHEd32TB7J2o3ps59fMboFM5ioxnkiZfjAH OOBnMC9ryG8lG/DnsLiHVJr3mJNZaj+1qbDJZoM5nMADMG1A2kn1Pi/zDsBZ9cvrSFki lpSAo1vb1BCvHtzP7SufvhNIBzQ286vA0qtmP6gIBKZPkdL+JTyxubw3sOl27aLdvL66 3AFwpz1kRRytY7RCZLPeXJ2a2h/psmoKSQ9EKH47t1higt10uKcu+/nFv6m9NR4qYjdM 3FFWvASKsgsLD+8mDstn9r2vSSWS1/VAZkA5hSIrxyaJjqBRYSFPO6x3+XZf5Y8ybG0k SGEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V5yMpRtj; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o66si5094832oig.193.2020.01.28.06.38.12; Tue, 28 Jan 2020 06:38:24 -0800 (PST) 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=@kernel.org header.s=default header.b=V5yMpRtj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728096AbgA1OWZ (ORCPT + 99 others); Tue, 28 Jan 2020 09:22:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:48144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727549AbgA1OWV (ORCPT ); Tue, 28 Jan 2020 09:22:21 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 19A1524693; Tue, 28 Jan 2020 14:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221340; bh=96SgEAgr6ueX9E0YESGVCFy9dx3Ny4bQ+JLx/imZpLM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V5yMpRtjGCaq9LBhk8eS6b9Nuzhl7qx3WIN7NzD0pT2FpdfHbR59ocKSi1iJ/Tv13 NuP8Ly+IzC/bOY8VVeUL5gZnGJwVHBqiHOuRqyHfTfSkkIL2alOwUOkf1ZX00cdwWV hC2hfwqfsb8d6pBq9j1T5IqxDKaC2hT+5KEf4QvQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Ripard , Mark Brown , Sasha Levin Subject: [PATCH 4.9 184/271] ASoC: sun4i-i2s: RX and TX counter registers are swapped Date: Tue, 28 Jan 2020 15:05:33 +0100 Message-Id: <20200128135906.265270066@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard [ Upstream commit cf2c0e1ce9544df42170fb921f12da82dc0cc8d6 ] The RX and TX counters registers offset have been swapped, fix that. Fixes: fa7c0d13cb26 ("ASoC: sunxi: Add Allwinner A10 Digital Audio driver") Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/8b26477560ad5fd8f69e037b167c5e61de5c26a3.1566242458.git-series.maxime.ripard@bootlin.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sunxi/sun4i-i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 15c92400cea42..02c373c65e194 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -78,8 +78,8 @@ #define SUN4I_I2S_CLK_DIV_MCLK_MASK GENMASK(3, 0) #define SUN4I_I2S_CLK_DIV_MCLK(mclk) ((mclk) << 0) -#define SUN4I_I2S_RX_CNT_REG 0x28 -#define SUN4I_I2S_TX_CNT_REG 0x2c +#define SUN4I_I2S_TX_CNT_REG 0x28 +#define SUN4I_I2S_RX_CNT_REG 0x2c #define SUN4I_I2S_TX_CHAN_SEL_REG 0x30 #define SUN4I_I2S_TX_CHAN_SEL(num_chan) (((num_chan) - 1) << 0) -- 2.20.1