Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2680358pxj; Mon, 31 May 2021 08:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnxkWtfLzdQD00QXvzHzQcAMrTkHAfjjS1ob9Clys+gQ7rfTUNUt7PnDj/gWILNVlRPFUu X-Received: by 2002:a17:906:f117:: with SMTP id gv23mr9988838ejb.432.1622473625698; Mon, 31 May 2021 08:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473625; cv=none; d=google.com; s=arc-20160816; b=jQgOICDfO4/D/9UF+p4BOLC6r8o419gT/8rIISbfD5n797d0UkiObMnCEDGA3tv3yG 6txB9k1IzzR9JzomWsVMAispZcIWRAQN2E1MwvGK5bCgE4r5zaEDvqWWdj7o7hj1URTU szfkQCTvdoHHEwYb+ra2/pogAUbytHHgj+6jeDDC7P4mxoMb/7gfxittFFzbQ681GrLB 4L6p56g1mv5WjwGbjSNXt5Sk5RNoZX0zPofybm39mfeaLi9wKS4SgpJ5a1LtEnEZxLId EIGhSQvVPiCgzYsJfx6J4IEABjNOJvjNWXDXdx0otjnH91BlDKLKS6T2gH4Di7oZ7JNb JXag== 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=XAGyCQlzxxOB4eFyViRW8cUH6T/0rlk5GLanbt7RFbc=; b=lteZLCbYij4N2Ij90JHPCA6E8wW1TBFkIYjcv9Mf7lAQ5TBbMNxBCq1sELDYj2C8g6 FjSf2edEJwHMGb68ZTBmeGOQzg9Jx0bcsSnEnw01BT3sp32KzppPEUL5KvoRoMEUI70W ZkBkciavJy6gkycdv/JdDHXh06iTvti+rJZS9plhKboa+YeVYO2NzbLYIjCZlPz37B7y mlxuUjJQevUm6AMFY/KHPklKfhcyKa0UKqKSOeDsSKL7/qTXN5CsMsV556gZhkDtAWYM ovnhR0AcC4P33RkhWXIZynOQDWhLZ9ZwFt2ajncc5Q3+WsiddIDknhZNT/Gv5AXIuj72 cj4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EGZ7fiZ8; 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 a1si192102eje.497.2021.05.31.08.06.43; Mon, 31 May 2021 08:07:05 -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=EGZ7fiZ8; 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 S232394AbhEaPH1 (ORCPT + 99 others); Mon, 31 May 2021 11:07:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:40026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232702AbhEaOI4 (ORCPT ); Mon, 31 May 2021 10:08:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 776D561973; Mon, 31 May 2021 13:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468400; bh=76XuVbRWhN8OSJsHxRs/L7tqxCczGr7lxbkxUHGVui4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EGZ7fiZ8iU/WQCeUkI49drZa5XjGUFTWwN2Qr4WzmfhmWsHqhSa7a8nPMsnmxE2/0 hv1e4yGZPTc0WgMZcNEPCAg35H735YcbneJwUnJu3iIGao1gGMEGwCmsUsIiaUPmee h5NzMotKmXWTP09iCcSnoORi88LDF+Zb/XjUXarM= 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.10 193/252] ASoC: cs42l42: Regmap must use_single_read/write Date: Mon, 31 May 2021 15:14:18 +0200 Message-Id: <20210531130704.567381652@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 4d82d24c7828..7c6b10bc0b8c 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