Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2252121imm; Thu, 7 Jun 2018 07:44:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIesesn6hfe+33f+qL3fjsPsnOgrOEAvrEkak7UsUWa+MExXckCH/HM1RJ10j6AlaVM8IRl X-Received: by 2002:a17:902:1e2:: with SMTP id b89-v6mr2340524plb.279.1528382654173; Thu, 07 Jun 2018 07:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528382654; cv=none; d=google.com; s=arc-20160816; b=0B2huhVKpls+VVGWBJsMfKgO7rz4TEUJsmKqscmCRweY01t799H8aRckxWz+x/hYyD xqqWvz7gLUaIaUxxZ9cgHc0N1c+IqM1we7iyM5eP1rO8kEZIm9M2CtDFzcu/Zrk8LWTm 7iqqNggYdRyRBHxH8QT+kyIu2Wmlyct2JPuGEwbDzyq8TLsF3mctZOYFgDuRxtR/BfhH 5XGfDMei0zZAQcInEEWTi3I8jfIori2ddFCaUpgFJEn/FWlSfEHTl/8y7svhf/4uCq/Z 1yPs527QCqme4jcsDvtJBVcc7dwLV9QoE5VyuGeBuzBVmtkGnd8n2UMYePo1fVT1R3Te kj+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=3yaxtNaLHdQlq0Q4ol7b9S7WdS8QA+mw6Kcobce39Pc=; b=eSHpiTu13xS8oqS9ohYm6LBPzUxBJYH7mMX0OZvo1dbx+f4TgPgvPGhSuzdOw196vz mWf6pWLydtrmOlUBDuITjaa7Tzv10iRImlzPzC8cjEf3W/PFj3p1+D4UZuA2EdQ7wqa8 5MrSpKWZudpVI5EihFvvexX8NFrfOEtm7tQ2RbtNg4GiifG2f9hbSg22Xy38veC4Imtm S8MnzFrrYjlPPWCs/TSKN+0uum+9RHRvdPQMx+VynNU+pWoXgSoYSOKAnHsfqEMzpiBJ 1ePowXx0jPJkxmwt4WwEA9ZDZLLDSBNbCcVWQhl0Lz3ikTAf6foixTvssxLT/hKQIOtU Pkkg== ARC-Authentication-Results: i=1; mx.google.com; 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 e12-v6si44519709pgn.155.2018.06.07.07.44.00; Thu, 07 Jun 2018 07:44:14 -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; 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 S934696AbeFGOl4 (ORCPT + 99 others); Thu, 7 Jun 2018 10:41:56 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:40607 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934604AbeFGOly (ORCPT ); Thu, 7 Jun 2018 10:41:54 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvba-0005Zj-GT; Thu, 07 Jun 2018 15:09:34 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb8-00035d-PG; Thu, 07 Jun 2018 15:09:06 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Mark Brown" , "Hans de Goede" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 262/410] ASoC: rt5651: Fix regcache sync errors on resume In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit 2d30e9494f1ea320aaaad0cff9ddd92c87eac355 upstream. The ALC5651 does not like multi-write accesses, avoid them. This fixes: rt5651 i2c-10EC5651:00: Unable to sync registers 0x27-0x28. -121 Errors on resume (and all registers after the registers in the error not being synced). Signed-off-by: Hans de Goede Signed-off-by: Mark Brown Signed-off-by: Ben Hutchings --- sound/soc/codecs/rt5651.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/soc/codecs/rt5651.c +++ b/sound/soc/codecs/rt5651.c @@ -1732,6 +1732,7 @@ static const struct regmap_config rt5651 .num_reg_defaults = ARRAY_SIZE(rt5651_reg), .ranges = rt5651_ranges, .num_ranges = ARRAY_SIZE(rt5651_ranges), + .use_single_rw = true, }; static const struct i2c_device_id rt5651_i2c_id[] = {