Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2708345pxj; Mon, 31 May 2021 08:45:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxScrZvlGigWbBKUWJHQTjr6fI0wfo1/WKmnHv/YpuIuXodHSXDD0YKaoWZYUlJasbZ/b+q X-Received: by 2002:a6b:ef04:: with SMTP id k4mr17899745ioh.182.1622475953677; Mon, 31 May 2021 08:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475953; cv=none; d=google.com; s=arc-20160816; b=pTfNkk2QKGJK6/xyq62snm1BTBB1c4R9ha+jx/pz7nmNsrUbMqRSEOqZ2ibi51dFQP IU/769Gyol5XgqGlpefhZSgfodclLpN98HrG9CF/0RfcBxC+FIZb0Eh3XeiwIZUQ721Y zXKoKTGkoRSVfRxESZHV633kHa/CkHe/ljTd+a3RIOgX6T0Xo9BhcIFuviDWWZQZFc3v ynGbxWCeZoniElnDr0g0kwWjnySKuKCIPKTCpXHS+pbvma7Bzyg4304lwlzzQaWDd8bq MUhAlferpgPBzLO4dbi0f7mmaO7j9I3EcdUurAO2G6oV/PkmlmxK5Mgal+b7w1wck/jm 6qYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tIhidCSaR93rbtwHB178aNsRmh1vHD8Lz9dFiW+8L30=; b=bVTh/x69uDfPU9mKCVHrUkcaRzQSvfWF5oC092CI6BmNtkFWox2IXZbGok97yoB8Sx R8aK3bZHCebNtxInLHLrKu1UhRhEfuGWVo3sxsceFbYZzkz+6b5lq+maVFW+R897PlAW h02ficTA1npbr2tWOW3FY+hJVowqLzkf+x8gNywd1sHnkxEbgHGkF+LYCeX7oIsLJaaV Ft6STRfP1F++EjoMn32ec6vwgGfDtBsFfjG6u8mC+P+Mst4AQp7Vxsa9TKZgmhFPR8EO zLn8iGqtxfgSN998JeMXueVhzmupaRaZFmJbdaiy5cqmqR7Yo6aHEQNOAySc4Ji/9Cze Pv1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hedgdZjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si3155429ilq.148.2021.05.31.08.45.40; Mon, 31 May 2021 08:45:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hedgdZjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233433AbhEaPqp (ORCPT + 99 others); Mon, 31 May 2021 11:46:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:48838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233803AbhEaOZe (ORCPT ); Mon, 31 May 2021 10:25:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A108C610C9; Mon, 31 May 2021 13:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468808; bh=NgqBK5O0c8z+xdSceHuA/JFflWomRRH/0/Ht41mjRBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hedgdZjTAJMOa7rNQac4Do5w11NNmfp2QKEtU66jC7gwiZ3SBYfdFZ8J085jP9gxe B11BfV1Zegsb+LTU976XYR3ldEdCu6OcVvfdHdTWPZho729TQ2WF9i3cuJaGZEDYNA YnjIC0smCdbRANXumyURvhCbWr+n0ahb1tB39j7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Fitzgerald , Charles Keepax , Mark Brown , Sasha Levin Subject: [PATCH 5.4 137/177] ASoC: cs42l42: Regmap must use_single_read/write Date: Mon, 31 May 2021 15:14:54 +0200 Message-Id: <20210531130652.667575878@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Fitzgerald [ Upstream commit 0fad605fb0bdc00d8ad78696300ff2fbdee6e048 ] cs42l42 does not support standard burst transfers so the use_single_read and use_single_write flags must be set in the regmap config. Because of this bug, the patch: commit 0a0eb567e1d4 ("ASoC: cs42l42: Minor error paths fixups") broke cs42l42 probe() because without the use_single_* flags it causes regmap to issue a burst read. However, the missing use_single_* could cause problems anyway because the regmap cache can attempt burst transfers if these flags are not set. Fixes: 2c394ca79604 ("ASoC: Add support for CS42L42 codec") Signed-off-by: Richard Fitzgerald Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20210511132855.27159-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs42l42.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c index dcd2acb2c3ce..5faf8877137a 100644 --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc/codecs/cs42l42.c @@ -398,6 +398,9 @@ static const struct regmap_config cs42l42_regmap = { .reg_defaults = cs42l42_reg_defaults, .num_reg_defaults = ARRAY_SIZE(cs42l42_reg_defaults), .cache_type = REGCACHE_RBTREE, + + .use_single_read = true, + .use_single_write = true, }; static DECLARE_TLV_DB_SCALE(adc_tlv, -9600, 100, false); -- 2.30.2