Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2747262pxj; Mon, 31 May 2021 09:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylXF2XoTbejXkV7FRGwafLmSr7FXY293pdghfe0JCWLfnsF4li4rAkkKTPfKCf8v3bJgbD X-Received: by 2002:a17:906:161b:: with SMTP id m27mr23746229ejd.89.1622479380225; Mon, 31 May 2021 09:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479380; cv=none; d=google.com; s=arc-20160816; b=P2Lk3cnVnw+azQyKljjDI9W02eYz1BvHBkLe26wlJWBnFTHgVDkYsi0ZUWpV6x1IZg nqEUTE6kAqkRxEo89T6FvEEx2Jasax0wlCofDMWhYY8+CsIkHQn6hlVNHBSklRflH/Zw Qn4fGsk5mxEf0N71grg4ekoCsYnJ/suTf0vQFff/z/aLnhiP35NcJyfiZ+y9Wc+eOJI0 s9UJzVAEYRKI9IQLj6KFP9/NLZ7DvAfJdlQbjlPiasqwB1kjmNe7Dt1IwUdUAQ8GVM5t bdbFoq8XkwaeKiVFReEOnn7Eg+XIA5O/uT8nBB/liaRGd9uWscR5nVU0t6rmekSzBQI0 1rBw== 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=jjWLOlUGYlc8kyYXzysBS5kgD1653pui6wsXEbR9f40=; b=yLHT2MraSXJF5ErqQLIXmAzTDsx/tYHqWcCf+0T6d2ec1gmsflJFEQD3Mj1jLNnzYz 0LPUO1O1NCN7OZi3YC8smDNr1QrS5ZdgeR6Y7yF3IGzVgoOCZkjTdnoCkrnBN2eJXsb7 Ry6e6KDecFxOdFzu9Sg762retbsKSTVnMSW0vlSzraVtj1ntUKlH5ZhLR4tqTb9qiG72 m/QHl5ncSu6kPANFz99arYeQTqCWRfWNmz/C8bPijCykZN1dEZFSiTyR0GNyOV4Jjc3b Yp0BJ7hb5YWqULYY989GEXX+qX1Jat3kHS9LfnelWbXy4tMicNAkjU2ZRK1Miu3aMiEp /usw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X2DkRd0Y; 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 s14si13171186edd.602.2021.05.31.09.42.37; Mon, 31 May 2021 09:43:00 -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=X2DkRd0Y; 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 S232210AbhEaQnX (ORCPT + 99 others); Mon, 31 May 2021 12:43:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:47900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234043AbhEaOxR (ORCPT ); Mon, 31 May 2021 10:53:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4BFE61940; Mon, 31 May 2021 13:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469511; bh=SlQlGdBtKRw7QmtPK5kNIhIjbhgwVireYQ+K5Wcy4v4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X2DkRd0YdR8mBBGxdmO/PFc3iEF1ibDhEk4Xa+4uFY/Dd6tq7rYZK3gR+GDbcreD3 RklpzlMeBU3yqqzDkeEkY12Mr+DVhYKhNvoYDSWp3KpHu9VAsovhLEIIQq0Gpe96oR Sc9LSAxpEdb9vBoeuDhpZpwaMBqQTlu2ZzP/iUMk= 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.12 226/296] ASoC: cs42l42: Regmap must use_single_read/write Date: Mon, 31 May 2021 15:14:41 +0200 Message-Id: <20210531130711.425494788@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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 811b7b1c9732..323a4f7f384c 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