Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp432641yba; Wed, 15 May 2019 04:02:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBCeDslppnGB0jX6Xf47qUe0Ts/y0OSRyct26y+3XbYSgucJ2T6SBtQBfX7zjEZ3DgugcS X-Received: by 2002:a65:614a:: with SMTP id o10mr26358292pgv.258.1557918130510; Wed, 15 May 2019 04:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557918130; cv=none; d=google.com; s=arc-20160816; b=u7A6+L2nYh+ZsfLmtkf+SErCHjf/lgKg14WgDzo70TqKRgg7IgzrJyiVu3LgUlckSa YQNcnadN2PQ2Ju3ZJ5WlGmczll6zcZzTtPIHOsk682hk5VJoJBFJ1UxpoHhm6tiqepjQ l+J1Z3nTJYjdT37uEK7IShiOFRULa6kEseAtWE7KKIKGUPVOyVRVGAjrRBXXdETpCkvM xZyLixV7vX52SmjVfgABh2Fm6kfdPUjQEtP95waBCB3uJEUcLTKG4j5aJXdT2ddiX/aU ngcZp6jwrEyAY4xACod9docwYYMKzkdrJeZu7Bn6k6MWhBd08UIC+MmFfrC6VLrsKAXz /QBw== 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=B91eKuJVqx86OzRgZBJoczt6UfnIxZvR0UNJPUIkDxc=; b=f4rOxRx+MZGhSRkYoZ1VA89A3sNbRGHzoGnHw48rwy4wbm8tBcCPPQVFwjuEAqdYbJ Ix/TCmjAmqXQOeaQmZldjypBFs0r20MxpCvMz6ZH4s4Njf9olVz6QeLkj5hKbYKhREr1 0j3Pp+drAfNftDTo5D3jUbxh3AgqXU1QYJ+yqZ1IukV5XzPr+BdSVKbk/3XGc/RgwMRe EafqPV6ryGDeIuOJso4+fBsDtolMGOTVi2XIcYMYngKA7NsAHWgojnSn6gVyD+6b7cSl 9ePdKny/MHeZ4lsxYLCYz7TwRbqonAuoXRm328FF2QtQHxJkoCWrTdCNDlaLJl6+EcUD UHNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GKjHXcjF; 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 f197si1830296pfa.276.2019.05.15.04.01.54; Wed, 15 May 2019 04:02:10 -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=@kernel.org header.s=default header.b=GKjHXcjF; 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 S1727324AbfEOLAA (ORCPT + 99 others); Wed, 15 May 2019 07:00:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:56652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbfEOK77 (ORCPT ); Wed, 15 May 2019 06:59:59 -0400 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 65AE32084E; Wed, 15 May 2019 10:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557917998; bh=1FA4MIz3CQzJCCADgU/KVoD/cf8oj05WHxeaSFbTaBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GKjHXcjFYwrd64efV+1PLrwH+P77ys95dNdTP6YXeN86wCDsC6yOLDZHpGn4FBEwR dCGj4+OPD3AFG8hmXekMEjeMU2JepacCtNTGWrv5U0Oyy6pj/si8h6z4pT+V5WqGdG xfhhBVwI5SdpU8+LJWbvJIf+u0HE2EOoT+jlH2mo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Mack , Mark Brown , Sasha Levin Subject: [PATCH 3.18 54/86] ASoC: cs4270: Set auto-increment bit for register writes Date: Wed, 15 May 2019 12:55:31 +0200 Message-Id: <20190515090653.006917756@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090642.339346723@linuxfoundation.org> References: <20190515090642.339346723@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 [ Upstream commit f0f2338a9cfaf71db895fa989ea7234e8a9b471d ] The CS4270 does not by default increment the register address on consecutive writes. During normal operation it doesn't matter as all register accesses are done individually. At resume time after suspend, however, the regcache code gathers the biggest possible block of registers to sync and sends them one on one go. To fix this, set the INCR bit in all cases. Signed-off-by: Daniel Mack Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs4270.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index 736c1ea8e31e2..756796c064136 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c @@ -641,6 +641,7 @@ static const struct regmap_config cs4270_regmap = { .reg_defaults = cs4270_reg_defaults, .num_reg_defaults = ARRAY_SIZE(cs4270_reg_defaults), .cache_type = REGCACHE_RBTREE, + .write_flag_mask = CS4270_I2C_INCR, .readable_reg = cs4270_reg_is_readable, .volatile_reg = cs4270_reg_is_volatile, -- 2.20.1