From patchwork Sat Jun 10 13:56:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 692066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62A26C7EE37 for ; Sat, 10 Jun 2023 14:01:55 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C08321CE; Sat, 10 Jun 2023 16:01:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C08321CE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686405712; bh=Hi+kWTK1PxUd+2cL7u+XNfww01HBNbov8hI2bW0Wnks=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=DU1NctGMidDcok+5sx5zey22jtf++sjW+QZ5mUdPNuNGNFHqNkJxrjW/ENFzklSHe I7u5hp/AoSF5OqVSjbQlzjVThGH1gGIS2DlOJ/hTKfO3z7eJKS2RLkeuCYF59FChaE +gs7rWBEeNmFhow/+VQC6rmIhPDOXbw964gm3ECw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 76A02F805BF; Sat, 10 Jun 2023 15:59:03 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 01E50F80587; Sat, 10 Jun 2023 15:59:02 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4A514F80199; Sat, 10 Jun 2023 15:56:58 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6460EF804DA for ; Sat, 10 Jun 2023 15:56:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6460EF804DA Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=ownAfYmK Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B04C6119D; Sat, 10 Jun 2023 13:56:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E489DC433D2; Sat, 10 Jun 2023 13:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686405407; bh=Hi+kWTK1PxUd+2cL7u+XNfww01HBNbov8hI2bW0Wnks=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ownAfYmKbWfyMHMVguJoNbBmEYfJLa6lV2dtjuZ2OtyTS8qxZV9/ZUE6T8jP/qiR2 xJWgIBHaglBw3h5gs6VQzyNOgzEUvX0E9B6rjGwWg9E9W2mxHyJFaVa3P2skhX0N3s fqF4miMuto8TS5Ziv7aTtb9YXBBW2wd6CRltDllQK5v6NvSWv7U4ox+NMllUPhFvVe ELFWXNuNbYii3Dwz603UCPXwll4X3Mnmo3qVlma3rXYkSgurbarLdeoUOWbL/LLQjq kJs8sWWR4GkZns7PS1C8Xr0k8ZZ5ChUalNFYLyHqGLINAPFN1YUNCxpIKb8R2uzUED xjTFg0x97JR2w== From: Mark Brown Date: Sat, 10 Jun 2023 14:56:26 +0100 Subject: [PATCH 06/10] ASoC: cs42l42: Use maple tree register cache MIME-Version: 1.0 Message-Id: <20230609-asoc-cirrus-maple-v1-6-b806c4cbd1d4@kernel.org> References: <20230609-asoc-cirrus-maple-v1-0-b806c4cbd1d4@kernel.org> In-Reply-To: <20230609-asoc-cirrus-maple-v1-0-b806c4cbd1d4@kernel.org> To: James Schulman , David Rhodes , Richard Fitzgerald , Liam Girdwood , =?utf-8?q?Martin_Povi=C5=A1er?= Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-bfdf5 X-Developer-Signature: v=1; a=openpgp-sha256; l=945; i=broonie@kernel.org; h=from:subject:message-id; bh=Hi+kWTK1PxUd+2cL7u+XNfww01HBNbov8hI2bW0Wnks=; b=owGbwMvMwMWocq27KDak/QLjabUkhpSWRp6YeBaTxDuSK571zW1tmM6Zfly8LuycyOKUzZalMfdj qrQ7GY1ZGBi5GGTFFFnWPstYlR4usXX+o/mvYAaxMoFMYeDiFICJ9Hqz/7PliGuMFFF4EFgTxxA8L/ 2aSW/fuqKrG7ufX/eoDC2rleVYprZ7UUTx1Vj+VcqTonnqp9mtrePiOcnjf3Tf/4Uck7faNfz/+lVb JYX3L+9K7w+ud7pC6sP/LQp++tJoC5fcwt4Tkdp202fyWttJnXHeY7r+f4rSW+fgsG0GLoZzc14J8r 082S3s6fz110zex+uLFK/NW/rKtrewqrfYrtbuh7By45Nb6n7cFpVvPvxKWLvIXtmhnCs0gpU9/r1M /oLbu9QbFFR0RF6xT97xOYbzknd/hGHh3e5q1y/N8lv92t+bWOg9dV8746moxjO7pcv55gmtPWX3SD tv+eeHz4/xZm07Ezq9xPJk4eLfAA== X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: Z4XVID7533VKNBFPILQ3IDQQJNAL5G7F X-Message-ID-Hash: Z4XVID7533VKNBFPILQ3IDQQJNAL5G7F X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The cs42l42 can only support single register read and write operations so does not benefit from block writes. This means it gets no benefit from using the rbtree register cache over the maple tree register cache so convert it to use maple trees instead, it is more modern. Signed-off-by: Mark Brown --- sound/soc/codecs/cs42l42.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c index e3edaa1a2761..1c8cc4021232 100644 --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc/codecs/cs42l42.c @@ -393,7 +393,7 @@ const struct regmap_config cs42l42_regmap = { .max_register = CS42L42_MAX_REGISTER, .reg_defaults = cs42l42_reg_defaults, .num_reg_defaults = ARRAY_SIZE(cs42l42_reg_defaults), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .use_single_read = true, .use_single_write = true,